You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0f3df21
Browse filesBrowse the repository at this point in the historyBrowse files
A scalar over a matrix argument is not compiled (#2289)
Compiled, x / A with a matrix argument A divided x by every element:
[[2, 1], [0.667, 0.5]] for 2 / [[1, 2], [3, 4]], where evaluation takes
a scalar over a matrix as the scalar times the inverse, [[-4, 2],
[3, -1]]. The inverse is not compiled, as a negative matrix power is
not, so the quotient is now refused with UncompilableNodeException. A
matrix written into the expression is inverted before it is compiled,
and that is unchanged. DivideFromScalar stays public, for what it says
it is, and the compiler no longer uses it.
AScalarOverAMatrixArgumentTest takes the refusal, which fails on
master, a matrix argument over a scalar and a written matrix inverted,
which pass on both. The suite, the trio, F#, AOT and the eight
harnesses pass.
Fixes#2287.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
0 commit comments