math4610

Routine Name: vectorOuterProduct

Author: David Merkley

Language: Python

Description/Purpose: Multiplies the vector by the outer product

Input: two vectors

Output: the product

Implementation/Code:

def vectorOuterProduct(x, y):
    return [[xi * yj for yj in y] for xi in x]