Vec.add

Adds the given vector to this one.

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

Parameters

other Vec!(V, size)

The vector to add to this one.

Return Value

Type: Vec!(T, size)

A reference to this vector, for method chaining.

Meta