• v1 - ... - vM

    Component-wise subtraction of M n-dimensional vectors from a. Target is used to store the results.

    Type Parameters

    Parameters

    • a: T

      Vector with length n.

    • vectors: VectorLike[]

      Array of vectors with length n.

    • target: T = a

      Target for storing the results (Default: a)

    Returns T

    Resulting vector

    Example

    subAll([9, 9], [ [2, 3], [0, 2] ], new Array(2)); // Returns: [7, 4]
    

Generated using TypeDoc