Leaklens

sympy__sympy-17022

Lambdify misinterprets some matrix expressions

Verdict: the fix is stated in the issue (Tier A).

If the shape is an explicit number, we can just print `eye(n)`. For unknown shape, it's harder. We can raise an exception for now. It's better to raise an exception than give a wrong answer.

The text states the fix: “If the shape is an explicit number, we can just print `eye(n)`. For unknown shape, it's harder. We can raise an exception for now. It's better to raise an exception than…”

All SWE-bench Lite tasks · more sympy/sympy tasks · How the check works