#include <matrixadapter.h>
Inheritance diagram for mat::MatrixInterfaceBinaryAdapter< M, BinaryFunction, T >:
It could e.g. add them, take the maximum, multiply them element-wise, etc., depending on the supplied BinaryFunction.
Definition at line 303 of file matrixadapter.h.
Public Types | |
typedef MatrixInterface< T >::size_type | size_type |
typedef MatrixInterface< T >::value_type | value_type |
Public Methods | |
MatrixInterfaceBinaryAdapter (const M &A, const M &B, const BinaryFunction &fn) | |
Typical constructor. | |
virtual value_type | operator() (const size_type row, const size_type col) const |
virtual size_type | nrows () const |
Number of rows in the virtual matrix. | |
virtual size_type | ncols () const |
Number of columns in the virtual matrix. | |
Protected Attributes | |
const M & | MA |
const M & | MB |
const BinaryFunction & | op |