FlyoDoc_2011 Pisa 2011 by GmP --- 011
Public Member Functions | Public Attributes | Protected Attributes | Friends

gmatrix Class Reference

List of all members.

Public Member Functions

 gmatrix ()
 gmatrix (int, int)
 gmatrix (int, double)
 gmatrix (const gmatrix &m)
 gmatrix (const gvet &gv)
 ~gmatrix ()
 ================================== destructor
void Set_Size (int, int)
gmatrix Proj (const gvet &)
gvetGet_Vcol (gvet &)
void Reset ()
void Null ()
void Unit ()
gmatrix operator= (const gmatrix &)
gmatrix operator= (const gvet &)
gmatrix operator~ ()
gmatrix operator! ()
gmatrix operator+ ()
gmatrix operator- ()
gvet operator% (const gvet &)
gmatrixoperator+= (const gmatrix &m)
gmatrixoperator-= (const gmatrix &m)
gmatrixoperator*= (const gmatrix &m)
gmatrixoperator*= (const double &c)
gmatrixoperator^= (const int &pow)
double & operator() (int row, int col)
int RowNo () const
int ColNo () const
gmatrix operator* (const gmatrix &m)
gmatrix operator* (const double &a)
gmatrix operator+ (const gmatrix &m)
gmatrix operator- (const gmatrix &m)
gmatrixoperator/= (const double &c)
gmatrixoperator/= (gmatrix &m)
gmatrix operator/ (gmatrix &m)
gmatrix operator/ (const double &a)
void Print (const char *)
gmatrix Solve (const gmatrix &v) const
gmatrix Adj ()
gmatrix Inv ()
double Det ()

Public Attributes

double detrm
int okflag

Protected Attributes

int Col
int Row
int Elem
double ** ValM

Friends

gmatrix operator^ (const gmatrix &m, const int &pow)
gmatrix operator* (const double &a, gmatrix &m)
gmatrix operator/ (const double &a, gmatrix &m)

Detailed Description

Definition at line 50 of file gmatrix.h.


Constructor & Destructor Documentation

gmatrix::gmatrix ( )

-------------- Matrici -------------------------------

algebra: Operator/Method Description --------------- ----------- operator () : This function operator can be used as a two-dimensional subscript operator to get/set individual matrix elements.

operator ! : This operator is used to calculate inversion of matrix.

operator ~ : This operator is used to return transpose of a matrix.

operator ^ : It calculates power (by a scalar) of a matrix. When using this operator in a matrix equation, care must be taken by parenthesizing it because it has lower precedence than addition, subtraction, multiplication and division operators. operator += : combined subtraction and assignment operator operator -= : combined subctraction and assignment operator

-------------------------------------------------------------------------------- attenzione mettere le parentesi nelle operazioni complesse per fissare le priorita'. ------------------------------------------------------------------------------

Definition at line 52 of file gmatrix.cpp.

{
        // matrice vuota con dimensioni nulle
        Row =Col=Elem=0;
        ValM= 0;
        detrm=0.0;
        okflag=0;

}
gmatrix::~gmatrix ( )

================================== destructor

Definition at line 138 of file gmatrix.cpp.

{
        for ( int i=0; i < Row; i++ ) delete [] ValM[i];
        delete [] ValM;
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables