A mesh function representing another mesh function under a pointwise, unary operation.
More...
#include <lf/uscalfe/uscalfe.h>
|
(Note that these are not member symbols.)
|
| template<MeshFunction A> |
| auto | operator- (const A &a) -> MeshFunctionUnary< internal::UnaryOpMinus, A > |
| | Applies the unary minus operator to a mesh function.
|
| |
| template<MeshFunction A> |
| auto | squaredNorm (const A &a) -> MeshFunctionUnary< internal::UnaryOpSquaredNorm, A > |
| | Pointwise squared norm of another mesh function.
|
| |
| template<MeshFunction A> |
| auto | transpose (const A &a) -> MeshFunctionUnary< internal::UnaryOpTranspose, A > |
| | Pointwise transpose of an Eigen::Matrix or Eigen::Array
|
| |
| template<MeshFunction A> |
| auto | adjoint (const A &a) -> MeshFunctionUnary< internal::UnaryOpAdjoint, A > |
| | Pointwise adjoint of an Eigen::Matrix, i.e. the conjugate transposed of the matrix.
|
| |
| template<MeshFunction A> |
| auto | conjugate (const A &a) -> MeshFunctionUnary< internal::UnaryOpConjugate, A > |
| | Pointwise conjuagte of an Eigen::Matrix, Eigen::Array or scalar valued mesh function.
|
| |
template<class OP, class MF>
class lf::mesh::utils::MeshFunctionUnary< OP, MF >
A mesh function representing another mesh function under a pointwise, unary operation.
- Template Parameters
-
| OP | The operator that should be applied (see below) |
| MF | The type of the original mesh function. |
Requirements for OP
The Operator OP must fulfill the following requirements:
- It must be moveable
- It should overload
operator() as follows: template <class U>
std::vector<Z>
operator()(
const std::vector<U>& u,
int)
auto operator()(const mesh::Entity &e, const Eigen::MatrixXd &local) const
where U is the MeshFunctionReturnType of the original MeshFunction, and Z is the type of the mesh function OP MF.
- Note
- Usually there is no need to use MeshFunctionUnary directly. There are a number of operator overloads which use MeshFunctionUnary internally.
Definition at line 39 of file mesh_function_unary.h.
◆ MeshFunctionUnary()
template<class OP, class MF>
◆ operator()()
template<class OP, class MF>
◆ adjoint()
Pointwise adjoint of an Eigen::Matrix, i.e. the conjugate transposed of the matrix.
- Template Parameters
-
| A | The type of the original mesh function. |
- Parameters
-
| a | The original mesh function whose adjoint should be taken. |
- Returns
- MeshFunction representing the pointwise adjoint of
a.
Definition at line 308 of file mesh_function_unary.h.
References MeshFunctionUnary().
◆ conjugate()
Pointwise conjuagte of an Eigen::Matrix, Eigen::Array or scalar valued mesh function.
- Template Parameters
-
| A | The type of the original mesh function. |
- Parameters
-
| a | The original mesh function that should be conjugated. |
- Returns
- MeshFunction representing the pointwise conjugate of
a.
Definition at line 325 of file mesh_function_unary.h.
References MeshFunctionUnary().
◆ operator-()
◆ squaredNorm()
template<MeshFunction A>
| auto squaredNorm |
( |
const A & | a | ) |
-> MeshFunctionUnary<internal::UnaryOpSquaredNorm, A> |
|
related |
Pointwise squared norm of another mesh function.
- Template Parameters
-
| A | The type of the wrapped mesh function. |
- Parameters
-
| a | The original mesh function |
- Returns
- MeshFunction representing
|a|^2 (pointwise)
- Note
- This operator requires
a to be either scalar or (eigen-) vector valued.
Definition at line 278 of file mesh_function_unary.h.
References MeshFunctionUnary().
◆ transpose()
Pointwise transpose of an Eigen::Matrix or Eigen::Array
- Template Parameters
-
| A | The type of the wrapped mesh function. |
- Parameters
-
- Returns
- MeshFunction representing the pointwise transpose of
a.
Definition at line 291 of file mesh_function_unary.h.
References MeshFunctionUnary().
◆ mf_
template<class OP, class MF>
◆ op_
template<class OP, class MF>
The documentation for this class was generated from the following file: