Main Page | Modules | Class Hierarchy | Class List | Class Members | Examples

ArMatrix Class Reference

#include <ArMatrix.h>

List of all members.


Detailed Description

****************************************************************************

File: ArMatrix.h

Function: Header for the matrix class.

Created: George V. Paul. gvp@activmedia.com. January 11 2006.


Public Member Functions

 ArMatrix (void)
 Constructor.
 ArMatrix (int rows, int cols=1)
 Constructor.
 ArMatrix (int rows, int cols, double val)
 Constructor.
 ArMatrix (const ArMatrix &mat)
 Copy constructor.
 ~ArMatrix ()
 Destructor.
double & operator() (int i, int j=0)
 Matrix access.
ArMatrix operator+ (ArMatrix mat)
 Matrix add.
ArMatrix operator- (ArMatrix mat)
 Matrix subtract.
ArMatrix operator * (ArMatrix mat)
 Matrix multiply.
void setDiagonal (double val)
 Constructor for identity matrix.
ArMatrix multiply (ArMatrix &in)
 Multiply with another matrix.
ArMatrix transpose (void)
 Transpose the matrix.
void print (char *header=NULL)
 Print matrix.
void printDiagonal (char *header=NULL)
 Print matrix.
double getElement (int i, int j)
 Get the i,j element;.
int getRows (void)
 Get the no of rows.
int getCols (void)
 Get the no of cols.
void setElement (int i, int j, double d)
 Set the i,j element;.
double inverse (ArMatrix &Ainv)
 Inverse of the matrix if square.


Generated on Tue Feb 20 10:56:29 2007 for Arnl by  doxygen 1.4.0