XC Open source finite element analysis program
Public Member Functions | Friends | List of all members
XC::Matrix Class Reference
Inheritance diagram for XC::Matrix:
XC::MovableMatrix

Public Member Functions

 Matrix (void)
 Constructor.
 
 Matrix (int nrows, int ncols)
 Constructor.
 
 Matrix (double *data, int nrows, int ncols)
 
 Matrix (const boost::python::list &l)
 Constructor (interfaz Python).
 
int setData (double *newData, int nRows, int nCols)
 
const double * getDataPtr (void) const
 
double * getDataPtr (void)
 
bool Nula (void) const
 
int getDataSize (void) const
 
int getNumBytes (void) const
 
int noRows () const
 
int noCols () const
 
void Zero (void)
 
void Identity (void)
 
int resize (int numRow, int numCol)
 
int Assemble (const Matrix &, const ID &rows, const ID &cols, double fact=1.0)
 
int Solve (const Vector &V, Vector &res) const
 
int Solve (const Matrix &M, Matrix &res) const
 
int Invert (Matrix &res) const
 
double rowSum (int i) const
 Returns the sum of the i-th row.
 
double columnSum (int j) const
 Returns the sum of the j-th row.
 
double rowNorm (void) const
 Returns the maximum value of the elements of the vector that results that contains the row sums.
 
double columnNorm (void) const
 Returns the maximum value of the elements of the vector that results that contains the column sums.
 
double Norm2 (void) const
 Returns the squared modulus (euclidean norm) of the matrix.
 
double Norm (void) const
 Returns the modulus (euclidean norm) of the matrix.
 
int addMatrix (double factThis, const Matrix &other, double factOther)
 
int addMatrixProduct (double factThis, const Matrix &A, const Matrix &B, double factOther)
 
int addMatrixTripleProduct (double factThis, const Matrix &A, const Matrix &B, double factOther)
 
double & operator() (int row, int col)
 
const double & operator() (int row, int col) const
 
Matrix operator() (const ID &rows, const ID &cols) const
 
Vector getRow (int row) const
 Return the fila which index being passed as parameter.
 
Vector getCol (int col) const
 Return the columna which index being passed as parameter.
 
template<class TNSR >
Matrixoperator= (const TNSR &)
 
bool isRow (void) const
 
bool isColumn (void) const
 
Matrixoperator+= (double fact)
 
Matrixoperator-= (double fact)
 
Matrixoperator*= (double fact)
 
Matrixoperator/= (double fact)
 
Matrix operator+ (double fact) const
 
Matrix operator- (double fact) const
 
Matrix operator* (double fact) const
 
Matrix operator/ (double fact) const
 
Vector operator* (const Vector &V) const
 
Vector operator^ (const Vector &V) const
 
Matrix operator+ (const Matrix &M) const
 
Matrix operator- (const Matrix &M) const
 
Matrix operator* (const Matrix &M) const
 
Matrix operator^ (const Matrix &M) const
 
Matrixoperator+= (const Matrix &M)
 
Matrixoperator-= (const Matrix &M)
 
Matrix getTrn (void) const
 Return the transpuesta.
 
void Output (std::ostream &s) const
 Output method.
 
void Input (const std::string &)
 Lectura desde cadena de caracteres.
 
void write (std::ofstream &)
 Escribe la matriz en un archivo binario.
 
void read (std::ifstream &)
 Lee la matriz de un archivo binario.
 
int Assemble (const Matrix &V, int init_row, int init_col, double fact=1.0)
 Assemble.
 
int AssembleTranspose (const Matrix &V, int init_row, int init_col, double fact=1.0)
 
int Extract (const Matrix &V, int init_row, int init_col, double fact=1.0)
 
std::string toString (void) const
 
template<class TNSR >
XC::Matrixoperator= (const TNSR &V)
 

Friends

class Vector
 
class Message
 
class TCP_Socket
 
class TCP_SocketNoDelay
 
class UDP_Socket
 
class MPI_Channel
 
std::ostream & operator<< (std::ostream &s, const Matrix &M)
 
std::string to_string (const Matrix &)
 Returns a string that represents the matrix.
 
Matrix operator* (double a, const Matrix &M)
 

The documentation for this class was generated from the following files: