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

vector::mulFunction in std::vector

Multiplies every element of u by 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 multiplication.

Arguments

NameTypeDescriptionRequired
u[number]Yes
v[number]Yes

Returns

[number]

Examples