v0.8.15
Public Member Functions | List of all members
FTensor::Tensor0< PackPtr< T *, I > > Class Template Reference

#include <src/ftensor/src/FTensor/Tensor0.hpp>

Inheritance diagram for FTensor::Tensor0< PackPtr< T *, I > >:
[legend]
Collaboration diagram for FTensor::Tensor0< PackPtr< T *, I > >:
[legend]

Public Member Functions

 Tensor0 (T *d)
 
template<class U >
const Tensor0operator= (const U &d)
 
template<class U >
const Tensor0operator+= (const U &d)
 
template<class U >
const Tensor0operator-= (const U &d)
 
template<class U >
const Tensor0operator*= (const U &d)
 
template<class U >
const Tensor0operator/= (const U &d)
 
template<class U >
const Tensor0operator>>= (U &d)
 
template<class U >
const Tensor0operator<<= (const U d)
 
const Toperator & () const
 
 operator T () const
 
const Tensor0operator++ () const
 

Detailed Description

template<class T, int I>
class FTensor::Tensor0< PackPtr< T *, I > >

Definition at line 93 of file Tensor0.hpp.

Constructor & Destructor Documentation

◆ Tensor0()

template<class T , int I>
FTensor::Tensor0< PackPtr< T *, I > >::Tensor0 ( T d)

Definition at line 96 of file Tensor0.hpp.

96 : Tensor0<T *>(d) {}
const Tensor1_Expr< const dTensor0< T, Dim, i >, typename promote< T, double >::V, Dim, i > d(const Tensor0< T *> &a, const Index< i, Dim > index, const Tensor1< int, Dim > &d_ijk, const Tensor1< double, Dim > &d_xyz)
Definition: dTensor0.hpp:27

Member Function Documentation

◆ operator &()

template<class T , int I>
const T* FTensor::Tensor0< PackPtr< T *, I > >::operator& ( ) const

Definition at line 143 of file Tensor0.hpp.

143 { return Tensor0<T *>::data; }

◆ operator T()

template<class T , int I>
FTensor::Tensor0< PackPtr< T *, I > >::operator T ( ) const

Definition at line 144 of file Tensor0.hpp.

144 { return *Tensor0<T *>::data; }

◆ operator*=()

template<class T , int I>
template<class U >
const Tensor0& FTensor::Tensor0< PackPtr< T *, I > >::operator*= ( const U &  d)

Definition at line 113 of file Tensor0.hpp.

114  {
115  *Tensor0<T *>::data *= d;
116  return *this;
117  }
const Tensor1_Expr< const dTensor0< T, Dim, i >, typename promote< T, double >::V, Dim, i > d(const Tensor0< T *> &a, const Index< i, Dim > index, const Tensor1< int, Dim > &d_ijk, const Tensor1< double, Dim > &d_xyz)
Definition: dTensor0.hpp:27

◆ operator++()

template<class T , int I>
const Tensor0& FTensor::Tensor0< PackPtr< T *, I > >::operator++ ( ) const

Definition at line 149 of file Tensor0.hpp.

149  {
150  Tensor0<T *>::data += I;
151  return *this;
152  }

◆ operator+=()

template<class T , int I>
template<class U >
const Tensor0& FTensor::Tensor0< PackPtr< T *, I > >::operator+= ( const U &  d)

Definition at line 103 of file Tensor0.hpp.

104  {
105  *Tensor0<T *>::data += d;
106  return *this;
107  }
const Tensor1_Expr< const dTensor0< T, Dim, i >, typename promote< T, double >::V, Dim, i > d(const Tensor0< T *> &a, const Index< i, Dim > index, const Tensor1< int, Dim > &d_ijk, const Tensor1< double, Dim > &d_xyz)
Definition: dTensor0.hpp:27

◆ operator-=()

template<class T , int I>
template<class U >
const Tensor0& FTensor::Tensor0< PackPtr< T *, I > >::operator-= ( const U &  d)

Definition at line 108 of file Tensor0.hpp.

109  {
110  *Tensor0<T *>::data -= d;
111  return *this;
112  }
const Tensor1_Expr< const dTensor0< T, Dim, i >, typename promote< T, double >::V, Dim, i > d(const Tensor0< T *> &a, const Index< i, Dim > index, const Tensor1< int, Dim > &d_ijk, const Tensor1< double, Dim > &d_xyz)
Definition: dTensor0.hpp:27

◆ operator/=()

template<class T , int I>
template<class U >
const Tensor0& FTensor::Tensor0< PackPtr< T *, I > >::operator/= ( const U &  d)

Definition at line 118 of file Tensor0.hpp.

119  {
120  *Tensor0<T *>::data /= d;
121  return *this;
122  }
const Tensor1_Expr< const dTensor0< T, Dim, i >, typename promote< T, double >::V, Dim, i > d(const Tensor0< T *> &a, const Index< i, Dim > index, const Tensor1< int, Dim > &d_ijk, const Tensor1< double, Dim > &d_xyz)
Definition: dTensor0.hpp:27

◆ operator<<=()

template<class T , int I>
template<class U >
const Tensor0& FTensor::Tensor0< PackPtr< T *, I > >::operator<<= ( const U  d)

Definition at line 131 of file Tensor0.hpp.

132  {
133  *Tensor0<T *>::data <<= d;
134  return *this;
135  }
const Tensor1_Expr< const dTensor0< T, Dim, i >, typename promote< T, double >::V, Dim, i > d(const Tensor0< T *> &a, const Index< i, Dim > index, const Tensor1< int, Dim > &d_ijk, const Tensor1< double, Dim > &d_xyz)
Definition: dTensor0.hpp:27

◆ operator=()

template<class T , int I>
template<class U >
const Tensor0& FTensor::Tensor0< PackPtr< T *, I > >::operator= ( const U &  d)

Definition at line 98 of file Tensor0.hpp.

99  {
100  *Tensor0<T *>::data = d;
101  return *this;
102  }
const Tensor1_Expr< const dTensor0< T, Dim, i >, typename promote< T, double >::V, Dim, i > d(const Tensor0< T *> &a, const Index< i, Dim > index, const Tensor1< int, Dim > &d_ijk, const Tensor1< double, Dim > &d_xyz)
Definition: dTensor0.hpp:27

◆ operator>>=()

template<class T , int I>
template<class U >
const Tensor0& FTensor::Tensor0< PackPtr< T *, I > >::operator>>= ( U &  d)

Definition at line 125 of file Tensor0.hpp.

126  {
127  d >>= *Tensor0<T *>::data;
128  return *this;
129  }
const Tensor1_Expr< const dTensor0< T, Dim, i >, typename promote< T, double >::V, Dim, i > d(const Tensor0< T *> &a, const Index< i, Dim > index, const Tensor1< int, Dim > &d_ijk, const Tensor1< double, Dim > &d_xyz)
Definition: dTensor0.hpp:27

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