|
FlyoDoc_2011 Pisa 2011 by GmP --- 011
|
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 &) |
| gvet & | Get_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 &) |
| gmatrix & | operator+= (const gmatrix &m) |
| gmatrix & | operator-= (const gmatrix &m) |
| gmatrix & | operator*= (const gmatrix &m) |
| gmatrix & | operator*= (const double &c) |
| gmatrix & | operator^= (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) |
| gmatrix & | operator/= (const double &c) |
| gmatrix & | operator/= (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) |
| 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;
}