mpqc::HBSparseTensor< RR, RC, Abs, T >::Element Struct Reference
Collaboration diagram for mpqc::HBSparseTensor< RR, RC, Abs, T >::Element:

Public Types

using base_type = std::conditional_t<!Abs, Value, empty_type >
 

Public Member Functions

template<bool Abs_ = Abs, typename = std::enable_if_t<Abs_>>
 Element (const col_index_type &i, const magnitude_type &m)
 
template<typename T_ , bool Abs_ = Abs, typename = std::enable_if_t<!Abs_>>
 Element (const col_index_type &i, const magnitude_type &m, T_ &&t)
 
const auto & index () const
 
const auto & magnitude () const
 
template<bool Abs_ = Abs, typename = std::enable_if_t<!Abs_>>
const auto & value () const
 

Public Attributes

magnitude_type mag
 
col_index_type idx
 

Member Typedef Documentation

◆ base_type

template<std::size_t RR, std::size_t RC, bool Abs = false, typename T = double>
using mpqc::HBSparseTensor< RR, RC, Abs, T >::Element::base_type = std::conditional_t<!Abs, Value, empty_type>

Constructor & Destructor Documentation

◆ Element() [1/2]

template<std::size_t RR, std::size_t RC, bool Abs = false, typename T = double>
template<bool Abs_ = Abs, typename = std::enable_if_t<Abs_>>
mpqc::HBSparseTensor< RR, RC, Abs, T >::Element::Element ( const col_index_type i,
const magnitude_type m 
)
inline

◆ Element() [2/2]

template<std::size_t RR, std::size_t RC, bool Abs = false, typename T = double>
template<typename T_ , bool Abs_ = Abs, typename = std::enable_if_t<!Abs_>>
mpqc::HBSparseTensor< RR, RC, Abs, T >::Element::Element ( const col_index_type i,
const magnitude_type m,
T_ &&  t 
)
inline

Member Function Documentation

◆ index()

template<std::size_t RR, std::size_t RC, bool Abs = false, typename T = double>
const auto& mpqc::HBSparseTensor< RR, RC, Abs, T >::Element::index ( ) const
inline

◆ magnitude()

template<std::size_t RR, std::size_t RC, bool Abs = false, typename T = double>
const auto& mpqc::HBSparseTensor< RR, RC, Abs, T >::Element::magnitude ( ) const
inline

◆ value()

template<std::size_t RR, std::size_t RC, bool Abs = false, typename T = double>
template<bool Abs_ = Abs, typename = std::enable_if_t<!Abs_>>
const auto& mpqc::HBSparseTensor< RR, RC, Abs, T >::Element::value ( ) const
inline

Member Data Documentation

◆ idx

template<std::size_t RR, std::size_t RC, bool Abs = false, typename T = double>
col_index_type mpqc::HBSparseTensor< RR, RC, Abs, T >::Element::idx

◆ mag

template<std::size_t RR, std::size_t RC, bool Abs = false, typename T = double>
magnitude_type mpqc::HBSparseTensor< RR, RC, Abs, T >::Element::mag

The documentation for this struct was generated from the following file:
  • mpqc/math/fock/hb.h