Medusa  1.1
Coordinate Free Mehless Method implementation
mm::ImplicitVectorOperators< 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::ImplicitVectorOperators< 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 217 of file ImplicitVectorOperators_fwd.hpp.

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

Public Member Functions

RowVecOp eval (scalar_t alpha) const
 Evaluate this operator. More...
 
RowVecOp eval () const
 Eval with alpha = 1.0. More...
 
RowVecOp operator* (scalar_t alpha)
 Multiply this operation by a scalar. More...
 
RowVecOp operator+ (RowVecOp right)
 Combine this operation with another row operation. More...
 
RowVecOp operator+ (const VecOpBase< other_derived_t > &right)
 Combine tho operation with another operation. Both operations are evaluated. More...
 
RowVecOp operator- ()
 Multiply this operation by -1. More...
 

Friends

class ImplicitVectorOperators
 

Protected Attributes

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

Private Member Functions

 GradOp (ImplicitVectorOperators &op, int node, int row, const domain_vector_t &vec)
 Construct directional derivative operator with given direction. More...
 

Private Attributes

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

Constructor & Destructor Documentation

◆ GradOp()

template<class shape_storage_type , class matrix_type , class rhs_type >
mm::ImplicitVectorOperators< shape_storage_type, matrix_type, rhs_type >::GradOp::GradOp ( ImplicitVectorOperators op,
int  node,
int  row,
const domain_vector_t vec 
)
inlineprivate

Construct directional derivative operator with given direction.

Definition at line 222 of file ImplicitVectorOperators_fwd.hpp.

Member Function Documentation

◆ eval() [1/2]

RowVecOp mm::ImplicitVectorOperators< shape_storage_type, matrix_type, rhs_type >::VecOpBase< GradOp >::eval
inlineinherited

Eval with alpha = 1.0.

Definition at line 149 of file ImplicitVectorOperators_fwd.hpp.

◆ eval() [2/2]

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

Evaluate this operator.

Definition at line 226 of file ImplicitVectorOperators_fwd.hpp.

◆ operator*()

RowVecOp mm::ImplicitVectorOperators< shape_storage_type, matrix_type, rhs_type >::VecOpBase< GradOp >::operator* ( scalar_t  alpha)
inlineinherited

Multiply this operation by a scalar.

Definition at line 153 of file ImplicitVectorOperators_fwd.hpp.

◆ operator+() [1/2]

RowVecOp mm::ImplicitVectorOperators< shape_storage_type, matrix_type, rhs_type >::VecOpBase< GradOp >::operator+ ( const VecOpBase< other_derived_t > &  right)
inlineinherited

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

Definition at line 160 of file ImplicitVectorOperators_fwd.hpp.

◆ operator+() [2/2]

RowVecOp mm::ImplicitVectorOperators< shape_storage_type, matrix_type, rhs_type >::VecOpBase< GradOp >::operator+ ( RowVecOp  right)
inlineinherited

Combine this operation with another row operation.

Definition at line 155 of file ImplicitVectorOperators_fwd.hpp.

◆ operator-()

RowVecOp mm::ImplicitVectorOperators< shape_storage_type, matrix_type, rhs_type >::VecOpBase< GradOp >::operator-
inlineinherited

Multiply this operation by -1.

Definition at line 157 of file ImplicitVectorOperators_fwd.hpp.

Member Data Documentation

◆ node

int mm::ImplicitVectorOperators< shape_storage_type, matrix_type, rhs_type >::VecOpBase< GradOp >::node
protectedinherited

Index of the point for which to apply the operation.

Definition at line 134 of file ImplicitVectorOperators_fwd.hpp.

◆ op

ImplicitVectorOperators& mm::ImplicitVectorOperators< shape_storage_type, matrix_type, rhs_type >::VecOpBase< GradOp >::op
protectedinherited

Reference to underlying operators.

Definition at line 133 of file ImplicitVectorOperators_fwd.hpp.

◆ row

int mm::ImplicitVectorOperators< shape_storage_type, matrix_type, rhs_type >::VecOpBase< GradOp >::row
protectedinherited

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

Definition at line 135 of file ImplicitVectorOperators_fwd.hpp.

◆ vec

template<class shape_storage_type , class matrix_type , class rhs_type >
domain_vector_t mm::ImplicitVectorOperators< shape_storage_type, matrix_type, rhs_type >::GradOp::vec
private

Vector representing the direction of differentiation.

Definition at line 220 of file ImplicitVectorOperators_fwd.hpp.


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