MBDyn-1.7.3
|
#include <gradient.h>
Public Types | |
typedef RangeVectorBase< T, N_SIZE >::scalar_type | scalar_type |
typedef RangeVectorBase< T, N_SIZE >::vector_type | vector_type |
Public Types inherited from grad::RangeVectorBase< T, N_SIZE > | |
typedef T | vector_type |
typedef T | scalar_type |
Public Member Functions | |
RangeVector () | |
RangeVector (const RangeVector &v) | |
template<typename T2 , index_type N_SIZE2> | |
RangeVector (const RangeVector< T2, N_SIZE2 > &v) | |
RangeVector (index_type iStartNew, index_type iEndNew, const scalar_type &dVal) | |
RangeVector & | operator= (const RangeVector &v) |
template<typename T2 , index_type N_SIZE2> | |
RangeVector & | operator= (const RangeVector< T2, N_SIZE2 > &v) |
void | ResizeReset (index_type iStartNew, index_type iEndNew, const T &dVal) |
void | ResizePreserve (index_type iStartNew, index_type iEndNew) |
void | Reset () |
void | Reserve (index_type iMaxSizeNew) |
index_type | iGetStartIndex () const |
index_type | iGetEndIndex () const |
index_type | iGetSize () const |
index_type | iGetStartIndexVector () const |
index_type | iGetEndIndexVector () const |
index_type | iGetSizeVector () const |
scalar_type | GetValue (index_type i) const |
void | SetValue (index_type i, const scalar_type &d) |
vector_type | GetVectorValue (index_type i) const |
void | SetVectorValue (index_type i, const vector_type &d) |
Static Public Member Functions | |
static index_type | iGetMaxSize () |
static index_type | iGetMaxSizeVector () |
static bool | bUseDynamicMem () |
Static Public Member Functions inherited from grad::RangeVectorBase< T, N_SIZE > | |
static index_type | iRoundStartIndexVector (index_type iStart) |
static index_type | iRoundEndIndexVector (index_type iEnd) |
Static Public Attributes | |
static const index_type | iVectorSize = RangeVectorBase<T, N_SIZE>::iVectorSize |
static const index_type | iMaxSizeVector = N_SIZE / iVectorSize + (N_SIZE % iVectorSize ? 1 : 0) |
static const index_type | iMaxSize = N_SIZE |
Static Public Attributes inherited from grad::RangeVectorBase< T, N_SIZE > | |
static const int | iVectorSize = 1 |
Private Member Functions | |
void | Initialize (index_type iStartNew, index_type iEndNew, const scalar_type &dVal) |
template<typename T2 , index_type N_SIZE2> | |
void | Copy (const RangeVector< T2, N_SIZE2 > &v) |
template<typename T2 , index_type N_SIZE2> | |
void | CopyData (const RangeVector< T2, N_SIZE2 > &v) |
void | CopyData (const RangeVector &v) |
Private Attributes | |
union { | |
scalar_type rgArray [iMaxSize] | |
vector_type rgArrayVec [iMaxSizeVector] | |
}; | |
index_type | iStart |
index_type | iEnd |
index_type | iStartVec |
index_type | iEndVec |
Definition at line 378 of file gradient.h.
typedef RangeVectorBase<T, N_SIZE>::scalar_type grad::RangeVector< T, N_SIZE >::scalar_type |
Definition at line 381 of file gradient.h.
typedef RangeVectorBase<T, N_SIZE>::vector_type grad::RangeVector< T, N_SIZE >::vector_type |
Definition at line 382 of file gradient.h.
|
inline |
Definition at line 387 of file gradient.h.
|
inline |
Definition at line 401 of file gradient.h.
|
inline |
Definition at line 410 of file gradient.h.
|
inlineexplicit |
Definition at line 418 of file gradient.h.
|
inlinestatic |
Definition at line 538 of file gradient.h.
Referenced by grad::MapVector< N_SIZE >::bUseDynamicMem().
|
inlineprivate |
Definition at line 559 of file gradient.h.
Referenced by grad::RangeVector< scalar_deriv_type, N_SIZE >::operator=(), grad::RangeVector< T, 0 >::operator=(), grad::RangeVector< scalar_deriv_type, N_SIZE >::RangeVector(), and grad::RangeVector< T, 0 >::RangeVector().
|
inlineprivate |
Definition at line 575 of file gradient.h.
Referenced by grad::RangeVector< scalar_deriv_type, N_SIZE >::Copy().
|
inlineprivate |
Definition at line 581 of file gradient.h.
|
inline |
Definition at line 502 of file gradient.h.
Referenced by grad::RangeVector< T, 0 >::Copy(), grad::RangeVector< scalar_deriv_type, N_SIZE >::CopyData(), grad::MapVector< N_SIZE >::dGetGlobalVector(), grad::MapVector< N_SIZE >::dGetLocalVector(), and testRangeVector().
|
inline |
Definition at line 520 of file gradient.h.
Referenced by grad::MapVector< N_SIZE >::dGetLocalVectorVector(), and testRangeVector().
|
inline |
Definition at line 494 of file gradient.h.
Referenced by grad::RangeVector< scalar_deriv_type, N_SIZE >::Copy(), grad::RangeVector< T, 0 >::Copy(), grad::RangeVector< scalar_deriv_type, N_SIZE >::GetValue(), grad::RangeVector< T, 0 >::GetValue(), grad::MapVector< N_SIZE >::iGetEndIndexLocal(), grad::RangeVector< T, 0 >::operator=(), grad::RangeVector< T, 0 >::RangeVector(), grad::RangeVector< scalar_deriv_type, N_SIZE >::SetValue(), grad::RangeVector< T, 0 >::SetValue(), and testRangeVector().
|
inline |
Definition at line 498 of file gradient.h.
Referenced by grad::RangeVector< T, 0 >::GetVectorValue(), grad::MapVector< N_SIZE >::iGetEndIndexLocalVector(), grad::RangeVector< T, 0 >::ResizePreserve(), grad::RangeVector< scalar_deriv_type, N_SIZE >::SetVectorValue(), grad::RangeVector< T, 0 >::SetVectorValue(), and testRangeVector().
|
inlinestatic |
Definition at line 496 of file gradient.h.
Referenced by grad::RangeVector< T, 0 >::GetValue(), grad::MapVector< N_SIZE >::iGetMaxSize(), grad::RangeVector< T, 0 >::SetValue(), and testScalarTypeTraits().
|
inlinestatic |
Definition at line 500 of file gradient.h.
Referenced by grad::MapVector< N_SIZE >::iGetMaxSizeVector().
|
inline |
Definition at line 495 of file gradient.h.
Referenced by grad::RangeVector< T, 0 >::end(), and grad::MapVector< N_SIZE >::iGetSize().
|
inline |
Definition at line 499 of file gradient.h.
Referenced by grad::RangeVector< T, 0 >::endVec(), grad::MapVector< N_SIZE >::iGetSizeVector(), and grad::RangeVector< T, 0 >::Reserve().
|
inline |
Definition at line 493 of file gradient.h.
Referenced by grad::RangeVector< scalar_deriv_type, N_SIZE >::Copy(), grad::RangeVector< T, 0 >::Copy(), grad::RangeVector< scalar_deriv_type, N_SIZE >::GetValue(), grad::RangeVector< T, 0 >::GetValue(), grad::MapVector< N_SIZE >::iGetStartIndexLocal(), grad::RangeVector< T, 0 >::operator=(), grad::RangeVector< T, 0 >::RangeVector(), grad::RangeVector< scalar_deriv_type, N_SIZE >::SetValue(), grad::RangeVector< T, 0 >::SetValue(), and testRangeVector().
|
inline |
Definition at line 497 of file gradient.h.
Referenced by grad::RangeVector< T, 0 >::GetValue(), grad::RangeVector< T, 0 >::GetVectorValue(), grad::MapVector< N_SIZE >::iGetStartIndexLocalVector(), grad::RangeVector< T, 0 >::Initialize(), grad::RangeVector< T, 0 >::ResizePreserve(), grad::RangeVector< T, 0 >::SetValue(), grad::RangeVector< scalar_deriv_type, N_SIZE >::SetVectorValue(), grad::RangeVector< T, 0 >::SetVectorValue(), and testRangeVector().
|
inlineprivate |
Definition at line 544 of file gradient.h.
Referenced by grad::RangeVector< scalar_deriv_type, N_SIZE >::RangeVector(), grad::RangeVector< T, 0 >::RangeVector(), grad::RangeVector< scalar_deriv_type, N_SIZE >::ResizeReset(), and grad::RangeVector< T, 0 >::ResizeReset().
|
inline |
Definition at line 426 of file gradient.h.
|
inline |
Definition at line 439 of file gradient.h.
|
inline |
Definition at line 487 of file gradient.h.
Referenced by grad::RangeVector< T, 0 >::Reserve(), grad::MapVector< N_SIZE >::Reserve(), and testRangeVector().
|
inline |
Definition at line 477 of file gradient.h.
Referenced by grad::RangeVector< T, 0 >::Initialize(), grad::MapVector< N_SIZE >::Reset(), and testRangeVector().
|
inline |
Definition at line 461 of file gradient.h.
Referenced by grad::MapVector< N_SIZE >::ResizePreserve(), and testRangeVector().
|
inline |
Definition at line 451 of file gradient.h.
Referenced by grad::MapVector< N_SIZE >::ResizeReset(), and testRangeVector().
|
inline |
Definition at line 511 of file gradient.h.
Referenced by grad::RangeVector< T, 0 >::Copy(), grad::RangeVector< scalar_deriv_type, N_SIZE >::CopyData(), grad::MapVector< N_SIZE >::SetGlobalVector(), grad::MapVector< N_SIZE >::SetLocalVector(), and testRangeVector().
|
inline |
Definition at line 529 of file gradient.h.
Referenced by grad::MapVector< N_SIZE >::SetLocalVectorVector(), and testRangeVector().
union { ... } |
|
private |
Definition at line 641 of file gradient.h.
Referenced by grad::RangeVector< scalar_deriv_type, N_SIZE >::Copy(), grad::RangeVector< scalar_deriv_type, N_SIZE >::CopyData(), grad::RangeVector< scalar_deriv_type, N_SIZE >::iGetEndIndex(), grad::RangeVector< scalar_deriv_type, N_SIZE >::iGetSize(), grad::RangeVector< scalar_deriv_type, N_SIZE >::Initialize(), grad::RangeVector< scalar_deriv_type, N_SIZE >::RangeVector(), and grad::RangeVector< scalar_deriv_type, N_SIZE >::ResizePreserve().
|
private |
Definition at line 641 of file gradient.h.
Referenced by grad::RangeVector< scalar_deriv_type, N_SIZE >::Copy(), grad::RangeVector< scalar_deriv_type, N_SIZE >::CopyData(), grad::RangeVector< scalar_deriv_type, N_SIZE >::iGetEndIndexVector(), grad::RangeVector< scalar_deriv_type, N_SIZE >::iGetSizeVector(), grad::RangeVector< scalar_deriv_type, N_SIZE >::Initialize(), grad::RangeVector< scalar_deriv_type, N_SIZE >::RangeVector(), grad::RangeVector< T, 0 >::ReserveMem(), grad::RangeVector< scalar_deriv_type, N_SIZE >::Reset(), grad::RangeVector< scalar_deriv_type, N_SIZE >::ResizePreserve(), and grad::RangeVector< T, 0 >::ResizePreserve().
|
static |
Definition at line 385 of file gradient.h.
Referenced by grad::RangeVector< scalar_deriv_type, N_SIZE >::Copy(), grad::RangeVector< scalar_deriv_type, N_SIZE >::GetValue(), grad::RangeVector< scalar_deriv_type, N_SIZE >::iGetMaxSize(), grad::RangeVector< T, 0 >::iGetMaxSize(), grad::RangeVector< scalar_deriv_type, N_SIZE >::RangeVector(), grad::RangeVector< scalar_deriv_type, N_SIZE >::Reserve(), grad::RangeVector< scalar_deriv_type, N_SIZE >::ResizePreserve(), and grad::RangeVector< scalar_deriv_type, N_SIZE >::SetValue().
|
static |
Definition at line 384 of file gradient.h.
Referenced by grad::RangeVector< scalar_deriv_type, N_SIZE >::GetVectorValue(), grad::RangeVector< T, 0 >::GetVectorValue(), grad::RangeVector< scalar_deriv_type, N_SIZE >::iGetMaxSizeVector(), grad::RangeVector< T, 0 >::iGetMaxSizeVector(), grad::RangeVector< scalar_deriv_type, N_SIZE >::Initialize(), grad::RangeVector< scalar_deriv_type, N_SIZE >::SetVectorValue(), and grad::RangeVector< T, 0 >::SetVectorValue().
|
private |
Definition at line 641 of file gradient.h.
Referenced by grad::RangeVector< scalar_deriv_type, N_SIZE >::Copy(), grad::RangeVector< scalar_deriv_type, N_SIZE >::CopyData(), grad::RangeVector< scalar_deriv_type, N_SIZE >::iGetSize(), grad::RangeVector< scalar_deriv_type, N_SIZE >::iGetStartIndex(), grad::RangeVector< scalar_deriv_type, N_SIZE >::Initialize(), grad::RangeVector< scalar_deriv_type, N_SIZE >::RangeVector(), and grad::RangeVector< scalar_deriv_type, N_SIZE >::ResizePreserve().
|
private |
Definition at line 641 of file gradient.h.
Referenced by grad::RangeVector< scalar_deriv_type, N_SIZE >::Copy(), grad::RangeVector< scalar_deriv_type, N_SIZE >::CopyData(), grad::RangeVector< scalar_deriv_type, N_SIZE >::iGetSizeVector(), grad::RangeVector< scalar_deriv_type, N_SIZE >::iGetStartIndexVector(), grad::RangeVector< scalar_deriv_type, N_SIZE >::Initialize(), grad::RangeVector< scalar_deriv_type, N_SIZE >::RangeVector(), grad::RangeVector< T, 0 >::ReserveMem(), grad::RangeVector< scalar_deriv_type, N_SIZE >::Reset(), and grad::RangeVector< scalar_deriv_type, N_SIZE >::ResizePreserve().
|
static |
Definition at line 380 of file gradient.h.
Referenced by grad::RangeVector< T, 0 >::GetValue(), grad::RangeVector< T, 0 >::iGetCapacity(), and grad::RangeVector< T, 0 >::SetValue().
scalar_type grad::RangeVector< T, N_SIZE >::rgArray[iMaxSize] |
Definition at line 637 of file gradient.h.
Referenced by grad::RangeVector< scalar_deriv_type, N_SIZE >::Copy(), grad::RangeVector< scalar_deriv_type, N_SIZE >::GetValue(), grad::RangeVector< scalar_deriv_type, N_SIZE >::Initialize(), grad::RangeVector< scalar_deriv_type, N_SIZE >::ResizePreserve(), and grad::RangeVector< scalar_deriv_type, N_SIZE >::SetValue().
vector_type grad::RangeVector< T, N_SIZE >::rgArrayVec[iMaxSizeVector] |
Definition at line 638 of file gradient.h.
Referenced by grad::RangeVector< scalar_deriv_type, N_SIZE >::CopyData(), grad::RangeVector< scalar_deriv_type, N_SIZE >::GetVectorValue(), grad::RangeVector< scalar_deriv_type, N_SIZE >::Initialize(), grad::RangeVector< scalar_deriv_type, N_SIZE >::Reset(), and grad::RangeVector< scalar_deriv_type, N_SIZE >::SetVectorValue().