SyTen

◆ scale()

template<typename ScalarA , typename ScalarB >
void syten::scale ( DynArray< ScalarA > &  a,
ScalarB const  b 
)
inline

Scales all elements of a in-place by the scalar factor b.

Specialised for the combinations

Referenced by invertDiagonal(), syten::DenseProduct::one_times_many(), syten::CudaDenseTensorImpl::operator*=(), operator*=(), syten::OffsetDenseTensorImpl::operator*=(), syten::MPS::ChemHelper::tensorElem(), and syten::T3N::ChemHelper::tensorElem().

+ Here is the caller graph for this function: