42 #ifndef Foam_DiagonalMatrix_H 43 #define Foam_DiagonalMatrix_H 53 template<
class Form,
class Type>
class Matrix;
101 template<
class CompOp>
DiagonalMatrix()=default
Default construct.
labelList sortPermutation(const CompOp &compare) const
Return a sort permutation labelList according to a given comparison on the diagonal entries...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
DiagonalMatrix & operator=(const DiagonalMatrix &)=default
Copy assignment.
A templated (N x N) diagonal matrix of objects of <Type>, effectively containing N elements...
A templated (m x n) matrix of objects of <T>. The layout is (mRows x nCols) - row-major order: ...
void invert()
Return the matrix inverse into itself.
void applyPermutation(const labelUList &p)
Column-reorder this Matrix according to a given permutation labelList.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...