30 template<
typename T,
typename K>
164 requires core_functions::isRealType<R>
169 const T *iVe=iV+this->
getSize();
171 (*iV)+=epsilon*f.
random();
182 template<
class R,
class I>
187 const T *iVe=iV+this->
getSize();
SM_Field< tReal, tDimension > SM_RealField
Definition: SM_Field.h:211
virtual tMemSize getContentsMemorySize() const override
return the memory size of the included associations
Definition: CORE_Field.h:93
void copy(const tIndex &n, const Q *vs)
initialize the field to the values of pointer of size n
Definition: CORE_Field.h:422
const T * getValues() const
get the values of the array for reading
Definition: CORE_Field.h:298
tIndex getSize() const
return the number values of the container
Definition: CORE_Field.h:135
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:94
this class describes a standart arithmetic array type implemented with a std::valarray object
Definition: CORE_StdPtrField.h:14
void initialize(const Q &v)
initailize all the values with v
Definition: CORE_StdPtrField.h:178
This class describes a field with a floating point type.
Definition: SM_Field.h:31
SM_Field< T, K > Self
Definition: SM_Field.h:35
virtual ~SM_Field(void)
destroy the interface
Definition: SM_Field.h:62
void addTemplatedStochasticNoise(const R &epsilon, SM_TemplatedStochasticFunction< I > &f)
add a stochastic noise the the field
Definition: SM_Field.h:183
Self & operator=(const T &v)
copy operator
Definition: SM_Field.h:106
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_Field.h:96
Self & operator=(const std::valarray< T > &cpy)
copy operator
Definition: SM_Field.h:131
static CORE_UniquePointer< Self > New()
build a new instance of a SM_Field
Definition: SM_Field.h:76
Self & operator=(std::initializer_list< T > &&cpy)
copy operator
Definition: SM_Field.h:123
Self & operator=(Self &&cpy)
copy operator
Definition: SM_Field.h:148
Self & operator=(const std::initializer_list< T > &cpy)
copy operator
Definition: SM_Field.h:115
requires core_functions::isRealType< R > void addStochasticNoise(const R &epsilon, SM_StochasticFunction &f)
add a stochastic noise the the field
Definition: SM_Field.h:165
Self & operator=(const Self &cpy)
copy operator
Definition: SM_Field.h:140
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:51
SM_Field()
create a field of dim 3 and size 1
Definition: SM_Field.h:44
This class describes a stochastic function interface to generate random numbers.
Definition: SM_StochasticFunction.h:15
virtual tReal random() const =0
compute a random number
This class describes a templated stochastic function to generate random numbers.
Definition: SM_TemplatedStochasticFunction.h:15
tReal templatedRandom() const
compute a random number
Definition: SM_TemplatedStochasticFunction.h:64
typename std::unique_ptr< T, CORE_Object::Delete > CORE_UniquePointer
Definition: sp.h:8
#define tMemSize
Definition: types.h:166