SyTen

◆ cached_normSqd_is_valid()

template<Rank rank, typename Scalar = SDef>
bool syten::CudaDenseTensorImpl::CudaDenseTensor< rank, Scalar >::cached_normSqd_is_valid ( ) const
inline

Returns true if the cached norm is currently valid, i.e.

whether a call to normSqd() will only return the scalar value without expensive calculations.

References syten::isnan(), syten::CudaDenseTensorImpl::CudaDenseTensor< rank, Scalar >::normSqd_cache, and syten::CudaDenseTensorImpl::CudaDenseTensor< rank, Scalar >::normSqd_cache_mtx.

Referenced by syten::CudaDenseTensorImpl::isZero().

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