vec_mul
ABSTRACT
Calculates multiplication of two vectors. In fact, if either u or v is given as a scalar, then scalar multiplfication is performed.
PARAMETERS
u | a vector of numbers (or a scalar) |
v | a vector of numbers with the same length as u (or a scalar) |
RETURN
a vector with the same length of u or v, where each entry is given by the sum of the corresponding entries in u and v
DECLARATION
func vec_mul(u,v)