MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / normalizeIndexingSets

Function normalizeIndexingSets

src/compute-engine/library/utils.ts:189–193  ·  view source on GitHub ↗
(
  ops: ReadonlyArray<Expression>
)

Source from the content-addressed store, hash-verified

187 case 'NonNegativeIntegers':
188 // ℕ₀ = {0, 1, 2, 3, ...}
189 return { lower: 0, upper: MAX_ITERATION, isFinite: false };
190 case 'PositiveIntegers':
191 // ℤ⁺ = {1, 2, 3, ...}
192 return { lower: 1, upper: 1 + MAX_ITERATION, isFinite: false };
193 default:
194 // NegativeIntegers, Integers, Reals, Complexes, etc. cannot be
195 // converted to a simple forward iteration
196 return undefined;

Callers 1

reduceBigOpFunction · 0.85

Calls 2

normalizeIndexingSetFunction · 0.85
mapMethod · 0.65

Tested by

no test coverage detected