CIvfMat3d Class Reference

#include <ivfmath/IvfMat3d.h>

Inheritance diagram for CIvfMat3d:

CIvfMathBase List of all members.

Public Member Functions

 CIvfMat3d ()
 CIvfMat3d (CIvfMat3d &M)
 CIvfMat3d (double scalar)
virtual ~CIvfMat3d ()
void one ()
void identity ()
void zero ()
void print (ostream &out)
void setComponent (int row, int col, double value)
double getComponent (int row, int col)
void setColumn (int col, double v1, double v2, double v3)
void setRow (int row, double v1, double v2, double v3)
CIvfMat3dt ()
CIvfMat3dinv ()
CIvfMat3doperator= (CIvfMat3d &A)
CIvfMat3doperator= (double a)
CIvfMat3doperator+= (CIvfMat3d &A)
CIvfMat3doperator-= (CIvfMat3d &A)
CIvfMat3doperator * (CIvfMat3d &A)
CIvfVec3doperator * (CIvfVec3d &v)
CIvfMat3doperator * (double scalar)
CIvfMat3doperator/ (double scalar)
CIvfMat3doperator+ (CIvfMat3d &A)

Detailed Description

[3x3] Matrix class

Implements a simple [3x3] matrix.

Author:
Jonas Lindemann
Examples:

math.cpp.

Definition at line 39 of file IvfMat3d.h.


Constructor & Destructor Documentation

CIvfMat3d::CIvfMat3d  ) 
 

CIvfMat3d constructor

CIvfMat3d::CIvfMat3d CIvfMat3d M  ) 
 

CIvfMat3d copy constructor

CIvfMat3d::CIvfMat3d double  scalar  ) 
 

CIvfMat3d scalar constructor

virtual CIvfMat3d::~CIvfMat3d  )  [virtual]
 

CIvfMat3d destructor


Member Function Documentation

double CIvfMat3d::getComponent int  row,
int  col
 

Returns value of matrix element (row, col)

void CIvfMat3d::identity  ) 
 

Initializes matrix to identity I

CIvfMat3d& CIvfMat3d::inv  ) 
 

Return the inverse of the matrix

void CIvfMat3d::one  ) 
 

Initializes matrix with all ones (=1.0)

CIvfMat3d& CIvfMat3d::operator * double  scalar  ) 
 

Matrix/Scalar multiplication operator

CIvfVec3d& CIvfMat3d::operator * CIvfVec3d v  ) 
 

Matrix/Vector multiplication operator

CIvfMat3d& CIvfMat3d::operator * CIvfMat3d A  ) 
 

Matrix/Matrix multiplication operator

CIvfMat3d& CIvfMat3d::operator+ CIvfMat3d A  ) 
 

Matrix/Matrix addition operator

CIvfMat3d& CIvfMat3d::operator+= CIvfMat3d A  ) 
 

+= operator assignment Matrix += Matrix

CIvfMat3d& CIvfMat3d::operator-= CIvfMat3d A  ) 
 

-= operator assignment Matrix -= Matrix

CIvfMat3d& CIvfMat3d::operator/ double  scalar  ) 
 

Elemental division operator

CIvfMat3d& CIvfMat3d::operator= double  a  ) 
 

Assignment operator Matrix = scalar

CIvfMat3d& CIvfMat3d::operator= CIvfMat3d A  ) 
 

Assignment operator Matrix = Matrix

void CIvfMat3d::print ostream &  out  ) 
 

Prints matrix to std output

Examples:
math.cpp.

void CIvfMat3d::setColumn int  col,
double  v1,
double  v2,
double  v3
 

Assign a column the values v1, v2, v3

void CIvfMat3d::setComponent int  row,
int  col,
double  value
 

Sets matrix component

Assigns matrix element (row, col) to value.

void CIvfMat3d::setRow int  row,
double  v1,
double  v2,
double  v3
 

Assign a row the values v1, v2, v3

Examples:
math.cpp.

CIvfMat3d& CIvfMat3d::t  ) 
 

Return the transpose of the matrix

Examples:
math.cpp.

void CIvfMat3d::zero  ) 
 

Zeros the entire matrix


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 15:36:53 2006 for Interactive Visualisation Framework - Ivf++ by  doxygen 1.4.6-NO