v0.14.0
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 T * operator& () const
 
 operator T () const
 
const Tensor0operator++ () const
 
- Public Member Functions inherited from FTensor::Tensor0< T * >
 Tensor0 (T *d, const int i=1)
 
const Tensor0operator= (const Tensor0 &a)
 
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 T * operator& () const
 
 operator T () const
 
const Tensor0operator++ () const
 

Additional Inherited Members

- Protected Attributes inherited from FTensor::Tensor0< T * >
T *restrict data
 

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)
inline

Definition at line 96 of file Tensor0.hpp.

96 : Tensor0<T *>(d, I) {}

Member Function Documentation

◆ operator T()

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

Definition at line 143 of file Tensor0.hpp.

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

◆ operator&()

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

Definition at line 142 of file Tensor0.hpp.

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

◆ operator*=()

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

Definition at line 112 of file Tensor0.hpp.

113  {
114  *Tensor0<T *>::data *= d;
115  return *this;
116  }

◆ operator++()

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

Definition at line 148 of file Tensor0.hpp.

148  {
150  return *this;
151  }

◆ operator+=()

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

Definition at line 102 of file Tensor0.hpp.

103  {
104  *Tensor0<T *>::data += d;
105  return *this;
106  }

◆ operator-=()

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

Definition at line 107 of file Tensor0.hpp.

108  {
109  *Tensor0<T *>::data -= d;
110  return *this;
111  }

◆ operator/=()

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

Definition at line 117 of file Tensor0.hpp.

118  {
119  *Tensor0<T *>::data /= d;
120  return *this;
121  }

◆ operator<<=()

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

Definition at line 130 of file Tensor0.hpp.

131  {
132  *Tensor0<T *>::data <<= d;
133  return *this;
134  }

◆ operator=()

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

Definition at line 98 of file Tensor0.hpp.

98  {
100  return *this;
101  }

◆ operator>>=()

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

Definition at line 124 of file Tensor0.hpp.

125  {
126  d >>= *Tensor0<T *>::data;
127  return *this;
128  }

The documentation for this class was generated from the following file:
FTensor::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
I
constexpr IntegrationType I
Definition: operators_tests.cpp:31
FTensor::Tensor0< T * >::data
T *restrict data
Definition: Tensor0.hpp:24