SyTen

◆ max() [1/4]

template<Rank rank, typename Scalar >
ScalarBase< Scalar >::type syten::max ( DenseTensor< rank, Scalar > const &  a)
inline

Returns the element with the greatest magnitude in the dense tensor.

Remarks
with C++17 support, we can rewrite this to use max_element.

References abs().

Referenced by syten::T3N::DMRG::Run::adaptConf(), syten::LimVec< Type, max, MaxType, type >::capacity(), exponentialTensorGen(), syten::Tensor< rank >::getMaxBlocksize(), syten::LimVec< Type, max, MaxType, type >::LimVec(), max(), syten::LimVec< Type, max, MaxType, type >::push_back(), syten::LimVec< Type, max, MaxType, type >::resize(), restrict(), syten::T3N::Lattice::serialize(), syten::MPS::DMRG::Worker::sweepLeft(), syten::MPS::DMRG::Worker::sweepLeftTwoSite(), syten::MPS::DMRG::Worker::sweepRight(), and syten::MPS::DMRG::Worker::sweepRightTwoSite().

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