Synopsis
PDX_MSGT mth_DivideVector(int ndim, double *a, double s, double *r)
Purpose
Divide a vector by a scalar.
Description
Each component of the vector a will be divided by the scalar s. The resulting vector will be returned in r. If s is specified such that s < MTH_ZERO_TOL (from mth_Interface.h), an error of MTH_ZERO_ARG will be returned.
Input
ndim
Number of dimensions in vector
a
Vector to be divided by s
s
Scalar to divide a by
Output
r
Resulting vector
Return
MTH_ZERO_ARG - If s < MTH_ZERO_TOL