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

operators_broadcasted_cuda

Procs

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

Element-wise multiplication (Hadamard product).

And broadcasted element-wise multiplication.

  Source Edit
proc `./`[T: SomeFloat](a, b: CudaTensor[T]): CudaTensor[T] {...}{.noInit.}
CudaTensor substraction   Source Edit
proc `.+=`[T: SomeFloat](a: var CudaTensor[T]; b: CudaTensor[T])

Tensor broadcasted in-place addition.

Only the right hand side tensor can be broadcasted.

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

Tensor broadcasted in-place substraction.

Only the right hand side tensor can be broadcasted.

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

Tensor broadcasted in-place multiplication (Hadamard product)

Only the right hand side tensor can be broadcasted

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

Tensor broadcasted in-place float division.

Only the right hand side tensor can be broadcasted.

  Source Edit
proc `.+`[T: SomeFloat](t: CudaTensor[T]; val: T): CudaTensor[T] {...}{.noInit.}
Broadcasted addition for scalar + tensor.   Source Edit
proc `.-`[T: SomeFloat](t: CudaTensor[T]; val: T): CudaTensor[T] {...}{.noInit.}
Broadcasted substraction for scalar - tensor.   Source Edit
proc `.+`[T: SomeFloat](val: T; t: CudaTensor[T]): CudaTensor[T] {...}{.noInit.}
Broadcasted addition for tensor + scalar.   Source Edit
proc `.-`[T: SomeFloat](val: T; t: CudaTensor[T]): CudaTensor[T] {...}{.noInit.}
Broadcasted substraction for tensor - scalar.   Source Edit
proc `./`[T: SomeFloat](val: T; t: CudaTensor[T]): CudaTensor[T] {...}{.noInit.}
Broadcasted division of a float by a tensor of floats.   Source Edit
proc `.+=`[T: SomeFloat](t: var CudaTensor[T]; val: T)
Broadcasted addition for scalar + tensor.   Source Edit
proc `.-=`[T: SomeFloat](t: var CudaTensor[T]; val: T)
Broadcasted substraction for scalar - tensor.   Source Edit