Synopsis
void mth_MultiplyVector(int ndim, double *a, double s, double *r)
Purpose
Multiply a vector by a scalar.
Description
Each component of the vector a will be multiplied by the scalar s. The resulting vector will be returned in r.
Input
ndim
Number of dimensions in vector
a
Vector to be multiplied by s
s
Scalar to multiply a by
Output
r
Resulting vector