IdentityMatrix class
#include <Rodin/Variational/IdentityMatrix.h>
Represents the identity matrix function .
This class represents the matrix function that returns the dimensional identity matrix at each point:
Commonly used in finite element formulations for identity operators or as a reference configuration.
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.
- IdentityMatrix(const IdentityMatrix& other)
- Copy constructor.
- IdentityMatrix(IdentityMatrix&& other)
- Move constructor.
Public functions
- auto getRows() const -> size_t
- Gets number of rows.
- auto getColumns() const -> size_t
- Gets number of columns.
-
auto getValue(const Geometry::
Point&) const -> auto - Evaluates the identity matrix at a point.
- auto copy() const -> IdentityMatrix* override noexcept
- Creates a polymorphic copy of the identity matrix.
Function documentation
Rodin:: Variational:: IdentityMatrix:: IdentityMatrix(size_t n)
Constructs the identity matrix function.
| Parameters | |
|---|---|
| n | Dimension of identity matrix |
Rodin:: Variational:: IdentityMatrix:: IdentityMatrix(const IdentityMatrix& other)
Copy constructor.
| Parameters | |
|---|---|
| other | Identity matrix to copy |
Rodin:: Variational:: IdentityMatrix:: IdentityMatrix(IdentityMatrix&& other)
Move constructor.
| Parameters | |
|---|---|
| other | Identity matrix to move |
size_t Rodin:: Variational:: IdentityMatrix:: getColumns() const
Gets number of columns.
| Returns | Dimension |
|---|
auto Rodin:: Variational:: IdentityMatrix:: getValue(const Geometry:: Point&) const
Evaluates the identity matrix at a point.
| Returns | Identity matrix |
|---|
IdentityMatrix* Rodin:: Variational:: IdentityMatrix:: copy() const override noexcept
Creates a polymorphic copy of the identity matrix.
| Returns | Pointer to copy |
|---|