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

Function kron

src/compute-engine/library/logic.ts:217–223  ·  view source on GitHub ↗
(a: Expression, b: Expression)

Source from the content-addressed store, hash-verified

215 * there is no per-cell short-circuit. This is the documented exception to the
216 * short-circuit rule: the shape of the result is decided by the operand types
217 * (`And(False, L())` with `L : () -> list<boolean>` is typed `list<boolean>`,
218 * so it must return a list, which requires `L()`), and it is what every other
219 * broadcastable operator, and the driver's own pre-evaluation broadcast (step
220 * 2 of `_computeValue`, which intercepts a LITERAL or symbol-bound collection
221 * before this handler runs and evaluates each lifted operand once), already
222 * do. Only when a collection is produced by evaluation (a call, as `u > 0`
223 * with `u` a list) does this handler see it: it then rebuilds the call over
224 * the evaluated values so the driver zips them. This also holds beside an
225 * operand that was a collection value on entry (`And(u > 0, c)` with `c` a
226 * list symbol): the driver did not map that call, because `u > 0` had no

Callers 1

logic.tsFile · 0.85

Calls 3

isSameMethod · 0.65
simplifyMethod · 0.65
subMethod · 0.65

Tested by

no test coverage detected