#include <LA_Matrix.h>
Collaboration diagram for LA::Matrix:

Public Member Functions | |
| Matrix () | |
| Standard constructor. | |
| Matrix (int rows, int columns) | |
| Constructs a nxm matrix and initializes all entries to 0.0. | |
| Matrix (int rows, int columns, const double *M) | |
| Constructs a nxm matrix and initializes the entries to the values in the passed array (row major). | |
| Matrix (const Matrix &M) | |
| Copy contructor. | |
| Matrix (const Matrix3x3< double > &M) | |
| Copy contructor. | |
| virtual | ~Matrix () |
| Destructor. | |
| Matrix & | operator= (const Matrix &M) |
| Copy operator. | |
| Matrix & | operator= (const Matrix3x3< double > &M) |
| Copy operator. | |
| void | create (int rows, int columns) |
| Recreates this matrix as nxm matrix and initializes all values to 0.0. | |
| void | create (int rows, int columns, const double *M) |
| Recreates this matrix as nxm matrix and initializes the entries to the values in the passed array (row major). | |
| const Vector & | operator[] (int row) const |
| Constant element access operator. | |
| Vector & | operator[] (int row) |
| Element access operator. | |
| const Vector & | operator() (int row) const |
| Constant element access operator. | |
| Vector & | operator() (int row) |
| Element access operator. | |
| const double & | operator() (int row, int column) const |
| Constant element access operator. | |
| double & | operator() (int row, int column) |
| Element access operator. | |
| int | rows () const |
| Returns the number of rows (n). | |
| int | columns () const |
| Returns the number of columns (m). | |
| Vector | get_row (int index) const |
| Returns a row vector. | |
| void | set_row (int index, const Vector &v) |
| Sets a row vector. | |
| Vector | get_column (int index) const |
| Returns a column vector. | |
| void | set_column (int index, const Vector &v) |
| Sets a column vector. | |
| Matrix | get_sub (int rowstart, int rowlength, int columnstart, int columnlength) const |
| Retrieves a submatrix. | |
| void | set_sub (int rowstart, int columnstart, const Matrix &M) |
| Sets a submatrix. | |
| Matrix & | operator+= (const Matrix &M) |
| Adds a matrix to this matrix. | |
| Matrix & | operator-= (const Matrix &M) |
| Subtracts a matrix from this matrix. | |
| Matrix & | operator *= (const Matrix &M) |
| Multiplies this matrix with another matrix. | |
| Matrix & | operator *= (const double &s) |
| Multiplies all entries of this matrix with the passed scalar. | |
| Matrix & | operator/= (const Matrix &M) |
| Divides this matrix by the passed matrix (multiplies this matrix with the inverse of the passed matrix). | |
| Matrix & | operator/= (const double &s) |
| Divides all entries of this matrix by the passed scalar. | |
| void | transpose () |
| Transposes the matrix. | |
| Matrix | transposition () const |
| Returns the transposition of this matrix. | |
| Matrix | T () const |
| Returns the transposition of this matrix. | |
| void | invert () |
| Inverts this matrix. | |
| Matrix | inverse () const |
| Returns the inverse of this matrix. | |
| Vector | solve (const Vector &b) |
| Solves the linear equation Ax=b where A is this matrix. | |
| double | det () const |
| Returns the determinant of this matrix. | |
| std::string | asString () const |
| Returns a human-readable representation of the matrix. | |
Static Public Member Functions | |
| Matrix | identity (int dim) |
| Returns a nxn identity matrix. | |
Private Member Functions | |
| void | destroy () |
Private Attributes | |
| int | r |
| int | c |
| Vector * | content |
Friends | |
| Matrix | operator+ (const Matrix &M1, const Matrix &M2) |
| Adds to matrices. | |
| Matrix | operator- (const Matrix &M1, const Matrix &M2) |
| Subtracts to matrices. | |
| Matrix | operator * (const Matrix &M1, const Matrix &M2) |
| Multiplies to matrices. | |
| Vector | operator * (const Matrix &M, const Vector &v) |
| Multiplies a matrix with a vector. | |
| Matrix | operator * (const Matrix &M, const double &s) |
| Multiplies a matrix with a scalar. | |
| Matrix | operator * (const double &s, const Matrix &M) |
| Multiplies a matrix with a scalar. | |
| Matrix | operator/ (const Matrix &M, const double &s) |
| Divides a matrix by a scalar. | |
| Matrix | operator/ (const Matrix &M1, const Matrix &M2) |
| Divides a matrix by another matrix (same as multiplying with the inverse). | |
| Matrix | transpose (const Matrix &M) |
| Returns the transposition of a matrix. | |
| Matrix | invert (const Matrix &M) |
| Returns the inverse of a matrix. | |
| Matrix | inv (const Matrix &M) |
| Returns the inverse of a matrix. | |
| double | det (const Matrix &M) |
| Returns the determinant of a matrix. | |
| Out & | operator<< (Out &stream, const Matrix &M) |
| Out operator for GT-streams. | |
| In & | operator>> (In &stream, Matrix &M) |
| In operator for GT-streams. | |
Definition at line 28 of file LA_Matrix.h.
|
|
Standard constructor. Contructs an empty matrix. Definition at line 14 of file LA_Matrix.cpp. |
|
||||||||||||
|
Constructs a nxm matrix and initializes all entries to 0.0.
Definition at line 18 of file LA_Matrix.cpp. References create(). |
Here is the call graph for this function:

|
||||||||||||||||
|
Constructs a nxm matrix and initializes the entries to the values in the passed array (row major).
Definition at line 23 of file LA_Matrix.cpp. References create(). |
Here is the call graph for this function:

|
|
Copy contructor.
Definition at line 29 of file LA_Matrix.cpp. |
|
|
Copy contructor.
Definition at line 35 of file LA_Matrix.cpp. |
|
|
Destructor.
Definition at line 49 of file LA_Matrix.cpp. References destroy(). |
Here is the call graph for this function:

|
|
Returns a nxn identity matrix.
Definition at line 41 of file LA_Matrix.cpp. |
|
|
Copy operator.
Definition at line 54 of file LA_Matrix.cpp. |
Here is the call graph for this function:

|
|
Copy operator.
Definition at line 62 of file LA_Matrix.cpp. References Matrix3x3< V >::c, content, and create(). |
Here is the call graph for this function:

|
||||||||||||
|
Recreates this matrix as nxm matrix and initializes all values to 0.0.
Definition at line 74 of file LA_Matrix.cpp. References content, and destroy(). Referenced by LA::Eigenvalues::Eigenvalues(), Matrix(), operator=(), and LA::operator>>(). |
Here is the call graph for this function:

|
||||||||||||||||
|
Recreates this matrix as nxm matrix and initializes the entries to the values in the passed array (row major).
Definition at line 87 of file LA_Matrix.cpp. |
Here is the call graph for this function:

|
|
Constant element access operator.
Definition at line 104 of file LA_Matrix.cpp. References content. |
|
|
Element access operator.
Definition at line 110 of file LA_Matrix.cpp. References content. |
|
|
Constant element access operator.
Definition at line 116 of file LA_Matrix.cpp. References content. |
|
|
Element access operator.
Definition at line 122 of file LA_Matrix.cpp. References content. |
|
||||||||||||
|
Constant element access operator.
Definition at line 128 of file LA_Matrix.cpp. References LA::Vector::content, and content. |
|
||||||||||||
|
Element access operator.
Definition at line 135 of file LA_Matrix.cpp. References LA::Vector::content, and content. |
|
|
Returns the number of rows (n).
Definition at line 142 of file LA_Matrix.cpp. Referenced by LA::operator<<(). |
|
|
Returns the number of columns (m).
Definition at line 147 of file LA_Matrix.cpp. Referenced by LA::Eigenvalues::Eigenvalues(), and LA::operator<<(). |
|
|
Returns a row vector.
Definition at line 152 of file LA_Matrix.cpp. References content. |
|
||||||||||||
|
Sets a row vector.
Definition at line 158 of file LA_Matrix.cpp. References content, and LA::Vector::n. |
|
|
Returns a column vector.
Definition at line 165 of file LA_Matrix.cpp. References content. |
|
||||||||||||
|
Sets a column vector.
Definition at line 175 of file LA_Matrix.cpp. References LA::Vector::content, content, and LA::Vector::n. Referenced by LA::LU::inverse(). |
|
||||||||||||||||||||
|
Retrieves a submatrix.
Definition at line 184 of file LA_Matrix.cpp. References content, and LA::Vector::sub(). |
Here is the call graph for this function:

|
||||||||||||||||
|
Sets a submatrix.
Definition at line 197 of file LA_Matrix.cpp. References c, content, r, and LA::Vector::set_sub(). |
Here is the call graph for this function:

|
|
Adds a matrix to this matrix.
Definition at line 206 of file LA_Matrix.cpp. |
|
|
Subtracts a matrix from this matrix.
Definition at line 214 of file LA_Matrix.cpp. |
|
|
Multiplies this matrix with another matrix.
Definition at line 222 of file LA_Matrix.cpp. |
|
|
Multiplies all entries of this matrix with the passed scalar.
Definition at line 228 of file LA_Matrix.cpp. References content. |
|
|
Divides this matrix by the passed matrix (multiplies this matrix with the inverse of the passed matrix).
Definition at line 235 of file LA_Matrix.cpp. References LA::invert(). |
Here is the call graph for this function:

|
|
Divides all entries of this matrix by the passed scalar.
Definition at line 241 of file LA_Matrix.cpp. References content. |
|
|
Transposes the matrix.
Definition at line 248 of file LA_Matrix.cpp. References LA::Vector::content, and content. Referenced by LA::transpose(), and transposition(). |
|
|
Returns the transposition of this matrix.
Definition at line 261 of file LA_Matrix.cpp. References transpose(). Referenced by T(). |
Here is the call graph for this function:

|
|
Returns the transposition of this matrix.
Definition at line 268 of file LA_Matrix.cpp. References transposition(). |
Here is the call graph for this function:

|
|
Inverts this matrix.
Definition at line 273 of file LA_Matrix.cpp. References LA::LU::inverse(). Referenced by LA::inv(), and LA::invert(). |
Here is the call graph for this function:

|
|
Returns the inverse of this matrix.
Definition at line 281 of file LA_Matrix.cpp. References LA::invert(). |
Here is the call graph for this function:

|
|
Solves the linear equation Ax=b where A is this matrix.
Definition at line 286 of file LA_Matrix.cpp. References LA::Vector::n, and LA::LU::solve(). Referenced by interpol::SplineInterpolation::CalcSplines(). |
Here is the call graph for this function:

|
|
Returns the determinant of this matrix.
Definition at line 295 of file LA_Matrix.cpp. References LA::LU::det(). Referenced by LA::det(). |
Here is the call graph for this function:

|
|
Returns a human-readable representation of the matrix.
Definition at line 303 of file LA_Matrix.cpp. |
|
|
Definition at line 310 of file LA_Matrix.cpp. References content. |
|
||||||||||||
|
Adds to matrices.
Definition at line 319 of file LA_Matrix.cpp. |
|
||||||||||||
|
Subtracts to matrices.
Definition at line 326 of file LA_Matrix.cpp. |
|
||||||||||||
|
Multiplies to matrices.
Definition at line 333 of file LA_Matrix.cpp. |
|
||||||||||||
|
Multiplies a matrix with a vector.
Definition at line 353 of file LA_Matrix.cpp. |
|
||||||||||||
|
Multiplies a matrix with a scalar.
Definition at line 369 of file LA_Matrix.cpp. |
|
||||||||||||
|
Multiplies a matrix with a scalar.
Definition at line 376 of file LA_Matrix.cpp. |
|
||||||||||||
|
Divides a matrix by a scalar.
Definition at line 383 of file LA_Matrix.cpp. |
|
||||||||||||
|
Divides a matrix by another matrix (same as multiplying with the inverse).
Definition at line 390 of file LA_Matrix.cpp. |
|
|
Returns the transposition of a matrix.
Definition at line 395 of file LA_Matrix.cpp. |
|
|
Returns the inverse of a matrix.
Definition at line 402 of file LA_Matrix.cpp. |
|
|
Returns the inverse of a matrix.
Definition at line 409 of file LA_Matrix.cpp. |
|
|
Returns the determinant of a matrix.
Definition at line 416 of file LA_Matrix.cpp. |
|
||||||||||||
|
Out operator for GT-streams.
Definition at line 435 of file LA_Matrix.cpp. |
|
||||||||||||
|
In operator for GT-streams.
Definition at line 445 of file LA_Matrix.cpp. |
|
|
Definition at line 306 of file LA_Matrix.h. Referenced by LA::operator *(), operator+=(), operator-=(), LA::operator<<(), operator=(), and set_sub(). |
|
|
Definition at line 307 of file LA_Matrix.h. Referenced by LA::operator *(), operator+=(), operator-=(), LA::operator<<(), operator=(), and set_sub(). |
|
|
Definition at line 308 of file LA_Matrix.h. Referenced by create(), destroy(), get_column(), get_row(), get_sub(), LA::operator *(), operator *=(), operator()(), operator+=(), operator-=(), operator/=(), LA::operator<<(), operator=(), LA::operator>>(), operator[](), set_column(), set_row(), set_sub(), and transpose(). |
1.3.6