Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

mat::MatrixInterfaceBinaryAdapter< M, BinaryFunction, T > Class Template Reference

#include <matrixadapter.h>

Inheritance diagram for mat::MatrixInterfaceBinaryAdapter< M, BinaryFunction, T >:

Inheritance graph
[legend]
Collaboration diagram for mat::MatrixInterfaceBinaryAdapter< M, BinaryFunction, T >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class M, class BinaryFunction, class T = typename M::value_type>
class mat::MatrixInterfaceBinaryAdapter< M, BinaryFunction, T >

Adapter that presents as a matrix the result of a scalar two-argument operation on the elements of two identically-sized matrices.

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


The documentation for this class was generated from the following file:
Generated on Mon Jan 20 02:37:38 2003 for RF-LISSOM by doxygen1.3-rc2