SyTen

◆ trace() [1/5]

template<typename Scalar >
Scalar syten::trace ( DenseTensor< 2, Scalar > const &  a)
inline

\( \sum_k A_{kk} \)

References syten::DenseTensor< rank, Scalar >::dim(), syten::DenseTensor< rank, Scalar >::getDims(), and SYTEN_ASSERT_MSG.

Referenced by syten::MPS::RDMs::OrbRDM::checkValidity(), dropDummy(), syten::IPEPSv2::expectation_value(), and trace().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: