Overview
/
KCL Standard Library
/
Functions
/
vector::add

vector::addFunction in std::vector

Adds every element of u to its corresponding element in v. Both vectors must have the same length. Returns a new vector of the same length. In other words, component-wise addition.

Arguments

NameTypeDescriptionRequired
u[number]Yes
v[number]Yes

Returns

[number]

Examples