Vec.sub

Subtracts the given vector from this one.

  1. Vec!(T, size) sub(Vec!(V, size) other)
    struct Vec(T, size_t size)
    ref @nogc
    Vec!(T, size)
    sub
    (
    V
    )
    (
    Vec!(V, size) other
    )
    if (
    isNumeric!V
    )
    if (
    isNumeric!T &&
    size > 0
    )
  2. Vec!(T, size) sub(V scalar)

Parameters

other Vec!(V, size)

The vector to subtract from this one.

Return Value

Type: Vec!(T, size)

A reference to this vector, for method chaining.

Meta