• Parameters

    • v: number[]

      one vector, n-dimensions

    • u: number[]

      one vector, n-dimensions

    Returns number[]

    one vector, dimension matching first parameter

    Description

    add two vectors and return the sum as another vector, do not modify the input vectors.