Skip to content

sum

float  sum(float n)

int  sum(int n)

Returns the argument.

float  sum(<vector>v)

Returns the sum of the vector’s components.

float  sum(matrix2 m)

float  sum(matrix3 m)

float  sum(matrix m)

Returns the sum of the matrix’s components.

int  sum(int nums[])

float  sum(float nums[])

Returns the sum of the items of the array.

<vector> sum(<vector>arr[])

Returns a vector where the components are the sums of the corresponding components in the vectors in the array.

matrix2  sum(matrix2 arr[])

matrix3  sum(matrix3 arr[])

matrix  sum(matrix arr[])

Returns a matrix where the components are the sums of the corresponding components in the matrices in the array.