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

mat::MatrixInterfaceConstant< T > Class Template Reference

#include <matrixadapter.h>

Inheritance diagram for mat::MatrixInterfaceConstant< T >:

Inheritance graph
[legend]
Collaboration diagram for mat::MatrixInterfaceConstant< T >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T = double>
class mat::MatrixInterfaceConstant< T >

Convenience class for packaging a constant scalar value as a matrix of arbitrary size.

Definition at line 271 of file matrixadapter.h.

Public Types

typedef MatrixInterface< T
>::size_type 
size_type
typedef MatrixInterface< T
>::value_type 
value_type

Public Methods

 MatrixInterfaceConstant (const value_type &a=1.0, size_type nr=1, size_type nc=1)
 Typical constructor.

value_type operator() (const size_type, const size_type) const
size_type nrows () const
 Number of rows in the virtual matrix.

size_type ncols () const
 Number of columns in the virtual matrix.


Protected Attributes

const T val
const size_type height
const size_type width


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