MADNESS
0.10.1
|
#include <PNOTensors.h>
Public Member Functions | |
Tensor_IJ_KJ (size_t n) | |
~Tensor_IJ_KJ ()=default | |
madness::Tensor< T > | get (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_ |
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}
|
inline |
References PNOTensors::Tensor_IJ_KJ< T >::reset().
|
default |
|
inline |
References PNOTensors::Tensor_IJ_KJ< T >::data_, PNOTensors::Tensor_IJ_KJ< T >::ijk(), k, PNOTensors::Tensor_IJ_KJ< T >::n_, and madness::swap().
Referenced by madness::PNO::update_pno().
|
inline |
References k, PNOTensors::Tensor_IJ_KJ< T >::n_, and PNOTensors::tridx().
Referenced by PNOTensors::Tensor_IJ_KJ< T >::get(), PNOTensors::Tensor_IJ_KJ< T >::is_initialized(), and PNOTensors::Tensor_IJ_KJ< T >::set().
|
inline |
References PNOTensors::Tensor_IJ_KJ< T >::data_, PNOTensors::Tensor_IJ_KJ< T >::ijk(), k, and PNOTensors::Tensor_IJ_KJ< T >::n_.
Referenced by madness::PNO::iterate_pairs_internal(), and madness::PNO::update_pno().
|
inline |
References k, and PNOTensors::Tensor_IJ_KJ< T >::n_.
|
inline |
|
inline |
|
private |
|
private |