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
Matrix results with a single column come back as a vector (Inverse[{{2}}], RowReduce[{{1}, {2}}], ...) #2006
The cause is from_sympy_matrix in mathics/core/convert/sympy.py, which turns every matrix of shape (n, 1) into a list of its entries. That is what callers want when the matrix stands for a vector (e.g. a solution vector), but not when the result is itself a matrix. A fix probably needs the callers that want a vector to ask for it explicitly.
Found on master (4aa7411). Transpose alone is fixed in #2007, since it does not need SymPy at all.
Activity
Keep single-row and single-column matrices as matrices in Transpose (#…
rocky commentedon Oct 17, 2026
Seems fixed in by PR #2007