Skip to content

Remove implicit pinvs of vectors #1165

@antoine-levitt

Description

@antoine-levitt

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions