yat
0.14.5pre
|
A KernelMatrix is a Container2D. More...
#include <yat/utility/KernelMatrix.h>
Public Types | |
typedef BinaryFunctor::result_type | value_type |
value_type is same as BinaryFunctor's result_type | |
typedef value_type | const_reference |
const_reference is same as value_type | |
typedef Container2DIterator < const KernelMatrix, value_type, const_reference > | const_iterator |
const_iterator | |
typedef StrideIterator < const_iterator > | const_column_iterator |
const_column_iterator | |
typedef const_iterator | const_row_iterator |
const_row_iterator_iterator | |
Public Member Functions | |
KernelMatrix (const RandomAccessRange1 &r1, const RandomAccessRange2 &r2) | |
constructor More... | |
KernelMatrix (const RandomAccessRange1 &r1, const RandomAccessRange2 &r2, const BinaryFunctor &bf) | |
constructor | |
const_iterator | begin (void) const |
const_column_iterator | begin_column (size_t column) const |
const_row_iterator | begin_row (size_t row) const |
const_iterator | end (void) const |
const_column_iterator | end_column (size_t column) const |
const_row_iterator | end_row (size_t row) const |
RandomAccessRange2::size_type | columns (void) const |
RandomAccessRange1::size_type | rows (void) const |
const_reference | operator() (size_t row, size_t column) const |
Element access operator. More... | |
A KernelMatrix is a Container2D.
A matrix-like object constructed from two RandomAccessContainers and Functor. Each row in the matrix correspond to an element in the RandomAccessRange1 and each column correspond to an element in RandomAccessRange2. Number of rows in the matrix equals number of element in RandomAccessRange1 and number of columns equals number of elements in RandomAccessRange2. An element in row row and column column is calculated by taking the element row in RandomAccessRange1 and element column in RandomAccessRange2, and passing these elements to BinaryFunctor.
Type Requirements:
RandomAccessContainer1
must be a RandomAccessContainerRandomAccessContainer2
must be a RandomAccessContainerBinaryFunctor
must be a AdaptableBinaryFunctorRandomAccessContainer1::reference
must be convertible to BinaryFunctor::first_argument_type
RandomAccessContainer2::reference
must be convertible to BinaryFunctor::second_argument_type
|
inline |
constructor
Same as three-argument constructor, but using default constructor of class BinaryFunctor.
|
inline |
Iterator iterates along a row. When end of row is reached it jumps to beginning of next row.
|
inline |
Iterator iterates along a column.
|
inline |
Iterator iterates along a row.
|
inline |
Number of rows is defined by RandomAccessRange2::size(void)
|
inline |
|
inline |
|
inline |
|
inline |
Element access operator.
Element is calculated using BinaryFunctor passing row
th element of RandomAccessRange1 and column
th element in RandomAccessRange2.
|
inline |
Number of rows is defined by RandomAccessRange1::size(void)