CUDA.jl icon indicating copy to clipboard operation
CUDA.jl copied to clipboard

\ does not work for least squares

Open kazimuth opened this issue 5 years ago • 2 comments

Currently \ only works for square matrices. If I try to solve an overdetemined system (i.e. using least squares), it gives an error.

Example:

A = randn(Float32, 6, 5)
y = randn(Float32, 6)
A \ y # works
gpu(A) \ gpu(y) # gives DimensionMismatch("LU factored matrix A must be square!")

Ideally this should "just work" like it does for normal arrays.

kazimuth avatar Dec 12 '19 19:12 kazimuth

Any movement on this issue?

cpfiffer avatar Feb 08 '22 23:02 cpfiffer

Nobody has fixed this, no.

maleadt avatar Feb 09 '22 07:02 maleadt

Running into this too. Any hints as to where in the source code should one look to attempt to fix this?

cossio avatar Nov 26 '22 22:11 cossio

Running into this too. Any hints as to where in the source code should one look to attempt to fix this?

I think that the culprit is here.

amontoison avatar Nov 27 '22 02:11 amontoison

This seems to work now.

maleadt avatar Apr 27 '24 14:04 maleadt