43 #ifndef SquareMatrix_H 44 #define SquareMatrix_H 56 template<
class Type>
class RectangularMatrix;
66 public Matrix<SquareMatrix<Type>, Type>
98 template<
class AnyType>
103 template<
class AnyType>
128 template<
class MatrixType>
132 template<
class MatrixType>
151 inline void resize(
const label
m);
154 inline void resize(
const label
m,
const label
n);
174 template<
class CompOp>
194 template<
class AnyType>
void applyPermutation(const List< label > &p)
Column-reorder this Matrix according to a given permutation labelList.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
autoPtr< SquareMatrix< Type > > clone() const
Clone.
label n() const noexcept
The number of columns.
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)
A templated (M x N) rectangular matrix of objects of <Type>, containing M*N elements, derived from Matrix.
label m() const noexcept
The number of rows.
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.
List< label > sortPermutation(CompOp &compare) const
Return a sort permutation labelList according to a given comparison on the diagonal entries...
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.