DiagonalMatrix<Type> is a 2D diagonal matrix of objects of type Type, size nxn. More...
#include <OpenFOAM/DiagonalMatrix.H>
DiagonalMatrix<Type> is a 2D diagonal matrix of objects of type Type, size nxn.
Definition at line 55 of file DiagonalMatrix.H.
Public Member Functions | |
template<class Form > | |
DiagonalMatrix (const Matrix< Form, Type > &) | |
Construct from diagonal component of a Matrix.
| |
DiagonalMatrix (const label size) | |
Construct empty from size.
| |
DiagonalMatrix (const label, const Type &) | |
Construct from size and a value.
| |
DiagonalMatrix< Type > & | invert () |
Invert the diaganol matrix and return itself.
|
DiagonalMatrix | ( | const Matrix< Form, Type > & | a ) |
Construct from diagonal component of a Matrix.
Definition at line 32 of file DiagonalMatrix.C.
References forAll, and UList< Type >::operator[]().
DiagonalMatrix | ( | const label | size ) |
Construct empty from size.
Definition at line 44 of file DiagonalMatrix.C.
DiagonalMatrix | ( | const label | size, |
const Type & | val | ||
) |
Construct from size and a value.
Definition at line 51 of file DiagonalMatrix.C.
Foam::DiagonalMatrix< Type > & invert | ( | ) |
Invert the diaganol matrix and return itself.
Definition at line 58 of file DiagonalMatrix.C.
References forAll, and Foam::mag().