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

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

Public Member Functions

 Tensor0 (T *d)
 
const Tensor0operator= (const Tensor0 &a)
 
template<class U >
const Tensor0< PackPtr< T *, I > > & operator= (const U &d)
 
template<class U >
const Tensor0< PackPtr< T *, I > > & operator+= (const U &d)
 
template<class U >
const Tensor0< PackPtr< T *, I > > & operator-= (const U &d)
 
template<class U >
const Tensor0< PackPtr< T *, I > > & operator*= (const U &d)
 
template<class U >
const Tensor0< PackPtr< T *, I > > & operator/= (const U &d)
 
template<class U >
const Tensor0< PackPtr< T *, I > > & operator>>= (U &d)
 
template<class U >
const Tensor0< PackPtr< T *, I > > & operator<<= (const U &d)
 
const T * operator & () const
 
 operator T () const
 
const Tensor0< PackPtr< T *, I > > & operator++ () const
 

Private Attributes

T *restrict data
 

Detailed Description

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

Definition at line 19 of file Tensor0.hpp.

Constructor & Destructor Documentation

◆ Tensor0()

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

Definition at line 24 of file Tensor0.hpp.

24 : data(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 76 of file Tensor0.hpp.

76 { return data; }

◆ operator T()

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

Definition at line 77 of file Tensor0.hpp.

77 { return *data; }

◆ operator*=()

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

Definition at line 47 of file Tensor0.hpp.

48  {
49  *data *= d;
50  return *this;
51  }
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<PackPtr<T *, I> >& FTensor::Tensor0< PackPtr< T *, I > >::operator++ ( ) const

Definition at line 82 of file Tensor0.hpp.

83  {
84  data += I;
85  return *this;
86  }

◆ operator+=()

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

Definition at line 37 of file Tensor0.hpp.

38  {
39  *data += d;
40  return *this;
41  }
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<PackPtr<T *, I> >& FTensor::Tensor0< PackPtr< T *, I > >::operator-= ( const U &  d)

Definition at line 42 of file Tensor0.hpp.

43  {
44  *data -= d;
45  return *this;
46  }
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<PackPtr<T *, I> >& FTensor::Tensor0< PackPtr< T *, I > >::operator/= ( const U &  d)

Definition at line 52 of file Tensor0.hpp.

53  {
54  *data /= d;
55  return *this;
56  }
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<PackPtr<T *, I> >& FTensor::Tensor0< PackPtr< T *, I > >::operator<<= ( const U &  d)

Definition at line 65 of file Tensor0.hpp.

66  {
67  *data <<= d;
68  return *this;
69  }
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=() [1/2]

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

Definition at line 26 of file Tensor0.hpp.

27  {
28  *data = *(a.data);
29  return *this;
30  }

◆ operator=() [2/2]

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

Definition at line 32 of file Tensor0.hpp.

33  {
34  *data = d;
35  return *this;
36  }
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<PackPtr<T *, I> >& FTensor::Tensor0< PackPtr< T *, I > >::operator>>= ( U &  d)

Definition at line 59 of file Tensor0.hpp.

60  {
61  d >>= *data;
62  return *this;
63  }
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 Data Documentation

◆ data

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

Definition at line 21 of file Tensor0.hpp.


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