SyTen

◆ addScaled() [4/4]

template<Rank rank>
void syten::addScaled ( Tensor< rank > &  a,
Tensor< rank > const &  b,
SDef const  s 
)
inline

Adds the tensor b, scaled by the scalar prefactor s to the tensor a, essentially a fused-multiply-add for Tensor.

References syten::Tensor< rank >::push_back(), syten::Tensor< rank >::reduce(), syten::Tensor< rank >::reserve(), and syten::Tensor< rank >::size().

+ Here is the call graph for this function: