Vec.sum

Computes the sum of a given array of vectors.

struct Vec(T, size_t size)
static @nogc
MY_TYPE
sum
(
MY_TYPE[] vectors
)
if (
isNumeric!T &&
size > 0
)

Parameters

vectors MY_TYPE[]

The list of vectors to compute the sum of.

Return Value

Type: MY_TYPE

The sum of all vectors.

Meta