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

Module ufunc

Procs

proc astype[T, U](t: Tensor[T]; typ: typedesc[U]): Tensor[U] {.
noInit
.}
Apply type conversion on the whole tensor   Source Edit
proc fac(t176037: Tensor): Tensor {.
noInit
.}
  Source Edit
proc sqrt(t176097: Tensor): Tensor {.
noInit
.}
  Source Edit
proc cbrt(t176157: Tensor): Tensor {.
noInit
.}
  Source Edit
proc ln(t176217: Tensor): Tensor {.
noInit
.}
  Source Edit
proc log10(t176277: Tensor): Tensor {.
noInit
.}
  Source Edit
proc log2(t176337: Tensor): Tensor {.
noInit
.}
  Source Edit
proc exp(t176397: Tensor): Tensor {.
noInit
.}
  Source Edit
proc arccos(t176457: Tensor): Tensor {.
noInit
.}
  Source Edit
proc arcsin(t176517: Tensor): Tensor {.
noInit
.}
  Source Edit
proc arctan(t176577: Tensor): Tensor {.
noInit
.}
  Source Edit
proc cos(t176637: Tensor): Tensor {.
noInit
.}
  Source Edit
proc cosh(t176697: Tensor): Tensor {.
noInit
.}
  Source Edit
proc sinh(t176757: Tensor): Tensor {.
noInit
.}
  Source Edit
proc sin(t176817: Tensor): Tensor {.
noInit
.}
  Source Edit
proc tan(t176877: Tensor): Tensor {.
noInit
.}
  Source Edit
proc tanh(t176937: Tensor): Tensor {.
noInit
.}
  Source Edit
proc erf(t176997: Tensor): Tensor {.
noInit
.}
  Source Edit
proc erfc(t177057: Tensor): Tensor {.
noInit
.}
  Source Edit
proc lgamma(t177117: Tensor): Tensor {.
noInit
.}
  Source Edit
proc tgamma(t177177: Tensor): Tensor {.
noInit
.}
  Source Edit
proc floor(t177237: Tensor): Tensor {.
noInit
.}
  Source Edit
proc ceil(t177297: Tensor): Tensor {.
noInit
.}
  Source Edit
proc trunc(t177357: Tensor): Tensor {.
noInit
.}
  Source Edit
proc round(t177417: Tensor): Tensor {.
noInit
.}
  Source Edit
proc degToRad(t177477: Tensor): Tensor {.
noInit
.}
  Source Edit
proc radToDeg(t177537: Tensor): Tensor {.
noInit
.}
  Source Edit

Templates

template makeUniversal(func_name: untyped)

Auto-generated universal version of the function.

The function can be used directly on tensors and will work element-wise.

  Source Edit
template makeUniversalLocal(func_name: untyped)
  Source Edit