Fork me on GitHub

src/arraymancer/tensor/operators_logical

Search:
Group by:
  Source Edit

Procs

proc `and`(a, b: Tensor[bool]): Tensor[bool] {.noinit, ...raises: [ValueError],
    tags: [], forbids: [].}

Tensor element-wise boolean and.

Returns:

  • A tensor of boolean
  Source Edit
proc `not`(a: Tensor[bool]): Tensor[bool] {.noinit, ...raises: [], tags: [],
    forbids: [].}

Tensor element-wise boolean and.

Returns:

  • A tensor of boolean
  Source Edit
proc `or`(a, b: Tensor[bool]): Tensor[bool] {.noinit, ...raises: [ValueError],
    tags: [], forbids: [].}

Tensor element-wise boolean or.

Returns:

  • A tensor of boolean
  Source Edit
proc `xor`(a, b: Tensor[bool]): Tensor[bool] {.noinit, ...raises: [ValueError],
    tags: [], forbids: [].}

Tensor element-wise boolean xor.

Returns:

  • A tensor of boolean
  Source Edit
Arraymancer Technical reference Tutorial Spellbook (How-To's) Under the hood