intblas::IntervalMatrixT< r, c > Class Template Reference

This class adds strong type checking to matrix operations. More...

#include <IntBLAS.h>

Inheritance diagram for intblas::IntervalMatrixT< r, c >:

intblas::IntervalMatrix List of all members.

Public Member Functions

 IntervalMatrixT (const IntervalMatrix &m)
 IntervalMatrixT (const IntervalMatrixT &m)
void operator= (IntervalMatrix &b)
 This constructs a matrix with r rows and c columns.

Detailed Description

template<unsigned int r, unsigned int c>
class intblas::IntervalMatrixT< r, c >

This class adds strong type checking to matrix operations.

This also allows you to typedef matrices you commonly use. For example, say you use a lot of 2x2 matrices. For every declaration you could:

 IntervalMatrix m(2, 2), n(2, 2), o(2, 2);
That would get old. Instead you can typedef using this class which eliminates the need for an explicit constructor call. To continue our example, you could do the following instead.
 typedef IntervalMatrixT<2,2> IMatrix2x2;
 . . .
 IMatrix2x2 m, n, o;
Either way will work. But this method helps eliminate typos and typing.

Further this class also adds strong type checking during assignemnt. This means that you cannot assign a 3x3 matrix to a 2x2 matrix. This is legal if you used the IntervalMatrix class.


Member Function Documentation

template<unsigned int r, unsigned int c>
void intblas::IntervalMatrixT< r, c >::operator= IntervalMatrix b  )  [inline]
 

This constructs a matrix with r rows and c columns.

inline IntervalMatrixT() : IntervalMatrix( r, c ){}

/**Copies the values of the matrix b into this matrix, with strong type checking. This operation can be expensive. This is especially the case if this matrix is not empty or b has a different size.

Note:
Strong type checking means that you cannot copy different sized matrices. That means this matrix's dimensions must match b's dimensions.
Parameters:
b The matrix whose values are to be copied.


Generated on Wed Apr 26 16:12:04 2006 for IntBLAS by  doxygen 1.4.4