KADATH
Kadath::Ope_id Class Reference

The operator identity. More...

#include <ope_eq.hpp>

Inheritance diagram for Kadath::Ope_id:
Kadath::Ope_eq

Public Member Functions

 Ope_id (const System_of_eqs *syst, const Term_eq *so, int valence, char *names, Array< int > *ttype)
 Constructor. More...
 
 Ope_id (const System_of_eqs *syst, const Term_eq *so)
 Constructor with mos of the stuff uninitialized. More...
 
 ~Ope_id () override
 Destructor. More...
 
Term_eq action () const override
 Computes the action of the current Ope_eq using its various parts. More...
 
int get_dom () const
 

Protected Attributes

const Term_eqtarget
 The input Term_eq. More...
 
int valence
 Valence of the result. More...
 
char * name_ind
 The names of the various indices (if a Tensor of valence >0) More...
 
Array< int > * type_ind
 The type of the indices. More...
 
bool need_sum
 True if an inner contraction is needed to compute the result. More...
 
const System_of_eqssyst
 The associated System_of_eqs. More...
 
int dom
 Index of the Domain where the operator is defined. More...
 
int n_ope
 Number of terms involved (2 for + for instance, only one for sqrt...) More...
 
MMPtr_array< Ope_eqparts
 Pointers of the various parts of the current operator. More...
 

Detailed Description

The operator identity.

Definition at line 72 of file ope_eq.hpp.

Constructor & Destructor Documentation

◆ Ope_id() [1/2]

Kadath::Ope_id::Ope_id ( const System_of_eqs syst,
const Term_eq so,
int  valence,
char *  names,
Array< int > *  ttype 
)

Constructor.

Parameters
syst: the associated System_of_eqs.
so: The input Term_eq  
valence: valence of the result (can differ from the one of so, due to inner contraction).
names: name of the indices.
ttype: type of the indices (can differ from so, in whic case a Metric is required to do the manipulation).

Definition at line 26 of file ope_id.cpp.

References name_ind, need_sum, and valence.

◆ Ope_id() [2/2]

Kadath::Ope_id::Ope_id ( const System_of_eqs syst,
const Term_eq so 
)

Constructor with mos of the stuff uninitialized.

Parameters
syst: the associated System_of_eqs.
so: The input Term_eq

Definition at line 37 of file ope_id.cpp.

◆ ~Ope_id()

Kadath::Ope_id::~Ope_id ( )
override

Destructor.

Definition at line 42 of file ope_id.cpp.

References name_ind, and type_ind.

Member Function Documentation

◆ action()

◆ get_dom()

int Kadath::Ope_eq::get_dom ( ) const
inlineinherited
Returns
the index of the Domain.

Definition at line 53 of file ope_eq.hpp.

References Kadath::Ope_eq::dom.

Member Data Documentation

◆ dom

int Kadath::Ope_eq::dom
protectedinherited

Index of the Domain where the operator is defined.

Definition at line 36 of file ope_eq.hpp.

◆ n_ope

int Kadath::Ope_eq::n_ope
protectedinherited

Number of terms involved (2 for + for instance, only one for sqrt...)

Definition at line 37 of file ope_eq.hpp.

◆ name_ind

char* Kadath::Ope_id::name_ind
protected

The names of the various indices (if a Tensor of valence >0)

Definition at line 77 of file ope_eq.hpp.

◆ need_sum

bool Kadath::Ope_id::need_sum
protected

True if an inner contraction is needed to compute the result.

Definition at line 79 of file ope_eq.hpp.

◆ parts

MMPtr_array<Ope_eq> Kadath::Ope_eq::parts
protectedinherited

Pointers of the various parts of the current operator.

Definition at line 38 of file ope_eq.hpp.

◆ syst

const System_of_eqs* Kadath::Ope_eq::syst
protectedinherited

The associated System_of_eqs.

Definition at line 35 of file ope_eq.hpp.

◆ target

const Term_eq* Kadath::Ope_id::target
protected

The input Term_eq.

Definition at line 75 of file ope_eq.hpp.

◆ type_ind

Array<int>* Kadath::Ope_id::type_ind
protected

The type of the indices.

Definition at line 78 of file ope_eq.hpp.

◆ valence

int Kadath::Ope_id::valence
protected

Valence of the result.

Definition at line 76 of file ope_eq.hpp.


The documentation for this class was generated from the following files: