A mesh function representing another mesh function under a pointwise, unary operation.
More...
#include <lf/uscalfe/uscalfe.h>
|
(Note that these are not member functions.)
|
template<class A , class = std::enable_if_t<isMeshFunction<A>>> |
auto | operator- (const A &a) |
| Applies the unary minus operator to a mesh function. More...
|
|
template<class A , class = std::enable_if_t<isMeshFunction<A>>> |
auto | squaredNorm (const A &a) |
| Pointwise squared norm of another mesh function. More...
|
|
template<class A , class = std::enable_if_t<isMeshFunction<A>>> |
auto | transpose (const A &a) |
| Pointwise transpose of an Eigen::Matrix or Eigen::Array More...
|
|
template<class A , class = std::enable_if_t<isMeshFunction<A>>> |
auto | adjoint (const A &a) |
| Pointwise adjoint of an Eigen::Matrix , i.e. the conjugate transposed of the matrix. More...
|
|
template<class A , class = std::enable_if_t<isMeshFunction<A>>> |
auto | conjugate (const A &a) |
| Pointwise conjuagte of an Eigen::Matrix , Eigen::Array or scalar valued mesh function. More...
|
|
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()
template<class A , class = std::enable_if_t<isMeshFunction<A>>>
auto adjoint |
( |
const A & |
a | ) |
|
|
related |
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 304 of file mesh_function_unary.h.
◆ conjugate()
template<class A , class = std::enable_if_t<isMeshFunction<A>>>
auto conjugate |
( |
const A & |
a | ) |
|
|
related |
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 321 of file mesh_function_unary.h.
◆ operator-()
template<class A , class = std::enable_if_t<isMeshFunction<A>>>
auto operator- |
( |
const A & |
a | ) |
|
|
related |
Applies the unary minus operator to a mesh function.
- Template Parameters
-
A | The type of the original mesh function. |
- Parameters
-
a | The original mesh function. |
- Returns
-a
, where the minus operator is applied pointwise everywhere on the mesh.
- Note
- The MeshFunctionReturnType of
a
must support the minus operator!
Definition at line 260 of file mesh_function_unary.h.
◆ squaredNorm()
template<class A , class = std::enable_if_t<isMeshFunction<A>>>
auto squaredNorm |
( |
const A & |
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 275 of file mesh_function_unary.h.
◆ transpose()
template<class A , class = std::enable_if_t<isMeshFunction<A>>>
auto transpose |
( |
const A & |
a | ) |
|
|
related |
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 287 of file mesh_function_unary.h.
◆ mf_
template<class OP , class MF >
◆ op_
template<class OP , class MF >
The documentation for this class was generated from the following file: