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

vndinl.h File Reference

#include <assert.h>
#include <string>
#include <stream.h>

Defines

#define DELETE(p)    { if (p) delete p; p = 0; }
 Deletes a pointer. More...

#define NotNull(p)    ( p!=0 )
 Checks if a pointer is not null.

#define NonZero(h)    ( Inf(h)!=0.0 && Sup(h)!=0.0 )
 Checks if an interval is nonzero.

#define Square(A,n)    ( ColDimension(A)==RowDimension(A) && RowDimension(A)==n )
 Checks dimensions.

#define RightDim(A,n)    ( Dimension(A)==n )
 Checks dimensions.


Functions

template<classT> void Swap (T &a, T &b)
 Swap function. Swaps the arguments a# and b#.

template<classT> void Identity ( T & A)
 Identity. More...

template<classT> T Transpose ( const T & A)
 Transpose. More...

template<typenameVecType> void PrintVec (const VecType& V)

Define Documentation

#define DELETE( p )   { if (p) delete p; p = 0; }
 

Deletes a pointer.

If the argument is not the NULL pointer, then delete the object it points to.

#define NotNull( p )   ( p!=0 )
 

Checks if a pointer is not null.

#define NonZero( h )   ( Inf(h)!=0.0 && Sup(h)!=0.0 )
 

Checks if an interval is nonzero.

#define Square( A, n )   ( ColDimension(A)==RowDimension(A) && RowDimension(A)==n )
 

Checks dimensions.

#define RightDim( A, n )   ( Dimension(A)==n )
 

Checks dimensions.


Function Documentation

template<classT>
void Swap ( T & a,
T & b ) [inline]
 

Swap function. Swaps the arguments a# and b#.

template<classT>
void Identity ( T & A )
 

Identity.

Creates an identity matrix.

Parameters:
A   square matrix
Precondition:
RowDimension(A)==ColDimension(A)
Returns:
A (output) an identity matrix

template<classT>
T Transpose ( const T & A )
 

Transpose.

Returns the transpose of a matrix.

Parameters:
A   matrix
Precondition:
RowDimension(A)>0 && ColDimension(A)>0
Returns:
the transpose of A

template<typenameVecType>
void PrintVec ( const VecType & V )
 


Generated at Sun Oct 14 12:45:41 2001 for VNODE by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000