Fork me on GitHub

src/arraymancer/tensor/operators_broadcasted_cuda

  Source Edit

Procs

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: 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, b: CudaTensor[T]): CudaTensor[T] {.noinit, inline.}
Broadcasted addition for tensors of incompatible but broadcastable shape.   Source Edit
proc `+.`[T: SomeFloat](t: CudaTensor[T]; val: T): CudaTensor[T] {.noinit.}
Broadcasted addition 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](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](t: var CudaTensor[T]; val: T)
Broadcasted addition for scalar + tensor.   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](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 substraction for tensor - scalar.   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](t: var CudaTensor[T]; val: T)
Broadcasted substraction for scalar - tensor.   Source Edit
proc `.*`[T](a, b: CudaTensor[T]): CudaTensor[T] {.noinit,
    ...deprecated: "Use `*.` instead".}
Deprecated: Use `*.` instead
  Source Edit
proc `.+`[T](a, b: CudaTensor[T]): CudaTensor[T] {.noinit, inline,
    ...deprecated: "Use `+.` instead".}
Deprecated: Use `+.` instead
  Source Edit
proc `.-`[T](a, b: CudaTensor[T]): CudaTensor[T] {.noinit, inline,
    ...deprecated: "Use `-.` instead".}
Deprecated: Use `-.` instead
  Source Edit
proc `./`[T](a, b: CudaTensor[T]): CudaTensor[T] {.noinit,
    ...deprecated: "Use `/.` instead".}
Deprecated: Use `/.` instead
  Source Edit
proc `.=*`[T](a: var CudaTensor[T]; b: CudaTensor[T]) {.
    ...deprecated: "Use `*.=` instead".}
Deprecated: Use `*.=` instead
  Source Edit
proc `.=+`[T](a: var CudaTensor[T]; b: CudaTensor[T]) {.
    ...deprecated: "Use `+.=` instead".}
Deprecated: Use `+.=` instead
  Source Edit
proc `.=-`[T](a: var CudaTensor[T]; b: CudaTensor[T]) {.
    ...deprecated: "Use `-.=` instead".}
Deprecated: Use `-.=` instead
  Source Edit
proc `.=/`[T](a: var CudaTensor[T]; b: CudaTensor[T]) {.
    ...deprecated: "Use `/.=` instead".}
Deprecated: Use `/.=` instead
  Source Edit
proc `/.`[T: SomeFloat](a, b: CudaTensor[T]): CudaTensor[T] {.noinit.}
CudaTensor substraction   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](a: var CudaTensor[T]; b: CudaTensor[T])

Tensor broadcasted in-place float division.

Only the right hand side tensor can be broadcasted.

  Source Edit
Arraymancer Technical reference Tutorial Spellbook (How-To's) Under the hood