MADNESS  0.10.1
Public Member Functions | Private Attributes | List of all members
PNOTensors::Tensor_IJ_KJ< T > Class Template Reference

#include <PNOTensors.h>

Public Member Functions

 Tensor_IJ_KJ (size_t n)
 
 ~Tensor_IJ_KJ ()=default
 
madness::Tensor< Tget (size_t i, size_t j, size_t k) const
 
std::tuple< size_t, bool > ijk (size_t i, size_t j, size_t k) const
 
bool is_initialized (size_t i, size_t j, size_t k) const
 
bool is_unique (size_t i, size_t j, size_t k) const
 
void reset ()
 
void set (size_t i, size_t j, size_t k, const madness::Tensor< T > &t)
 

Private Attributes

std::valarray< madness::Tensor< T > > data_
 
int n_
 

Detailed Description

template<typename T>
class PNOTensors::Tensor_IJ_KJ< T >

stores pairs of pairs that share second index (i.e. {ij} and {kj}, where i >= j) as a 3-index tensor: case 1 – i >= j, j >= k: store as {{ij},k} case 2 – i >= j, k > j: only need i >= k, or ij >= kj; store as {{ij},k}

Constructor & Destructor Documentation

◆ Tensor_IJ_KJ()

template<typename T >
PNOTensors::Tensor_IJ_KJ< T >::Tensor_IJ_KJ ( size_t  n)
inline

◆ ~Tensor_IJ_KJ()

template<typename T >
PNOTensors::Tensor_IJ_KJ< T >::~Tensor_IJ_KJ ( )
default

Member Function Documentation

◆ get()

template<typename T >
madness::Tensor<T> PNOTensors::Tensor_IJ_KJ< T >::get ( size_t  i,
size_t  j,
size_t  k 
) const
inline

◆ ijk()

template<typename T >
std::tuple<size_t,bool> PNOTensors::Tensor_IJ_KJ< T >::ijk ( size_t  i,
size_t  j,
size_t  k 
) const
inline

◆ is_initialized()

template<typename T >
bool PNOTensors::Tensor_IJ_KJ< T >::is_initialized ( size_t  i,
size_t  j,
size_t  k 
) const
inline

◆ is_unique()

template<typename T >
bool PNOTensors::Tensor_IJ_KJ< T >::is_unique ( size_t  i,
size_t  j,
size_t  k 
) const
inline

◆ reset()

template<typename T >
void PNOTensors::Tensor_IJ_KJ< T >::reset ( )
inline

◆ set()

template<typename T >
void PNOTensors::Tensor_IJ_KJ< T >::set ( size_t  i,
size_t  j,
size_t  k,
const madness::Tensor< T > &  t 
)
inline

Member Data Documentation

◆ data_

template<typename T >
std::valarray<madness::Tensor<T> > PNOTensors::Tensor_IJ_KJ< T >::data_
private

◆ n_

template<typename T >
int PNOTensors::Tensor_IJ_KJ< T >::n_
private

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