6 #include "CORE_Field.h"
15 #include "SM_Object.h"
23 #include "CORE_StdPtrField.h"
26 #include "SM_MultiStochasticFunctions.h"
29 #include "SM_Constants.h"
42 template<
typename T,
typename K,tUCInt D>
88 inline static CORE_UniquePointer<Self>
New() {
184 requires functions_type::isRealType<R>
195 const T *iVe=Vs;iVe+=n;
208 template<
class R,
class StochF>
221 const T *iVe=Vs;iVe+=n;
224 (*iV)+=epsilon*f.scNormalRandom();
virtual tMemSize getContentsMemorySize() const override
return the memory size of the included associations
Definition: CORE_Field.h:102
void copy(const tIndex &n, const Q *vs)
initialize the field to the values of pointer of size n
Definition: CORE_Field.h:447
const T * getValues() const
get the values of the array for reading
Definition: CORE_Field.h:323
tIndex getSize() const
return the number values of the container
Definition: CORE_Field.h:161
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
this class describes a standart arithmetic array type implemented with a CORE_StdPtrArray object
Definition: CORE_StdPtrField.h:17
void initialize(const Q &v)
initailize all the values with v
Definition: CORE_StdPtrField.h:192
This class describes a field with a T type with index of type K of size D.
Definition: SM_Field.h:43
Self & operator=(const std::array< T, D > &cpy)
copy operator
Definition: SM_Field.h:151
virtual ~SM_Field(void)
destroy the interface
Definition: SM_Field.h:74
static CORE_UniquePointer< Self > New()
build a new instance of a SM_Field
Definition: SM_Field.h:88
Self & operator=(const T &v)
copy operator
Definition: SM_Field.h:118
void addscStochasticNoise(const R &epsilon, SM_MultiStochasticFunctions< StochF > &fs)
add a stochastic noise the the field by static casting method
Definition: SM_Field.h:209
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_Field.h:108
Self & operator=(const std::valarray< T > &cpy)
copy operator
Definition: SM_Field.h:143
Self & operator=(std::initializer_list< T > &&cpy)
copy operator
Definition: SM_Field.h:135
Self & operator=(const std::initializer_list< T > &cpy)
copy operator
Definition: SM_Field.h:127
requires functions_type::isRealType< R > void addStochasticNoise(const R &epsilon, SM_MultiStochasticFunctionsInterface &fs)
add a stochastic noise the the field
Definition: SM_Field.h:185
SM_Field()
create a field of dim D and size 1
Definition: SM_Field.h:56
Self & operator=(Self &&cpy)
copy operator
Definition: SM_Field.h:168
SM_Field(std::initializer_list< T > &&values)
create a field of dim 3 and size values.size()/3 initialized with values list values
Definition: SM_Field.h:63
Self & operator=(const Self &cpy)
copy operator
Definition: SM_Field.h:160
This class describes a multi stochastic functions based on same random number generator which impleme...
Definition: SM_MultiStochasticFunctionsInterface.h:18
This class describes a multi stochastic functions based on same random number generator which impleme...
Definition: SM_MultiStochasticFunctions.h:26
This class describes a stochastic functions based on same random number generator which implement ran...
Definition: SM_StochasticFunctionsInterface.h:18
virtual tReal normalRandom()=0
compute a normal random number