Fix SparseQR for row-major inputs.
(grafted from f12914580cba7071edaabefe702d7838f8b021f4)

--HG--
branch : 3.2
extra : source : f12914580cba7071edaabefe702d7838f8b021f4