summation

taichi_glsl.vector.summation(v)

Calculate the sum of all elements in a vector.

summation returns the sum of vector elements, i.e., v[0] + v[1] + ….

Parameters

v – Specifies the vector whose elements to sum up.

Returns

The return value is the sum of all elements in v.

See also

minimum(), maximum().