-
Notifications
You must be signed in to change notification settings - Fork 121
Open
Description
Some linear algebra operations like \ have a hard time with unitful numbers. Take the following case:
a = [1.0u"N" 2.0u"N"
3.0u"N" 1.0u"N"]
b = [1.0u"N";3.0u"N"]If you try \ it gives a dimension error. If you try * then it uses the generic * fallback and not BLAS. The same is true if you use:
A = rand(100,100)u"N"
b = rand(100)u"N"I suggest trying something like, performing a dimensional analysis, strip the units, use the general * or \, and then re-apply units.
To do this properly, you might need a UnitfulArray instead of an array of Unitful values. I am not sure if stripping the units on an array of Unitful numbers can be done without making a temporary.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels