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
Some of this package works fine with Unitful values thanks to its support for Numbers.
But maybe it hasn't actually been tested with Unitful values.
Now I am trying to use it with some and hit my first issue:
M =ones(3,2) * m
L =LinearMap(M)
Matrix(L) # works fine
S =1s * L # runs, but has wrong eltypeMatrix(S) # throws
Actually it is more subtle than I thought at first. Because Unitful values are Numbers but not Real, it is using the "non-commuting" constructor rather than a ScaledMap here:
Some of this package works fine with Unitful values thanks to its support for
Number
s.But maybe it hasn't actually been tested with Unitful values.
Now I am trying to use it with some and hit my first issue:
I think the issue is here:
LinearMaps.jl/src/scaledmap.jl
Line 17 in 50f5bf9
I may know how to fix so I'll aim for a PR.
FWIW, the docstring for
promote_op
says "Due to its fragility, use ofpromote_op
should be avoided."The text was updated successfully, but these errors were encountered: