20 #include "headcpp.hpp"
22 #include "array_math.hpp"
24 #include "tensor_impl.hpp"
36 assert ((base_t==COSSIN_EVEN) || (base_t==COSSIN_ODD)) ;
39 if ((pos(1)==1) && (base_t==COSSIN_EVEN))
41 if ((pos(1)==
nbr_coefs(1)-2) && (base_t==COSSIN_ODD))
45 so.
cf->
set(pos) += values(conte);
63 cerr <<
"Valence " << val <<
" not implemented in Domain_critic_outer::affecte_tau" << endl ;
reference set(const Index &pos)
Read/write of an element.
Bases_container bases_1d
Arrays containing the various basis of decomposition.
void affecte_tau_val_domain(Val_domain &so, const Array< double > &cf, int &pos_cf) const
Affects some coefficients to a Val_domain.
virtual void affecte_tau(Tensor &, int, const Array< double > &, int &) const
Affects some coefficients to a Tensor.
Dim_array nbr_coefs
Number of coefficients.
Class that gives the position inside a multi-dimensional Array.
bool inc(int increm, int var=0)
Increments the position of the Index.
Val_domain & set_domain(int)
Read/write of a particular Val_domain.
const Domain * get_domain(int i) const
returns a pointer on the domain.
Scalar & set(const Array< int > &ind)
Returns the value of a component (read/write version).
int get_valence() const
Returns the valence.
const Space & get_space() const
Returns the Space.
Class for storing the basis of decompositions of a field and its values on both the configuration and...
void allocate_coef()
Allocates the values in the coefficient space and destroys the values in the configuration space.
Array< double > * cf
Pointer on the Array of the values in the coefficients space.
const Base_spectral & get_base() const
Returns the basis of decomposition.