42 #ifndef Foam_DiagonalMatrix_H 43 #define Foam_DiagonalMatrix_H 54 template<
class Form,
class Type>
class Matrix;
102 template<
class CompOp>
DiagonalMatrix()=default
Default construct.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void applyPermutation(const List< label > &p)
Column-reorder this Matrix according to a given permutation labelList.
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.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
List< label > sortPermutation(CompOp &compare) const
Return a sort permutation labelList according to a given comparison on the diagonal entries...