35#ifndef STK_ARRAYBASEAPPLIER_H
36#define STK_ARRAYBASEAPPLIER_H
55template<
typename Derived>
56template<
typename Visitor>
60 Impl::apply(this->asDerived(),
visitor);
67template<
typename Derived>
72 return this->asDerived();
76template<
typename Derived>
81 return this->asDerived();
85template<
typename Derived>
90 return this->asDerived();
94template<
typename Derived>
99template<
typename Derived>
103template<
typename Derived>
108 return this->asDerived();
112template<
typename Derived>
117 return this->asDerived();
121template<
typename Derived>
126 return this->asDerived();
Derived & zeros()
set zero to this using a Visitor.
Derived & setValue(TypeConst value)
set a value to this container.
Derived & ones()
set one to this using a Visitor.
hidden::Traits< Derived >::Type Type
Derived & randUnif()
set random values to this using a uniform law.
void apply(Visitor &visitor)
Apply the Visitor visitor to the whole coefficients of the array.
Derived & setZeros()
set zero to this using a Visitor.
hidden::Traits< Derived >::TypeConst TypeConst
Derived & randGauss()
set random values to this using a standard gaussian law.
Derived & rand(Law::IUnivLaw< Type > const &law)
set random values to this using a distribution law given by the user.
Derived & setOnes()
set one to this using a Visitor.
Interface base class for all the univariate distributions.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
The namespace STK is the main domain space of the Statistical ToolKit project.
Visitor putting a choosen random variable.
Visitor setting Gaussian random variables.
Applier setting uniform random numbers.
visitor putting a constant value
If< is2D_ &&unrollRows_ &&unrollCols_, ArrayImpl, HelperImpl >::Result Impl