Routine Name: vectorScalarMultiply
Author: David Merkley
Language: Python
Description/Purpose: Multiplies the vector by a scalar
Input: a vector and a scalar
Output: the product
Implementation/Code:
def vectorScalarMultiply(x, a):
return [a * xi for xi in x]