-
-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
Description
This is breaking, so probably has to wait until 2.0. At that point, can we remove /(x::Number, v::AbstractVector)? Its (marginal) utility is outmatched by its potential for confusion for new users and subtle bugs even for more experienced coders. More generally there are two and only two places where we call pinv on vectors implicitly:
(\)(a::AbstractVector, b::AbstractArray) = pinv(a) * b
/(x::Number, v::AbstractVector) = x*pinv(v)
I think we should just remove both. Pinv of a vector is just too confusing to be called implicitly. In fact, this is even more confusing because we don't allow number / matrix or matrix \ number, although pinv of a matrix makes way more sense than pinv of a vector. The fact that nobody has bothered adding this makes me think this function won't be missed.
KristofferC, ViralBShah, oscardssmith, miguelraz, niklasschmitz and 1 more