SyTen

◆ addScaled() [1/4]

template<Rank rank, typename Scalar >
void syten::addScaled ( DenseTensor< rank, Scalar > &  a,
DenseTensor< rank, Scalar > const &  b,
typename IdentityType< Scalar >::type const  factor,
EliminateZeros const  ezeros 
)
inline

\( A_i \leftarrow A_i + f B_i \), adds b scaled by factor to a, if ezeros = EliminateZeros::Yes, eliminates resulting near-zeros.

References abs(), addScaled(), syten::DenseTensor< rank, Scalar >::dims, syten::DenseTensor< rank, Scalar >::get_data(), syten::DenseTensor< rank, Scalar >::size(), SYTEN_ASSERT, SYTEN_EZERO_THRESHOLD, and underThreshold().

Referenced by syten::Cuda::addScaled(), addScaled(), syten::OffsetDenseTensorImpl::addScaled(), checkedAddParallel(), and orthogonalise_arithmetic_imp().

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