SyTen

◆ assignAdd()

template<Rank rank, typename Scalar = CDef>
void syten::SparseTensor< rank, Scalar >::assignAdd ( Coord  coordinates,
Scalar  val 
)
inline

Adds a value at a point to the tensor if the supplied value is larger than SYTEN_ZERO_THRESHOLD.

Parameters
coordinatesIndices of the value
valvalue to add

Either adds val to an existing element or creates a new element.

References syten::SparseTensor< rank, Scalar >::normSquaredVld, syten::overThreshold(), and SYTEN_ZERO_THRESHOLD.

+ Here is the call graph for this function: