SIMD module

operator+

procedureextension2 overloadssince 0.31.0Source

Arithmetic. Integer lanes wrap; use saturating_add/saturating_sub to clamp instead.

operator+ :: (a: Vector($T, $N), b: Vector(T, N)) -> Vector(T, N)

Parameters

a: Vector($T, $N)
b: Vector(T, N)

Returns

Vector(T, N)
operator+ :: (a: Vector($T, $N), b: T) -> Vector(T, N)

A scalar on either side applies to every lane.

Parameters

a: Vector($T, $N)
b: T

Returns

Vector(T, N)

See also