32char tensor_sym_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Tensor/tensor_sym.C,v 1.3 2014/10/13 08:53:44 j_novak Exp $" ;
59#include "utilitaires.h"
69Tensor_sym::Tensor_sym(
const Map& map,
int val,
const Itbl&
tipe,
97Tensor_sym::Tensor_sym(
const Map& map,
int val,
int tipe,
206 for (
int id=0 ;
id<
valence ;
id++)
224 for (
int id=0 ;
id<
valence ;
id++)
257 for (
int id=0 ;
id<
id_sym1;
id++) {
283 for (
int id=0 ;
id<
valence-2 ;
id++) {
339 for (
int id=
valence-3 ;
id>=0 ;
id--) {
350 for (
int id=0 ;
id<
id_sym1;
id++) {
Vectorial bases (triads) with respect to which the tensorial components are defined.
Time evolution with partial storage (*** under development ***).
int position(int j) const
Gives the position in the arrays step, the_time and val corresponding to the time step j.
Basic integer array class.
int & set(int i)
Read/write of a particular element (index i ) (1D case)
Base class for coordinate mappings.
Symmetric tensors (with respect to two of their arguments).
Cmp pow(const Cmp &, int)
Power .
int fread_be(int *aa, int size, int nb, FILE *fich)
Reads integer(s) from a binary file according to the big endian convention.
int fwrite_be(const int *aa, int size, int nb, FILE *fich)
Writes integer(s) into a binary file according to the big endian convention.
virtual void sauve(FILE *) const
Save in a binary file.
virtual Itbl indices(int pos) const
Returns the indices of a component given by its position in the array cmp .
virtual void operator=(const Tensor_sym &a)
Assignment to another Tensor_sym.
virtual void sauve(FILE *) const
Save in a binary file.
int id_sym1
Number of the first symmetric index (0<= id_sym1 < valence )
int valence
Valence of the tensor (0 = scalar, 1 = vector, etc...)
Scalar ** cmp
Array of size n_comp of pointers onto the components.
int id_sym2
Number of the second symmetric index (id_sym1 < id_sym2 < valence )
int n_comp
Number of stored components, depending on the symmetry.
virtual void del_deriv() const
Deletes the derived quantities.
virtual int position(const Itbl &ind) const
Returns the position in the array cmp of a component given by its indices.
Itbl type_indice
1D array of integers (class Itbl ) of size valence containing the type of each index: COV for a cov...
virtual ~Tensor_sym()
Destructor.
const Base_vect * triad
Vectorial basis (triad) with respect to which the tensor components are defined.