Vec.sub

Subtracts the given scalar value from this vector.

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

Parameters

scalar V

The scalar value to subtract from this vector.

Return Value

Type: Vec!(T, size)

A reference to this vector.

Meta