LehrFEM++ 1.0.0
A simple Finite Element Library for teaching
Public Member Functions | Private Attributes | Related Functions | List of all members
lf::mesh::utils::MeshFunctionUnary< OP, MF > Class Template Reference

A mesh function representing another mesh function under a pointwise, unary operation. More...

#include <lf/uscalfe/uscalfe.h>

Public Member Functions

 MeshFunctionUnary (OP op, MF mf)
 
auto operator() (const mesh::Entity &e, const Eigen::MatrixXd &local) const
 

Private Attributes

OP op_
 
MF mf_
 

Related Functions

(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...
 

Detailed Description

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
OPThe operator that should be applied (see below)
MFThe type of the original mesh function.

Requirements for OP

The Operator OP must fulfill the following requirements:

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.

Constructor & Destructor Documentation

◆ MeshFunctionUnary()

template<class OP , class MF >
lf::mesh::utils::MeshFunctionUnary< OP, MF >::MeshFunctionUnary ( OP  op,
MF  mf 
)
inline

Definition at line 41 of file mesh_function_unary.h.

Member Function Documentation

◆ operator()()

template<class OP , class MF >
auto lf::mesh::utils::MeshFunctionUnary< OP, MF >::operator() ( const mesh::Entity e,
const Eigen::MatrixXd &  local 
) const
inline

Friends And Related Function Documentation

◆ 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
AThe type of the original mesh function.
Parameters
aThe 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
AThe type of the original mesh function.
Parameters
aThe 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
AThe type of the original mesh function.
Parameters
aThe 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
AThe type of the wrapped mesh function.
Parameters
aThe 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
AThe type of the wrapped mesh function.
Parameters
aThe original MeshFunction
Returns
MeshFunction representing the pointwise transpose of a.

Definition at line 287 of file mesh_function_unary.h.

Member Data Documentation

◆ mf_

template<class OP , class MF >
MF lf::mesh::utils::MeshFunctionUnary< OP, MF >::mf_
private

◆ op_

template<class OP , class MF >
OP lf::mesh::utils::MeshFunctionUnary< OP, MF >::op_
private

The documentation for this class was generated from the following file: