KADATH
|
Describes the tensorial basis used by the various tensors. More...
#include <base_tensor.hpp>
Public Member Functions | |
Base_tensor (const Space &sp) | |
Constructor, does not affect anything. More... | |
Base_tensor (const Space &sp, int bb) | |
Constructor where the basis is the same everywhere. More... | |
Base_tensor (const Base_tensor &so) | |
Copy constructor. More... | |
Base_tensor (const Space &sp, FILE *fd) | |
Constructor from a file. More... | |
virtual | ~Base_tensor ()=default |
Destructor. More... | |
int & | set_basis (int nd) |
Read/write the basis in a given domain. More... | |
int | get_basis (int nd) const |
Read only the basis in a given domain. More... | |
void | operator= (const Base_tensor &) |
Affectation operator. More... | |
void | swap (Base_tensor &so) |
Sylvain's stuff. More... | |
const Space & | get_space () const |
void | save (FILE *fd) const |
Saving function. More... | |
Protected Attributes | |
const Space & | space |
The associated Space . More... | |
Array< int > | basis |
The basis in each Domain . More... | |
Friends | |
ostream & | operator<< (ostream &, const Base_tensor &) |
Display. More... | |
bool | operator== (const Base_tensor &, const Base_tensor &) |
Tests equality of two basis. More... | |
bool | operator!= (const Base_tensor &, const Base_tensor &) |
Tests the difference of two basis. More... | |
Describes the tensorial basis used by the various tensors.
In each Domain
it stores an integer describing the basis. Possible choices :
Definition at line 49 of file base_tensor.hpp.
|
inlineexplicit |
Constructor, does not affect anything.
sp | : the Space . |
Definition at line 66 of file base_tensor.hpp.
References basis.
|
inline |
Constructor where the basis is the same everywhere.
sp | : the Space . |
bb | : input basis. |
Definition at line 72 of file base_tensor.hpp.
References basis.
|
inline |
Copy constructor.
Definition at line 74 of file base_tensor.hpp.
|
inline |
Constructor from a file.
sp | : the Space . |
fd | : the file (generated by save. |
Definition at line 80 of file base_tensor.hpp.
|
virtualdefault |
Destructor.
|
inline |
Read only the basis in a given domain.
Definition at line 93 of file base_tensor.hpp.
References basis.
|
inline |
|
inline |
Affectation operator.
Definition at line 113 of file base_tensor.hpp.
References basis, Kadath::Array< T >::get_size(), get_space(), Kadath::Array< T >::set(), and space.
|
inline |
Saving function.
Definition at line 104 of file base_tensor.hpp.
References basis, and Kadath::Array< T >::save().
|
inline |
Read/write the basis in a given domain.
Definition at line 91 of file base_tensor.hpp.
References basis, and Kadath::Array< T >::set().
|
inline |
Sylvain's stuff.
Definition at line 97 of file base_tensor.hpp.
References basis, space, and Kadath::Array< T >::swap().
|
friend |
Tests the difference of two basis.
Definition at line 120 of file base_tensor.hpp.
|
friend |
Display.
Definition at line 26 of file base_tensor.cpp.
|
friend |
Tests equality of two basis.
Definition at line 51 of file base_tensor.cpp.
|
protected |
The basis in each Domain
.
Definition at line 55 of file base_tensor.hpp.
|
protected |
The associated Space
.
Definition at line 54 of file base_tensor.hpp.