MBDyn-1.7.3
|
#include <gradient.h>
Public Types | |
typedef Gradient | GradientType |
typedef grad::scalar_func_type | scalar_func_type |
typedef MapVectorType::scalar_type | scalar_deriv_type |
typedef MapVectorType::vector_type | vector_deriv_type |
Static Public Attributes | |
static const index_type | iDimension = N_SIZE |
static const index_type | iMaxDerivatives = MapVectorType::iMaxSize |
Private Types | |
typedef MapVector< N_SIZE > | MapVectorType |
Private Member Functions | |
template<typename Expression > | |
void | ApplyNoAlias (const GradientExpression< Expression > &f) |
template<typename Expression > | |
void | ApplyWithAlias (const GradientExpression< Expression > &f) |
template<typename Expression > | |
void | ApplyDerivative (const GradientExpression< Expression > &f) |
template<typename BinFunc , typename Expression > | |
void | ApplyBinaryFunction (const GradientExpression< Expression > &f) |
template<typename BinFunc , typename Expression > | |
void | ApplyBinaryFunctionNoAlias (const GradientExpression< Expression > &f, const BinFunc &) |
template<typename BinFunc , typename Expression > | |
void | ApplyBinaryFunctionWithAlias (const GradientExpression< Expression > &f, const BinFunc &) |
Private Attributes | |
scalar_func_type | a |
MapVectorType | ad |
Friends | |
struct | ApplyAliasHelper< true > |
struct | ApplyAliasHelper< false > |
Definition at line 107 of file gradient.h.
typedef Gradient grad::Gradient< N_SIZE >::GradientType |
Definition at line 2240 of file gradient.h.
|
private |
Definition at line 2237 of file gradient.h.
typedef MapVectorType::scalar_type grad::Gradient< N_SIZE >::scalar_deriv_type |
Definition at line 2244 of file gradient.h.
typedef grad::scalar_func_type grad::Gradient< N_SIZE >::scalar_func_type |
Definition at line 2243 of file gradient.h.
typedef MapVectorType::vector_type grad::Gradient< N_SIZE >::vector_deriv_type |
Definition at line 2245 of file gradient.h.
|
inlineexplicit |
Definition at line 2247 of file gradient.h.
Referenced by grad::Gradient< N_SIZE >::ApplyBinaryFunctionWithAlias(), grad::Gradient< N_SIZE >::ApplyWithAlias(), and grad::Gradient< N_SIZE >::bIsEqual().
|
inline |
Definition at line 2251 of file gradient.h.
|
inline |
Definition at line 2256 of file gradient.h.
|
inline |
Definition at line 2262 of file gradient.h.
|
inline |
Definition at line 2268 of file gradient.h.
References grad::Gradient< N_SIZE >::a, and grad::Gradient< N_SIZE >::Copy().
|
inline |
Definition at line 2276 of file gradient.h.
References grad::Gradient< N_SIZE >::a, grad::Gradient< N_SIZE >::ApplyDerivative(), and GRADIENT_ASSERT.
|
inlineprivate |
Definition at line 2672 of file gradient.h.
|
inlineprivate |
Definition at line 2677 of file gradient.h.
References grad::Gradient< N_SIZE >::a, grad::Gradient< N_SIZE >::ad, GRADIENT_ASSERT, GRADIENT_TRACE, grad::Gradient< N_SIZE >::iGetEndIndexLocal(), grad::LocalDofMap::iGetGlobalDof(), grad::LocalDofMap::iGetLocalIndex(), grad::Gradient< N_SIZE >::iGetStartIndexLocal(), grad::LocalDofMap::INVALID_INDEX, grad::MapVectorBase::LOCAL, and grad::Gradient< N_SIZE >::pGetDofMap().
|
inlineprivate |
Definition at line 2815 of file gradient.h.
References grad::Gradient< N_SIZE >::Gradient().
|
inlineprivate |
Definition at line 2661 of file gradient.h.
References grad::Gradient< N_SIZE >::ad, GRADIENT_ASSERT, and grad::Gradient< N_SIZE >::iGetMaxDerivatives().
Referenced by grad::Gradient< N_SIZE >::ApplyNoAlias(), and grad::Gradient< N_SIZE >::Gradient().
|
inlineprivate |
Definition at line 2639 of file gradient.h.
References grad::Gradient< N_SIZE >::a, grad::Gradient< N_SIZE >::ad, grad::Gradient< N_SIZE >::ApplyDerivative(), GRADIENT_ASSERT, and grad::Gradient< N_SIZE >::iGetMaxDerivatives().
|
inlineprivate |
Definition at line 2653 of file gradient.h.
References grad::Gradient< N_SIZE >::Gradient().
|
inline |
Definition at line 2630 of file gradient.h.
|
inline |
Definition at line 2604 of file gradient.h.
References grad::Gradient< N_SIZE >::dGetDerivativeLocal(), grad::Gradient< N_SIZE >::dGetValue(), grad::Gradient< N_SIZE >::iGetEndIndexLocal(), and grad::Gradient< N_SIZE >::iGetStartIndexLocal().
Referenced by grad::Gradient< N_SIZE >::bIsEqual(), testGradientLin(), testMatVecGradient(), and testMatVecProductGradient().
|
inline |
Definition at line 2622 of file gradient.h.
References grad::Gradient< N_SIZE >::bIsEqual(), and grad::Gradient< N_SIZE >::Gradient().
|
inline |
Definition at line 2289 of file gradient.h.
References grad::Gradient< N_SIZE >::a, grad::Gradient< N_SIZE >::ad, grad::LocalDofMap::AllocateLocalDof(), GRADIENT_ASSERT, GRADIENT_TRACE, grad::LocalDofMap::iGetGlobalDof(), grad::LocalDofMap::iGetLocalIndex(), grad::LocalDofMap::INVALID_INDEX, and grad::MapVectorBase::LOCAL.
Referenced by grad::Gradient< N_SIZE >::Gradient().
|
inline |
Definition at line 2538 of file gradient.h.
References grad::Gradient< N_SIZE >::ad.
Referenced by grad::Gradient< N_SIZE >::DerivativeResizeReset(), grad::GradientVectorHandler< Gradient< N_SIZE > >::dGetCoef(), grad::GradientVectorHandler< Gradient< N_SIZE > >::GetVec(), testGradient(), testGradient2(), testGradientLin(), and testSubVecAss().
|
inline |
|
inline |
Definition at line 2546 of file gradient.h.
References grad::Gradient< N_SIZE >::DerivativeResizeReset().
|
inline |
Definition at line 2550 of file gradient.h.
References grad::Gradient< N_SIZE >::DerivativeResizeReset().
|
inline |
Definition at line 2532 of file gradient.h.
References grad::Gradient< N_SIZE >::ad, GRADIENT_ASSERT, and grad::Gradient< N_SIZE >::iGetMaxDerivatives().
Referenced by func2ad(), testDifferentDofMaps(), testGradient(), testMatVecProductGradient_testData::testGradient(), testGradient2(), testGradientLin(), and testMatVecCopy().
|
inline |
Definition at line 2516 of file gradient.h.
References grad::Gradient< N_SIZE >::ad, GRADIENT_ASSERT, and grad::Gradient< N_SIZE >::iGetMaxDerivatives().
Referenced by grad::GradientAssVec< Gradient< N_SIZE > >::AddItem(), bCompare(), and grad::Gradient< N_SIZE >::bIsEqual().
|
inline |
Definition at line 2522 of file gradient.h.
References grad::Gradient< N_SIZE >::ad, GRADIENT_ASSERT, and grad::Gradient< N_SIZE >::iGetMaxDerivativesVector().
|
inline |
Definition at line 2502 of file gradient.h.
References grad::Gradient< N_SIZE >::a.
Referenced by bCompare(), grad::Gradient< N_SIZE >::bIsEqual(), func2ad(), testDifferentDofMaps(), testGradient(), testMatVecProductGradient_testData::testGradient(), testGradient2(), testGradientLin(), and testMatVecCopy().
|
inline |
Definition at line 2528 of file gradient.h.
References grad::Gradient< N_SIZE >::ad.
|
inline |
Definition at line 2580 of file gradient.h.
References grad::Gradient< N_SIZE >::ad.
Referenced by grad::GradientAssVec< Gradient< N_SIZE > >::AddItem(), grad::Gradient< N_SIZE >::ApplyBinaryFunctionNoAlias(), bCompare(), grad::Gradient< N_SIZE >::bIsEqual(), grad::Gradient< N_SIZE >::iGetLocalSize(), grad::Gradient< N_SIZE >::operator*=(), grad::Gradient< N_SIZE >::operator/=(), grad::Gradient< N_SIZE >::SetDerivativeGlobal(), and grad::Gradient< N_SIZE >::SetDerivativeLocal().
|
inline |
Definition at line 2588 of file gradient.h.
References grad::Gradient< N_SIZE >::ad.
Referenced by grad::Gradient< N_SIZE >::SetDerivativeLocalVector().
|
inline |
Definition at line 2572 of file gradient.h.
References grad::Gradient< N_SIZE >::ad.
Referenced by grad::GradientAssVec< Gradient< N_SIZE > >::AddItem().
|
inline |
Definition at line 2592 of file gradient.h.
References grad::Gradient< N_SIZE >::iGetEndIndexLocal(), and grad::Gradient< N_SIZE >::iGetStartIndexLocal().
|
inline |
Definition at line 2596 of file gradient.h.
References grad::Gradient< N_SIZE >::ad.
Referenced by grad::Gradient< N_SIZE >::ApplyDerivative(), grad::Gradient< N_SIZE >::ApplyNoAlias(), grad::Gradient< N_SIZE >::dGetDerivativeGlobal(), grad::Gradient< N_SIZE >::dGetDerivativeLocal(), and testScalarTypeTraits().
|
inline |
Definition at line 2600 of file gradient.h.
References grad::Gradient< N_SIZE >::ad.
Referenced by grad::Gradient< N_SIZE >::dGetDerivativeLocalVector().
|
inline |
Definition at line 2576 of file gradient.h.
References grad::Gradient< N_SIZE >::ad.
Referenced by grad::GradientAssVec< Gradient< N_SIZE > >::AddItem(), grad::Gradient< N_SIZE >::ApplyBinaryFunctionNoAlias(), bCompare(), grad::Gradient< N_SIZE >::bIsEqual(), grad::Gradient< N_SIZE >::iGetLocalSize(), grad::Gradient< N_SIZE >::operator*=(), grad::Gradient< N_SIZE >::operator/=(), grad::Gradient< N_SIZE >::SetDerivativeGlobal(), and grad::Gradient< N_SIZE >::SetDerivativeLocal().
|
inline |
Definition at line 2584 of file gradient.h.
References grad::Gradient< N_SIZE >::ad.
Referenced by grad::Gradient< N_SIZE >::SetDerivativeLocalVector().
|
inline |
Definition at line 2416 of file gradient.h.
|
inline |
Definition at line 2461 of file gradient.h.
|
inline |
Definition at line 2482 of file gradient.h.
References grad::Gradient< N_SIZE >::a, grad::Gradient< N_SIZE >::ad, grad::Gradient< N_SIZE >::iGetEndIndexLocal(), and grad::Gradient< N_SIZE >::iGetStartIndexLocal().
|
inline |
|
inline |
|
inline |
Definition at line 2406 of file gradient.h.
|
inline |
Definition at line 2449 of file gradient.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 2411 of file gradient.h.
|
inline |
Definition at line 2455 of file gradient.h.
|
inline |
|
inline |
Definition at line 2421 of file gradient.h.
|
inline |
Definition at line 2467 of file gradient.h.
|
inline |
Definition at line 2492 of file gradient.h.
References grad::Gradient< N_SIZE >::a, grad::Gradient< N_SIZE >::ad, grad::Gradient< N_SIZE >::iGetEndIndexLocal(), and grad::Gradient< N_SIZE >::iGetStartIndexLocal().
|
inline |
Definition at line 2376 of file gradient.h.
References grad::Gradient< N_SIZE >::SetValue().
|
inline |
Definition at line 2383 of file gradient.h.
|
inline |
Definition at line 2390 of file gradient.h.
References grad::Gradient< N_SIZE >::a, and grad::Gradient< N_SIZE >::ad.
|
inline |
Definition at line 2397 of file gradient.h.
References grad::Gradient< N_SIZE >::a, and grad::Gradient< N_SIZE >::ad.
|
inline |
Definition at line 2626 of file gradient.h.
References grad::Gradient< N_SIZE >::ad.
Referenced by grad::Gradient< N_SIZE >::ApplyBinaryFunctionNoAlias().
|
inline |
Definition at line 2372 of file gradient.h.
References grad::Gradient< N_SIZE >::ad.
|
inline |
Definition at line 2367 of file gradient.h.
References grad::Gradient< N_SIZE >::a, and grad::Gradient< N_SIZE >::ad.
|
inline |
Definition at line 2566 of file gradient.h.
References grad::Gradient< N_SIZE >::ad, GRADIENT_ASSERT, grad::Gradient< N_SIZE >::iGetEndIndexLocal(), and grad::Gradient< N_SIZE >::iGetStartIndexLocal().
Referenced by grad::GradientVectorHandler< Gradient< N_SIZE > >::GetVec(), testGradient(), and testSubVecAss().
|
inline |
Definition at line 2554 of file gradient.h.
References grad::Gradient< N_SIZE >::ad, GRADIENT_ASSERT, grad::Gradient< N_SIZE >::iGetEndIndexLocal(), and grad::Gradient< N_SIZE >::iGetStartIndexLocal().
|
inline |
Definition at line 2560 of file gradient.h.
References grad::Gradient< N_SIZE >::ad, GRADIENT_ASSERT, grad::Gradient< N_SIZE >::iGetEndIndexLocalVector(), and grad::Gradient< N_SIZE >::iGetStartIndexLocalVector().
|
inline |
Definition at line 2506 of file gradient.h.
References grad::Gradient< N_SIZE >::a, and grad::Gradient< N_SIZE >::ad.
Referenced by grad::Gradient< N_SIZE >::operator=(), testMatVecGradient(), and testSubVecAss().
|
inline |
Definition at line 2511 of file gradient.h.
References grad::Gradient< N_SIZE >::a.
Referenced by grad::GradientVectorHandler< Gradient< N_SIZE > >::dGetCoef(), grad::GradientVectorHandler< Gradient< N_SIZE > >::GetVec(), testGradient(), testGradient2(), and testGradientLin().
|
friend |
Definition at line 2636 of file gradient.h.
|
friend |
Definition at line 2635 of file gradient.h.
|
private |
Definition at line 2822 of file gradient.h.
Referenced by grad::Gradient< N_SIZE >::ApplyBinaryFunctionNoAlias(), grad::Gradient< N_SIZE >::ApplyNoAlias(), grad::Gradient< N_SIZE >::Copy(), grad::Gradient< N_SIZE >::dGetValue(), grad::Gradient< N_SIZE >::Gradient(), grad::Gradient< N_SIZE >::operator*=(), grad::Gradient< N_SIZE >::operator++(), grad::Gradient< N_SIZE >::operator+=(), grad::Gradient< N_SIZE >::operator--(), grad::Gradient< N_SIZE >::operator-=(), grad::Gradient< N_SIZE >::operator/=(), grad::Gradient< N_SIZE >::operator=(), grad::Gradient< N_SIZE >::Reset(), grad::Gradient< N_SIZE >::SetValue(), and grad::Gradient< N_SIZE >::SetValuePreserve().
|
private |
Definition at line 2823 of file gradient.h.
Referenced by grad::Gradient< N_SIZE >::ApplyBinaryFunctionNoAlias(), grad::Gradient< N_SIZE >::ApplyDerivative(), grad::Gradient< N_SIZE >::ApplyNoAlias(), grad::Gradient< N_SIZE >::Copy(), grad::Gradient< N_SIZE >::DerivativeResizeReset(), grad::Gradient< N_SIZE >::dGetDerivativeGlobal(), grad::Gradient< N_SIZE >::dGetDerivativeLocal(), grad::Gradient< N_SIZE >::dGetDerivativeLocalVector(), grad::Gradient< N_SIZE >::GetDerivativeLocal(), grad::Gradient< N_SIZE >::iGetEndIndexLocal(), grad::Gradient< N_SIZE >::iGetEndIndexLocalVector(), grad::Gradient< N_SIZE >::iGetGlobalDof(), grad::Gradient< N_SIZE >::iGetMaxDerivatives(), grad::Gradient< N_SIZE >::iGetMaxDerivativesVector(), grad::Gradient< N_SIZE >::iGetStartIndexLocal(), grad::Gradient< N_SIZE >::iGetStartIndexLocalVector(), grad::Gradient< N_SIZE >::operator*=(), grad::Gradient< N_SIZE >::operator/=(), grad::Gradient< N_SIZE >::operator=(), grad::Gradient< N_SIZE >::pGetDofMap(), grad::Gradient< N_SIZE >::Reserve(), grad::Gradient< N_SIZE >::Reset(), grad::Gradient< N_SIZE >::SetDerivativeGlobal(), grad::Gradient< N_SIZE >::SetDerivativeLocal(), grad::Gradient< N_SIZE >::SetDerivativeLocalVector(), and grad::Gradient< N_SIZE >::SetValue().
|
static |
Definition at line 2241 of file gradient.h.
|
static |
Definition at line 2242 of file gradient.h.