intblas::IntervalVectorT< d > Class Template Reference

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

#include <IntBLAS.h>

Inheritance diagram for intblas::IntervalVectorT< d >:

intblas::IntervalVector List of all members.

Public Member Functions

 IntervalVectorT (const IntervalVector &v)
 IntervalVectorT (const IntervalVectorT &v)
void operator= (IntervalVector &v)
 Copies the values of the vector b into this vector, with strong type checking.

Detailed Description

template<unsigned int d>
class intblas::IntervalVectorT< d >

This class adds strong type checking to vector operations.

This classes allows you to typedef a vector you commonly use. For example, say you use a lot of 100 dimensional vectors. For every declaration you could:

 IntervalVector v( 100 ), w( 100 ), x( 100 );

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 IntervalVector<100> IVector100;
 . . .
 IVector100 v, w, x;<br>
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 3 dimensional vector to a 2 dimensional vector. This is legal if you used the IntervalVector class.


Member Function Documentation

template<unsigned int d>
void intblas::IntervalVectorT< d >::operator= IntervalVector v  )  [inline]
 

Copies the values of the vector b into this vector, with strong type checking.

This operation can be expensive. This is especially the case if this vectors is not empty or b has a different size.

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


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