43 #ifndef Foam_SquareMatrix_H 44 #define Foam_SquareMatrix_H 56 template<
class Type>
class RectangularMatrix;
66 public Matrix<SquareMatrix<Type>, Type>
97 template<
class AnyType>
102 template<
class AnyType>
127 template<
class MatrixType>
131 template<
class MatrixType>
150 inline void resize(
const label
m);
156 inline void resize(
const label
m,
const label
n);
176 template<
class CompOp>
195 template<
class AnyType>
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
autoPtr< SquareMatrix< Type > > clone() const
Clone.
A templated block of an (m x n) matrix of type <MatrixType>.
bool symmetric() const
Return true if the square matrix is effectively symmetric/Hermitian.
void shallowResize(const label m)
Resize the matrix without reallocating storage (unsafe)
label n() const noexcept
The number of columns.
void resize_nocopy(const label n)
Resize the matrix without preserving existing content.
A templated (M x N) rectangular matrix of objects of <Type>, containing M*N elements, derived from Matrix.
labelList sortPermutation(CompOp &compare) const
Return a sort permutation using the given comparison operator on the diagonal entries.
A templated (m x n) matrix of objects of <T>. The layout is (mRows x nCols) - row-major order: ...
SquareMatrix()=default
Default construct.
void setSize(const label m)
Resize the matrix preserving the elements.
label m() const noexcept
The number of rows.
void resize(const label m)
Resize the matrix preserving the elements.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Templated identity and dual space identity tensors derived from SphericalTensor.
SquareMatrix & operator=(const SquareMatrix &)=default
Copy assignment.
A templated (N x N) square matrix of objects of <Type>, containing N*N elements, derived from Matrix...
bool tridiagonal() const
Return true if the square matrix is reduced tridiagonal.
void applyPermutation(const labelUList &p)
Column-reorder this Matrix according to the given permutation.