TBCI Numerical high perf. C++ Library  2.8.0
Classes | Functions
tensor.h File Reference

Implementation of datatype templated TBCI::Tensor of dynamical rank. More...

#include "tbci/vector.h"
#include "tbci/index.h"
Include dependency graph for tensor.h:

Go to the source code of this file.

Classes

class  TensErr
 
class  CTensor< T >
 Note (KG, 981214): We don't handle rank == 0. More...
 
class  Tensor< T >
 Tensor class including arithmetics. More...
 

Functions

template<typename T >
STD__ ostream & operator<< (STD__ ostream &os, const CTensor< T > &ct)
 
template<typename T >
STD__ istream & operator>> (STD__ istream &is, CTensor< T > &ct)
 
template<typename T >
Tensor< Tctrmul (const Tensor< T > &t1, const Tensor< T > &t2, const unsigned i1, const unsigned i2)
 
template<typename T >
Tensor< Tmetrmul (const Tensor< T > &metr, const Tensor< T > &t, const unsigned i1, const unsigned i2)
 
template<typename T >
Tensor< Tdctmul (const Tensor< T > &t0, const Tensor< T > &t1)
 
template<typename T >
Tensor< Toperator* (const T m, const Tensor< T > &t)
 

Detailed Description

Implementation of datatype templated TBCI::Tensor of dynamical rank.

Definition in file tensor.h.

Function Documentation

template<typename T >
Tensor<T> ctrmul ( const Tensor< T > &  t1,
const Tensor< T > &  t2,
const unsigned  i1,
const unsigned  i2 
)
template<typename T >
Tensor<T> dctmul ( const Tensor< T > &  t0,
const Tensor< T > &  t1 
)
template<typename T >
Tensor<T> metrmul ( const Tensor< T > &  metr,
const Tensor< T > &  t,
const unsigned  i1,
const unsigned  i2 
)
template<typename T >
Tensor<T> operator* ( const T  m,
const Tensor< T > &  t 
)
inline

Definition at line 827 of file tensor.h.

References Tensor< T >::mult().

template<typename T >
STD__ ostream& operator<< ( STD__ ostream &  os,
const CTensor< T > &  ct 
)

Definition at line 357 of file tensor.h.

References i, and Index::next_idx().

template<typename T >
STD__ istream& operator>> ( STD__ istream &  is,
CTensor< T > &  ct 
)

Definition at line 376 of file tensor.h.

References i, Index::next_idx(), CTensor< T >::noel, and CTensor< T >::rank.