Skip to content

lu(A, Val{false}) should be lu(A, pivot=false) #476

@stevengj

Description

@stevengj

I use the unpivoted lu function a lot in teaching linear algebra, because its results are more easily compared to hand calculations (where you rarely permute rows), and it is continually annoying to me that you do this by passing Val{false} as the second argument — I feel like I'm exposing an ugly internal. Can't we changed this to a pivot=false keyword?

LU factorization is a fairly expensive operation, so I am mystified by why we would care about dispatch performance here. Surely the cost of a runtime branch is negligible?

cc @andreasnoack

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions