IdentityMatrix class
Represents the identity matrix function.
This class represents the matrix function, which at each point, returns the dimensional identity matrix:
Base classes
-
template<class Scalar, class Derived>class MatrixFunctionBase<Real, IdentityMatrix>
- Base class for matrix-valued functions defined on a mesh.
Constructors, destructors, conversion operators
- IdentityMatrix(size_t n)
- Constructs the identity matrix function.
Public functions
- auto copy() const -> IdentityMatrix* override noexcept
- Copies the object and returns a non-owning pointer to the copied object.
Function documentation
Rodin:: Variational:: IdentityMatrix:: IdentityMatrix(size_t n)
Constructs the identity matrix function.
| Parameters | |
|---|---|
| n in | Dimension of identity matrix |
IdentityMatrix* Rodin:: Variational:: IdentityMatrix:: copy() const override noexcept
Copies the object and returns a non-owning pointer to the copied object.
| Returns | Non-owning pointer to the copied object. |
|---|