12 template <
typename dtype=
double>
Ring class defined by a datatype and addition and multiplicaton functions addition must have an ident...
dtype get_val()
returns scalar value
an instance of the CTF library (world) on a MPI communicator
CTF::World * wrld
distributed processor context on which tensor is defined
Scalar class which encapsulates a 0D tensor.
algstrct * sr
algstrct on which tensor elements and operations are defined
Scalar< dtype > & operator=(const Scalar< dtype > &A)
void set_val(dtype val)
sets scalar value
algstrct (algebraic structure) defines the elementwise operations computed in each tensor contraction...
an instance of a tensor within a CTF world
Scalar(World &wrld=get_universe(), CTF_int::algstrct const &sr=Ring< dtype >())
constructor for a scalar