Fork me on GitHub

src/arraymancer/tensor/operators_broadcasted

Search:
Group by:
  Source Edit

Procs

proc `*.`[T: SomeNumber | Complex[float32] | Complex[float64]](a, b: Tensor[T]): Tensor[
    T] {.noinit.}

Element-wise multiplication (Hadamard product).

And broadcasted element-wise multiplication.

  Source Edit
proc `*.`[T: SomeNumber | Complex[float32] | Complex[float64]](t: Tensor[T];
    val: T): Tensor[T] {.noinit.}
Broadcasted multiplication for scalar * tensor of the same type.   Source Edit
proc `*.`[T: SomeNumber | Complex[float32] | Complex[float64]](val: T;
    t: Tensor[T]): Tensor[T] {.noinit.}
Broadcasted multiplication for tensor * scalar of the same type.   Source Edit
proc `*.`[T: SomeNumber](t: Tensor[Complex64]; val: T): Tensor[Complex64] {.
    noinit, inline.}

Broadcasted multiplication for real scalar * Complex64 tensor

The scalar is automatically converted to Complex64 before the operation.

  Source Edit
proc `*.`[T: SomeNumber](val: T; t: Tensor[Complex64]): Tensor[Complex64] {.
    noinit, inline.}

Broadcasted multiplication for real scalar * Complex64 tensor

The scalar is automatically converted to Complex64 before the operation.

  Source Edit
proc `*.=`[T: SomeNumber | Complex[float32] | Complex[float64]](
    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: SomeNumber | Complex[float32] | Complex[float64]](
    t: var Tensor[T]; val: T)
Tensor in-place multiplication with a broadcasted scalar.   Source Edit
proc `*.=`[T: SomeNumber](t: var Tensor[Complex64]; val: T) {.inline.}

Complex64 tensor in-place multiplication with a real scalar.

The scalar is automatically converted to Complex64 before the operation.

  Source Edit
proc `+.`[T: SomeNumber | Complex[float32] | Complex[float64]](a, b: Tensor[T]): Tensor[
    T] {.noinit, inline.}
Broadcasted addition for tensors of incompatible but broadcastable shape.   Source Edit
proc `+.`[T: SomeNumber | Complex[float32] | Complex[float64]](t: Tensor[T];
    val: T): Tensor[T] {.noinit.}
Broadcasted addition for scalar + tensor of the same type.   Source Edit
proc `+.`[T: SomeNumber | Complex[float32] | Complex[float64]](val: T;
    t: Tensor[T]): Tensor[T] {.noinit.}
Broadcasted addition for tensor + scalar of the same type.   Source Edit
proc `+.`[T: SomeNumber](t: Tensor[Complex64]; val: T): Tensor[Complex64] {.
    noinit, inline.}

Broadcasted addition for real scalar + Complex64 tensor

The scalar is automatically converted to Complex64 before the operation.

  Source Edit
proc `+.`[T: SomeNumber](val: T; t: Tensor[Complex64]): Tensor[Complex64] {.
    noinit, inline.}

Broadcasted addition for real scalar + Complex64 tensor

The scalar is automatically converted to Complex64 before the operation.

  Source Edit
proc `+.=`[T: SomeNumber | Complex[float32] | Complex[float64]](
    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 | Complex[float32] | Complex[float64]](
    t: var Tensor[T]; val: T)
Tensor in-place addition with a broadcasted scalar.   Source Edit
proc `+.=`[T: SomeNumber](t: var Tensor[Complex64]; val: T) {.inline.}

Complex64 tensor in-place addition with a real scalar.

The scalar is automatically converted to Complex64 before the operation.

  Source Edit
proc `-.`[T: SomeNumber | Complex[float32] | Complex[float64]](a, b: Tensor[T]): Tensor[
    T] {.noinit, inline.}
Broadcasted addition for tensors of incompatible but broadcastable shape.   Source Edit
proc `-.`[T: SomeNumber | Complex[float32] | Complex[float64]](t: Tensor[T];
    val: T): Tensor[T] {.noinit.}
Broadcasted substraction for scalar - tensor of the same type.   Source Edit
proc `-.`[T: SomeNumber | Complex[float32] | Complex[float64]](val: T;
    t: Tensor[T]): Tensor[T] {.noinit.}
Broadcasted substraction for tensor - scalar of the same type.   Source Edit
proc `-.`[T: SomeNumber](t: Tensor[Complex64]; val: T): Tensor[Complex64] {.
    noinit, inline.}

Broadcasted subtraction for real scalar - Complex64 tensor

The scalar is automatically converted to Complex64 before the operation.

  Source Edit
proc `-.`[T: SomeNumber](val: T; t: Tensor[Complex64]): Tensor[Complex64] {.
    noinit, inline.}

Broadcasted subtraction for real scalar - Complex64 tensor

The scalar is automatically converted to Complex64 before the operation.

  Source Edit
proc `-.=`[T: SomeNumber | Complex[float32] | Complex[float64]](
    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 | Complex[float32] | Complex[float64]](
    t: var Tensor[T]; val: T)
Tensor in-place substraction with a broadcasted scalar.   Source Edit
proc `-.=`[T: SomeNumber](t: var Tensor[Complex64]; val: T) {.inline.}

Complex64 tensor in-place subtraction of a real scalar.

The scalar is automatically converted to Complex64 before the operation.

  Source Edit
proc `.*`[T](a, b: Tensor[T]): Tensor[T] {.noinit,
    ...deprecated: "Use `*.` instead".}
Deprecated: Use `*.` instead
  Source Edit
proc `.*`[T](t: Tensor[Complex64]; val: T): Tensor[Complex64] {.noinit, inline,
    ...deprecated: "Use `*.` instead".}
Deprecated: Use `*.` instead
  Source Edit
proc `.*`[T](t: Tensor[T]; val: T): Tensor[T] {.noinit,
    ...deprecated: "Use `*.` instead".}
Deprecated: Use `*.` instead
  Source Edit
proc `.*`[T](val: T; t: Tensor[Complex64]): Tensor[Complex64] {.noinit, inline,
    ...deprecated: "Use `*.` instead".}
Deprecated: Use `*.` instead
  Source Edit
proc `.*`[T](val: T; t: Tensor[T]): Tensor[T] {.noinit,
    ...deprecated: "Use `*.` instead".}
Deprecated: Use `*.` instead
  Source Edit
proc `.+`[T](a, b: Tensor[T]): Tensor[T] {.noinit, inline,
    ...deprecated: "Use `+.` instead".}
Deprecated: Use `+.` instead
  Source Edit
proc `.+`[T](t: Tensor[Complex64]; val: T): Tensor[Complex64] {.noinit, inline,
    ...deprecated: "Use `+.` instead".}
Deprecated: Use `+.` instead
  Source Edit
proc `.+`[T](t: Tensor[T]; val: T): Tensor[T] {.noinit,
    ...deprecated: "Use `+.` instead".}
Deprecated: Use `+.` instead
  Source Edit
proc `.+`[T](val: T; t: Tensor[Complex64]): Tensor[Complex64] {.noinit, inline,
    ...deprecated: "Use `+.` instead".}
Deprecated: Use `+.` instead
  Source Edit
proc `.+`[T](val: T; t: Tensor[T]): Tensor[T] {.noinit,
    ...deprecated: "Use `+.` instead".}
Deprecated: Use `+.` instead
  Source Edit
proc `.-`[T](a, b: Tensor[T]): Tensor[T] {.noinit, inline,
    ...deprecated: "Use `-.` instead".}
Deprecated: Use `-.` instead
  Source Edit
proc `.-`[T](t: Tensor[Complex64]; val: T): Tensor[Complex64] {.noinit, inline,
    ...deprecated: "Use `-.` instead".}
Deprecated: Use `-.` instead
  Source Edit
proc `.-`[T](t: Tensor[T]; val: T): Tensor[T] {.noinit,
    ...deprecated: "Use `-.` instead".}
Deprecated: Use `-.` instead
  Source Edit
proc `.-`[T](val: T; t: Tensor[Complex64]): Tensor[Complex64] {.noinit, inline,
    ...deprecated: "Use `-.` instead".}
Deprecated: Use `-.` instead
  Source Edit
proc `.-`[T](val: T; t: Tensor[T]): Tensor[T] {.noinit,
    ...deprecated: "Use `-.` instead".}
Deprecated: Use `-.` instead
  Source Edit
proc `./`[T](a, b: Tensor[T]): Tensor[T] {.noinit,
    ...deprecated: "Use `/.` instead".}
Deprecated: Use `/.` instead
  Source Edit
proc `./`[T](t: Tensor[Complex64]; val: T): Tensor[Complex64] {.noinit, inline,
    ...deprecated: "Use `/.` instead".}
Deprecated: Use `/.` instead
  Source Edit
proc `./`[T](t: Tensor[T]; val: T): Tensor[T] {.noinit,
    ...deprecated: "Use `/.` instead".}
Deprecated: Use `/.` instead
  Source Edit
proc `./`[T](val: T; t: Tensor[Complex64]): Tensor[Complex64] {.noinit, inline,
    ...deprecated: "Use `/.` instead".}
Deprecated: Use `/.` instead
  Source Edit
proc `./`[T](val: T; t: Tensor[T]): Tensor[T] {.noinit,
    ...deprecated: "Use `/.` instead".}
Deprecated: Use `/.` instead
  Source Edit
proc `.=*`[T](t: var Tensor[Complex64]; val: T) {.inline,
    ...deprecated: "Use `*.=` instead".}
Deprecated: Use `*.=` instead
  Source Edit
proc `.=+`[T](t: var Tensor[Complex64]; val: T) {.inline,
    ...deprecated: "Use `+.=` instead".}
Deprecated: Use `+.=` instead
  Source Edit
proc `.=-`[T](t: var Tensor[Complex64]; val: T) {.inline,
    ...deprecated: "Use `-.=` instead".}
Deprecated: Use `-.=` instead
  Source Edit
proc `.=/`[T](t: var Tensor[Complex64]; val: T) {.inline,
    ...deprecated: "Use `/.=` instead".}
Deprecated: Use `/.=` instead
  Source Edit
proc `.^`[T](base: T; t: Tensor[T]): Tensor[T] {.noinit,
    ...deprecated: "Use `^.` instead".}
Deprecated: Use `^.` instead
  Source Edit
proc `.^`[T](t: Tensor[Complex64]; val: T): Tensor[Complex64] {.noinit, inline,
    ...deprecated: "Use `^.` instead".}
Deprecated: Use `^.` instead
  Source Edit
proc `.^`[T](t: Tensor[T]; exponent: T): Tensor[T] {.noinit,
    ...deprecated: "Use `^.` instead".}
Deprecated: Use `^.` instead
  Source Edit
proc `.^`[T](val: T; t: Tensor[Complex64]): Tensor[Complex64] {.noinit, inline,
    ...deprecated: "Use `^.` instead".}
Deprecated: Use `^.` instead
  Source Edit
proc `.^=`[T](t: var Tensor[Complex64]; val: T) {.inline,
    ...deprecated: "Use `^.=` instead".}
Deprecated: Use `^.=` instead
  Source Edit
proc `/.`[T: SomeNumber | Complex[float32] | Complex[float64]](a, b: Tensor[T]): Tensor[
    T] {.noinit.}

Tensor element-wise division

And broadcasted element-wise division.

  Source Edit
proc `/.`[T: SomeNumber | Complex[float32] | Complex[float64]](t: Tensor[T];
    val: T): Tensor[T] {.noinit.}
Broadcasted division for tensor / scalar of the same type.   Source Edit
proc `/.`[T: SomeNumber | Complex[float32] | Complex[float64]](val: T;
    t: Tensor[T]): Tensor[T] {.noinit.}
Broadcasted division for scalar / tensor of the same type.   Source Edit
proc `/.`[T: SomeNumber](t: Tensor[Complex64]; val: T): Tensor[Complex64] {.
    noinit, inline.}

Broadcasted division for real scalar / Complex64 tensor

The scalar is automatically converted to Complex64 before the operation.

  Source Edit
proc `/.`[T: SomeNumber](val: T; t: Tensor[Complex64]): Tensor[Complex64] {.
    noinit, inline.}

Broadcasted division for real scalar / Complex64 tensor

The scalar is automatically converted to Complex64 before the operation.

  Source Edit
proc `/.=`[T: SomeNumber | Complex[float32] | Complex[float64]](
    a: var Tensor[T]; b: Tensor[T])

Tensor broadcasted in-place division.

Only the right hand side tensor can be broadcasted.

  Source Edit
proc `/.=`[T: SomeNumber | Complex[float32] | Complex[float64]](
    t: var Tensor[T]; val: T)
Tensor in-place division with a broadcasted scalar.   Source Edit
proc `/.=`[T: SomeNumber](t: var Tensor[Complex64]; val: T) {.inline.}

Complex64 tensor in-place division by a real scalar.

The scalar is automatically converted to Complex64 before the operation.

  Source Edit
proc `^.`[T: SomeFloat | Complex[float32] | Complex[float64]](base: T;
    t: Tensor[T]): Tensor[T] {.noinit.}
Broadcasted exponentiation: scalar ^ tensor of the same type.   Source Edit
proc `^.`[T: SomeFloat | Complex[float32] | Complex[float64]](t: Tensor[T];
    exponent: T): Tensor[T] {.noinit.}
Compute element-wise exponentiation: tensor ^ scalar of the same type.   Source Edit
proc `^.`[T: SomeNumber](t: Tensor[Complex64]; val: T): Tensor[Complex64] {.
    noinit, inline.}

Broadcasted exponentiation for real scalar ^ Complex64 tensor

The scalar is automatically converted to Complex64 before the operation.

  Source Edit
proc `^.`[T: SomeNumber](val: T; t: Tensor[Complex64]): Tensor[Complex64] {.
    noinit, inline.}

Broadcasted exponentiation for real scalar ^ Complex64 tensor

The scalar is automatically converted to Complex64 before the operation.

  Source Edit
proc `^.=`[T: SomeFloat | Complex[float32] | Complex[float64]](t: var Tensor[T];
    exponent: T)
Compute in-place element-wise exponentiation   Source Edit
proc `^.=`[T: SomeNumber](t: var Tensor[Complex64]; val: T) {.inline.}

Complex64 tensor in-place exponentiation by a real scalar.

The scalar is automatically converted to Complex64 before the operation.

  Source Edit
proc `mod`[T: SomeNumber](a, b: Tensor[T]): Tensor[T] {.noinit.}

Tensor element-wise modulo operation

And broadcasted element-wise modulo operation.

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