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

Module operators_logical

Search:
Group by:

Procs

proc `and`(a, b: Tensor[bool]): Tensor[bool] {.
noInit, raises: [ValueError, IndexError], tags: []
.}
Tensor element-wise boolean and.
Returns:
  • A tensor of boolean
  Source Edit
proc `or`(a, b: Tensor[bool]): Tensor[bool] {.
noInit, raises: [ValueError, IndexError], tags: []
.}
Tensor element-wise boolean or.
Returns:
  • A tensor of boolean
  Source Edit
proc `xor`(a, b: Tensor[bool]): Tensor[bool] {.
noInit, raises: [ValueError, IndexError], tags: []
.}
Tensor element-wise boolean xor.
Returns:
  • A tensor of boolean
  Source Edit
proc `not`(a: Tensor[bool]): Tensor[bool] {.
noInit, raises: [IndexError], tags: []
.}
Tensor element-wise boolean and.
Returns:
  • A tensor of boolean
  Source Edit