VRdScale


Routine

void VRdScale (double a, const double x[], double y[], int N)

Purpose

Multiply each element of a double array by a scalar value

Description

This routine multiplies each element of a double array by a scalar value,
  y[i] = a * x[i],  0 <= i < N.

Parameters

-> double a
A scalar value
-> const double x[]
Input array (N elements)
<- double y[]
Output array (N elements). The output array can be the same as the input array.
-> int N
Number of elements in the arrays (may be zero).

Author / revision

P. Kabal / Revision 1.3 2003/05/09


Main Index libtsp