64 Matrix(
const int i,
const int j);
136 inline void setValue(
const int i,
const int j,
const real a);
163 inline real value(
const int i,
const int j)
const;
170 inline int lines()
const;
void operator*=(const real a)
Multiplies the current matrix by a real a.
Definition: Matrix.cpp:268
void operator-=(const Matrix &M)
Subtracts M to the current matrix.
Definition: Matrix.cpp:220
void operator=(const Matrix &M)
Set the current matrix to the dimension and the value of M.
Definition: Matrix.cpp:161
Matrix()
Constructor of matrix class. Generates a 1,1 matrix equal to zero.
Definition: Matrix.cpp:30
Standard class for every vector in Carmen.
Definition: Vector.h:29
real * U
Definition: Matrix.h:438
void operator/=(const real a)
Divides the current matrix by a real a.
Definition: Matrix.cpp:299
real value(const int i, const int j) const
Returns the value of the component i, j.
Definition: Matrix.h:515
Matrix operator/(const real a) const
Returns the division of the current matrix by a real a.
Definition: Matrix.cpp:312
Matrix operator*(const real a) const
Returns the product of the current matrix and a real a.
Definition: Matrix.cpp:280
void setZero()
Sets all the components to zero.
Definition: Matrix.cpp:127
Matrix operator+(const Matrix &M) const
Returns the addition of the current matrix and M.
Definition: Matrix.cpp:201
void operator+=(const Matrix &M)
Adds M to the current matrix.
Definition: Matrix.cpp:187
int Columns
Definition: Matrix.h:437
Standard class for every matrix in Carmen.
Definition: Matrix.h:28
Matrix operator*(const real a, const Matrix &M)
Returns the product of the current matrix and a real a.
Definition: Matrix.cpp:1040
int lines() const
Returns the number of lines of the matrix.
Definition: Matrix.h:486
int columns() const
Returns the number of columns of the matrix.
Definition: Matrix.h:495
void setValue(const int i, const int j, const real a)
Sets the component i, j to value a.
Definition: Matrix.h:505
Matrix operator-() const
Returns the opposite of the current matrix.
Definition: Matrix.cpp:249
ostream & operator<<(ostream &out, const Matrix &M)
Writes the components of the matrix M on screen.
Definition: Matrix.cpp:1053
void setEigenMatrix(const bool isLeft, const int AxisNo, const Vector V, const real c, const real h=0.)
Sets matrix as eigenmatrix.
Definition: Matrix.cpp:370
bool operator==(const Matrix &M) const
Compares the current matrix to a matrix M and returns true if they are equal.
Definition: Matrix.cpp:143
int Lines
Definition: Matrix.h:437
#define real
Definition: PreProcessor.h:31
~Matrix()
Distructor of matrix class. Deallocate memory of the matrix.
Definition: Matrix.cpp:112