Fork me on GitHub
Arraymancer Technical reference Tutorial Spellbook (How-To's) Under the hood

Module operators_broadcasted

Procs

proc `.+`[T: SomeNumber](a, b: Tensor[T]): Tensor[T] {.
noInit, inline
.}
Broadcasted addition for tensors of incompatible but broadcastable shape.   Source Edit
proc `.-`[T: SomeNumber](a, b: Tensor[T]): Tensor[T] {.
noInit, inline
.}
Broadcasted addition for tensors of incompatible but broadcastable shape.   Source Edit
proc `.*`[T: SomeNumber](a, b: Tensor[T]): Tensor[T] {.
noInit
.}

Element-wise multiplication (Hadamard product).

And broadcasted element-wise multiplication.

  Source Edit
proc `./`[T: SomeInteger](a, b: Tensor[T]): Tensor[T] {.
noInit
.}

Tensor element-wise division for integer numbers.

And broadcasted element-wise division.

  Source Edit
proc `./`[T: SomeReal](a, b: Tensor[T]): Tensor[T] {.
noInit
.}

Tensor element-wise division for real numbers.

And broadcasted element-wise division.

  Source Edit
proc `.+=`[T: SomeNumber](a: var Tensor[T]; b: Tensor[T])

Tensor broadcasted in-place addition.

Only the right hand side tensor can be broadcasted.

  Source Edit
proc `.-=`[T: SomeNumber](a: var Tensor[T]; b: Tensor[T])

Tensor broadcasted in-place substraction.

Only the right hand side tensor can be broadcasted.

  Source Edit
proc `.*=`[T: SomeNumber](a: var Tensor[T]; b: Tensor[T])

Tensor broadcasted in-place multiplication (Hadamard product)

Only the right hand side tensor can be broadcasted

  Source Edit
proc `./=`[T: SomeInteger](a: var Tensor[T]; b: Tensor[T])

Tensor broadcasted in-place integer division.

Only the right hand side tensor can be broadcasted.

  Source Edit
proc `./=`[T: SomeReal](a: var Tensor[T]; b: Tensor[T])

Tensor broadcasted in-place float division.

Only the right hand side tensor can be broadcasted.

  Source Edit
proc `.+`[T: SomeNumber](val: T; t: Tensor[T]): Tensor[T] {.
noInit
.}
Broadcasted addition for tensor + scalar.   Source Edit
proc `.+`[T: SomeNumber](t: Tensor[T]; val: T): Tensor[T] {.
noInit
.}
Broadcasted addition for scalar + tensor.   Source Edit
proc `.-`[T: SomeNumber](val: T; t: Tensor[T]): Tensor[T] {.
noInit
.}
Broadcasted substraction for tensor - scalar.   Source Edit
proc `.-`[T: SomeNumber](t: Tensor[T]; val: T): Tensor[T] {.
noInit
.}
Broadcasted substraction for scalar - tensor.   Source Edit
proc `./`[T: SomeInteger](val: T; t: Tensor[T]): Tensor[T] {.
noInit
.}
Broadcasted division of an integer by a tensor of integers.   Source Edit
proc `./`[T: SomeReal](val: T; t: Tensor[T]): Tensor[T] {.
noInit
.}
Broadcasted division of a float by a tensor of floats.   Source Edit
proc `.^`[T: SomeReal](t: Tensor[T]; exponent: T): Tensor[T] {.
noInit
.}
Compute element-wise exponentiation   Source Edit
proc `.+=`[T: SomeNumber](t: var Tensor[T]; val: T)
Tensor in-place addition with a broadcasted scalar.   Source Edit
proc `.-=`[T: SomeNumber](t: var Tensor[T]; val: T)
Tensor in-place substraction with a broadcasted scalar.   Source Edit
proc `.^=`[T: SomeReal](t: var Tensor[T]; exponent: T)
Compute in-place element-wise exponentiation   Source Edit