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

Support for Unitful quantities?

Open lmiq opened this issue 1 year ago • 1 comments

Is this expected to work? (related to https://github.com/PainterQubits/Unitful.jl/issues/46):

julia> using LinearSolve, Unitful

julia> A = rand(3,3)u"nm"; x = rand(3)u"nm";

julia> solve(init(LinearProblem(A, x)))
ERROR: DimensionError: nm and false are not dimensionally compatible.
Stacktrace:
...

lmiq avatar Aug 04 '22 16:08 lmiq

It doesn't work right now. We'd have to specialize it or Unitful would have to fix the more fundamental issue here.

ChrisRackauckas avatar Aug 04 '22 20:08 ChrisRackauckas