Skip to content

When Matrix::try_inverse_mut() returns false #1497

Open
@SimonSapin

Description

@SimonSapin

try_inverse_mut documents:

Attempts to invert this square matrix in-place. Returns false and leaves self untouched if inversion fails.

For matrix sizes 5 and above, the implementation is:

                    let oself = self.clone_owned();
                    lu::try_invert_to(oself, self)

In turn, lu::try_invert_to(matrix, out) documents:

If matrix is not invertible, false is returned and out may contain invalid data.

So it looks like Matrix::try_inverse_mut may fail to keep its documented promise to leave self untouched

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