Fork me on GitHub

src/arraymancer/tensor/operators_broadcasted_opencl

  Source Edit

Procs

proc `*.`[T: SomeFloat](a, b: ClTensor[T]): ClTensor[T] {.noinit.}

Element-wise multiplication (Hadamard product).

And broadcasted element-wise multiplication.

  Source Edit
proc `+.`[T: SomeFloat](a, b: ClTensor[T]): ClTensor[T] {.noinit, inline.}
Broadcasted addition for tensors of incompatible but broadcastable shape.   Source Edit
proc `-.`[T: SomeFloat](a, b: ClTensor[T]): ClTensor[T] {.noinit, inline.}
Broadcasted addition for tensors of incompatible but broadcastable shape.   Source Edit
proc `.*`[T](a, b: ClTensor[T]): ClTensor[T] {.noinit,
    ...deprecated: "Use `*.` instead".}
Deprecated: Use `*.` instead
  Source Edit
proc `.+`[T](a, b: ClTensor[T]): ClTensor[T] {.noinit, inline,
    ...deprecated: "Use `+.` instead".}
Deprecated: Use `+.` instead
  Source Edit
proc `.-`[T](a, b: ClTensor[T]): ClTensor[T] {.noinit, inline,
    ...deprecated: "Use `-.` instead".}
Deprecated: Use `-.` instead
  Source Edit
proc `./`[T](a, b: ClTensor[T]): ClTensor[T] {.noinit,
    ...deprecated: "Use `/.` instead".}
Deprecated: Use `/.` instead
  Source Edit
proc `/.`[T: SomeFloat](a, b: ClTensor[T]): ClTensor[T] {.noinit.}

Element-wise multiplication (Hadamard product).

And broadcasted element-wise multiplication.

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