def LogicalValues

bendtorch-core@0.1.0.0 · src/tensor/reduction_LAWS.bend:7

import bendtorch-core@0.1.0.0/src/tensor/reduction_LAWS.bend as ReductionLAWS
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core

7def LogicalValues(+fuel: Nat, -shape: Shape.Shape, -tensor: Core.Tensor<shape>, +cursor: Nat,
8  values: List<&2, F32>) -> Data:
9  match fuel values:
10    case 0n Nil{}:
11      Unit
12    case 1n+tail value <> values:
13      LogicalStep<tail, shape, tensor, cursor, value, values>
14    case 0n value <> values:
15      Empty
16    case 1n+tail Nil{}:
17      Empty

Uses (8)

Used by (17)