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
Fix TypeError for nonsquare linear systems with QR factorization
Fixes#674
The issue occurred when solving nonsquare linear systems (A*u = b where A is m×n with m≠n).
On some platforms, Julia's qr function with ColumnNorm pivot returns QRPivoted with
Vector{Int32} for pivot indices, while LinearSolve's DefaultLinearSolverInit struct
expects Vector{Int64}.
This fix adds a helper function _ensure_int64_pivot that converts QRPivoted pivot
vectors from Int32 to Int64 when necessary, ensuring compatibility across all platforms.
Changes:
- Added _ensure_int64_pivot helper function to convert pivot indices to Int64
- Applied conversion in do_factorization for QRFactorization
- Applied conversion in all init_cacheval functions that return QRPivoted
- Ensured PREALLOCATED_QR_ColumnNorm uses Int64 pivot indices
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments