File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ function matrix_normal_form_type(R::Ring)
9797end
9898
9999matrix_normal_form_type (:: Field ) = RREFTrait ()
100- matrix_normal_form_type (:: Matrix{Rational{BigInt}} ) = FFLUTrait ()
101100
102101# The fflu approach is the fastest over a fraction field (see benchmarks on PR 661)
103102matrix_normal_form_type (:: FracField ) = FFLUTrait ()
Original file line number Diff line number Diff line change 5858function AbstractAlgebra. can_solve_with_solution (M:: MatRingElem{T} , B:: MatRingElem{T} ) where {T <: RingElement }
5959 check_parent (M, B)
6060 R = base_ring (M)
61- MS = MatSpaceElem {T} (R, M. entries) # convert to ordinary matrix
62- BS = MatSpaceElem {T} (R, B. entries)
61+ # TODO : Once #1955 is resolved, the conversion to matrix and back to MatRingElem
62+ # should be done better
63+ MS = matrix (R, M. entries) # convert to ordinary matrix
64+ BS = matrix (R, B. entries)
6365 flag, S = can_solve_with_solution (MS, BS)
64- SA = MatRingElem {T} (R, S . entries )
66+ SA = MatRingElem {T} (R, Array (S) )
6567 return flag, SA
6668end
6769
You can’t perform that action at this time.
0 commit comments