TBCI::Tensor< T > Class Template Reference

Tensor class including arithmetics. More...

#include <tensor.h>

Inheritance diagram for TBCI::Tensor< T >:

Inheritance graph
[legend]
Collaboration diagram for TBCI::Tensor< T >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef T value_type
typedef T element_type
typedef T aligned_value_type

Public Member Functions

 Tensor ()
 Tensor (const unsigned dim_rank)
 Tensor (const Index &ix)
 Tensor (const T &value, const Index &ix)
 Tensor (const Tensor< T > &ct)
 Tensor (vararg va,...)
 Tensor (const T, vararg va,...)
 ~Tensor ()
Tensor< T > & operator+= (const Tensor< T > &)
Tensor< T > & operator-= (const Tensor< T > &)
Tensor< T > operator+ (const Tensor< T > &) const
Tensor< T > operator- (const Tensor< T > &) const
Tensor< T > & operator*= (const T m)
Tensor< T > & operator/= (const T m)
Tensor< T > & operator+= (const T m)
Tensor< T > & operator-= (const T m)
Tensor< T > operator* (const T m) const
Tensor< T > mult (const T) const
Tensor< T > operator/ (const T m) const
Tensor< T > operator- () const
Tensor< T > contract (const unsigned, const unsigned) const
Tensor< T > drctmul (const Tensor< T > &) const
Tensor< T > cntrmul (const Tensor< T > &, const unsigned, const unsigned) const

Friends

Tensor< T > dctmul (const Tensor< T > &, const Tensor< T > &)
Tensor< T > ctrmul (const Tensor< T > &, const Tensor< T > &, const unsigned, const unsigned)
Tensor< T > metrmul (const Tensor< T > &, const Tensor< T > &, const unsigned, const unsigned)


Detailed Description

template<typename T>
class TBCI::Tensor< T >

Tensor class including arithmetics.

Definition at line 461 of file tensor.h.


Member Typedef Documentation

template<typename T>
typedef T TBCI::Tensor< T >::value_type

Reimplemented from TBCI::CTensor< T >.

Definition at line 469 of file tensor.h.

template<typename T>
typedef T TBCI::Tensor< T >::element_type

Reimplemented from TBCI::CTensor< T >.

Definition at line 470 of file tensor.h.

template<typename T>
typedef T TBCI::Tensor< T >::aligned_value_type

Reimplemented from TBCI::CTensor< T >.

Definition at line 471 of file tensor.h.


Constructor & Destructor Documentation

template<typename T>
TBCI::Tensor< T >::Tensor (  )  [inline]

Definition at line 473 of file tensor.h.

template<typename T>
TBCI::Tensor< T >::Tensor ( const unsigned  dim_rank  )  [inline]

Definition at line 474 of file tensor.h.

template<typename T>
TBCI::Tensor< T >::Tensor ( const Index ix  )  [inline]

Definition at line 475 of file tensor.h.

template<typename T>
TBCI::Tensor< T >::Tensor ( const T &  value,
const Index ix 
) [inline]

Definition at line 476 of file tensor.h.

template<typename T>
TBCI::Tensor< T >::Tensor ( const Tensor< T > &  ct  )  [inline]

Definition at line 477 of file tensor.h.

template<typename T>
TBCI::Tensor< T >::Tensor ( vararg  va,
  ... 
) [inline]

template<typename T>
TBCI::Tensor< T >::Tensor ( const T  value,
vararg  va,
  ... 
) [inline]

template<typename T>
TBCI::Tensor< T >::~Tensor (  )  [inline]

Definition at line 480 of file tensor.h.


Member Function Documentation

template<typename T>
Tensor< T > & TBCI::Tensor< T >::operator+= ( const Tensor< T > &  t  )  [inline]

template<typename T>
Tensor< T > & TBCI::Tensor< T >::operator-= ( const Tensor< T > &  t  )  [inline]

template<typename T>
Tensor< T > TBCI::Tensor< T >::operator+ ( const Tensor< T > &  t  )  const [inline]

template<typename T>
Tensor< T > TBCI::Tensor< T >::operator- ( const Tensor< T > &  t  )  const [inline]

template<typename T>
Tensor<T>& TBCI::Tensor< T >::operator*= ( const T  m  )  [inline]

Definition at line 489 of file tensor.h.

References TBCI::CTensor< T >::data.

template<typename T>
Tensor<T>& TBCI::Tensor< T >::operator/= ( const T  m  )  [inline]

Definition at line 490 of file tensor.h.

References TBCI::CTensor< T >::data.

template<typename T>
Tensor<T>& TBCI::Tensor< T >::operator+= ( const T  m  )  [inline]

Definition at line 491 of file tensor.h.

References TBCI::CTensor< T >::data.

template<typename T>
Tensor<T>& TBCI::Tensor< T >::operator-= ( const T  m  )  [inline]

Definition at line 492 of file tensor.h.

References TBCI::CTensor< T >::data.

template<typename T>
Tensor<T> TBCI::Tensor< T >::operator* ( const T  m  )  const [inline]

template<typename T>
Tensor< T > TBCI::Tensor< T >::mult ( const T  m  )  const [inline]

Definition at line 812 of file tensor.h.

References TBCI::CTensor< T >::data, TBCI::CTensor< T >::noel, and TBCI::CTensor< T >::shape.

Referenced by TBCI::operator*().

template<typename T>
Tensor<T> TBCI::Tensor< T >::operator/ ( const T  m  )  const [inline]

template<typename T>
Tensor<T> TBCI::Tensor< T >::operator- (  )  const [inline]

template<typename T>
Tensor< T > TBCI::Tensor< T >::contract ( const unsigned  i1,
const unsigned  i2 
) const [inline]

template<typename T>
Tensor< T > TBCI::Tensor< T >::drctmul ( const Tensor< T > &  t1  )  const [inline]

template<typename T>
Tensor< T > TBCI::Tensor< T >::cntrmul ( const Tensor< T > &  t2,
const unsigned  i1,
const unsigned  i2 
) const [inline]


Friends And Related Function Documentation

template<typename T>
Tensor<T> dctmul ( const Tensor< T > &  t0,
const Tensor< T > &  t1 
) [friend]

Definition at line 726 of file tensor.h.

template<typename T>
Tensor<T> ctrmul ( const Tensor< T > &  t1,
const Tensor< T > &  t2,
const unsigned  i1,
const unsigned  i2 
) [friend]

Definition at line 665 of file tensor.h.

template<typename T>
Tensor<T> metrmul ( const Tensor< T > &  metr,
const Tensor< T > &  t,
const unsigned  i1,
const unsigned  i2 
) [friend]

Definition at line 685 of file tensor.h.


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

Generated on Wed Nov 20 09:29:43 2013 for TBCI Numerical high perf. C++ Library by  doxygen 1.5.6