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

Function unwrap

src/compute-engine/interval/util.ts:186–196  ·  view source on GitHub ↗
(input: Interval | IntervalResult)

Source from the content-addressed store, hash-verified

184}
185
186/**
187 * Check if an interval is entirely non-negative (lo >= 0).
188 */
189export function isNonNegative(x: Interval): boolean {
190 return x.lo >= 0;
191}
192
193/**
194 * Check if an interval is entirely non-positive (hi <= 0).
195 */
196export function isNonPositive(x: Interval): boolean {
197 return x.hi <= 0;
198}
199

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected