12 auto ind_it(_eci.
index().cbegin()), ind_end(_eci.
index().cend());
13 auto eci_it(_eci.
value().cbegin());
14 for (; ind_it != ind_end; ++ind_it, ++eci_it)
15 result += (*eci_it) * _corr[*ind_it];
23 auto ind_it(_eci.
index().cbegin()), ind_end(_eci.
index().cend());
24 auto eci_it(_eci.
value().cbegin());
25 while (ind_it != ind_end) {
26 result += (*eci_it) * (*(_corr_begin + *ind_it));
A sparse container of ECI values and their corresponding orbit indices.
const std::vector< size_type > & index() const
const Access orbit indices of ECI values
const std::vector< double > & value() const
const Access ECI values
BasisSet operator*(const SymOp &LHS, const BasisSet &RHS)