Medusa  1.1
Coordinate Free Mehless Method implementation
mm::ImplicitOperators< shape_storage_type, matrix_type, rhs_type >::GradOp Class Reference

Detailed Description

template<class shape_storage_type, class matrix_type, class rhs_type>
class mm::ImplicitOperators< shape_storage_type, matrix_type, rhs_type >::GradOp

Class representing the directional derivative (gradient) operation.

If vec is denoted by \(\vec v\), then this class represents \((\vec v \cdot \nabla)\) operator evaluated at node with index node.

Definition at line 202 of file ImplicitOperators_fwd.hpp.

+ Inheritance diagram for mm::ImplicitOperators< shape_storage_type, matrix_type, rhs_type >::GradOp:
+ Collaboration diagram for mm::ImplicitOperators< shape_storage_type, matrix_type, rhs_type >::GradOp:

Public Member Functions

 GradOp (ImplicitOperators &op, int node, int row, vector_t vec)
 Construct directional derivative operator with given direction. More...
 
RowOp eval (scalar_t alpha) const
 Evaluate this operator. More...
 
RowOp eval () const
 Eval with alpha = 1.0. More...
 
RowOp operator* (scalar_t alpha)
 Multiply this operation by a scalar. More...
 
RowOp operator+ (RowOp right)
 Combine this operation with another row operation. More...
 
RowOp operator+ (const OpBase< other_derived_t > &right)
 Combine tho operation with another operation. Both operations are evaluated. More...
 
RowOp operator- ()
 Multiply this operation by -1. More...
 

Public Attributes

vector_t vec
 Vector representing the direction of differentiation. More...
 

Friends

class ImplicitOperators
 

Protected Attributes

ImplicitOperatorsop
 Reference to underlying operators. More...
 
int node
 Index of the point for which to apply the operation. More...
 
int row
 Matrix row to which the operation should be applied (without offset). More...
 

Constructor & Destructor Documentation

◆ GradOp()

template<class shape_storage_type , class matrix_type , class rhs_type >
mm::ImplicitOperators< shape_storage_type, matrix_type, rhs_type >::GradOp::GradOp ( ImplicitOperators op,
int  node,
int  row,
vector_t  vec 
)
inline

Construct directional derivative operator with given direction.

Definition at line 207 of file ImplicitOperators_fwd.hpp.

Member Function Documentation

◆ eval() [1/2]

RowOp mm::ImplicitOperators< shape_storage_type, matrix_type, rhs_type >::OpBase< GradOp >::eval
inlineinherited

Eval with alpha = 1.0.

Definition at line 137 of file ImplicitOperators_fwd.hpp.

◆ eval() [2/2]

template<class shape_storage_type , class matrix_type , class rhs_type >
RowOp mm::ImplicitOperators< shape_storage_type, matrix_type, rhs_type >::GradOp::eval ( scalar_t  alpha) const
inline

Evaluate this operator.

Definition at line 211 of file ImplicitOperators_fwd.hpp.

◆ operator*()

RowOp mm::ImplicitOperators< shape_storage_type, matrix_type, rhs_type >::OpBase< GradOp >::operator* ( scalar_t  alpha)
inlineinherited

Multiply this operation by a scalar.

Definition at line 141 of file ImplicitOperators_fwd.hpp.

◆ operator+() [1/2]

RowOp mm::ImplicitOperators< shape_storage_type, matrix_type, rhs_type >::OpBase< GradOp >::operator+ ( const OpBase< other_derived_t > &  right)
inlineinherited

Combine tho operation with another operation. Both operations are evaluated.

Definition at line 148 of file ImplicitOperators_fwd.hpp.

◆ operator+() [2/2]

RowOp mm::ImplicitOperators< shape_storage_type, matrix_type, rhs_type >::OpBase< GradOp >::operator+ ( RowOp  right)
inlineinherited

Combine this operation with another row operation.

Definition at line 143 of file ImplicitOperators_fwd.hpp.

◆ operator-()

RowOp mm::ImplicitOperators< shape_storage_type, matrix_type, rhs_type >::OpBase< GradOp >::operator-
inlineinherited

Multiply this operation by -1.

Definition at line 145 of file ImplicitOperators_fwd.hpp.

Member Data Documentation

◆ node

int mm::ImplicitOperators< shape_storage_type, matrix_type, rhs_type >::OpBase< GradOp >::node
protectedinherited

Index of the point for which to apply the operation.

Definition at line 122 of file ImplicitOperators_fwd.hpp.

◆ op

ImplicitOperators& mm::ImplicitOperators< shape_storage_type, matrix_type, rhs_type >::OpBase< GradOp >::op
protectedinherited

Reference to underlying operators.

Definition at line 121 of file ImplicitOperators_fwd.hpp.

◆ row

int mm::ImplicitOperators< shape_storage_type, matrix_type, rhs_type >::OpBase< GradOp >::row
protectedinherited

Matrix row to which the operation should be applied (without offset).

Definition at line 123 of file ImplicitOperators_fwd.hpp.

◆ vec

template<class shape_storage_type , class matrix_type , class rhs_type >
vector_t mm::ImplicitOperators< shape_storage_type, matrix_type, rhs_type >::GradOp::vec

Vector representing the direction of differentiation.

Definition at line 204 of file ImplicitOperators_fwd.hpp.


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