Skip to content

lu! is not In-place ? #1382

@Disatiler

Description

@Disatiler

Hello everyone,

Recently I need to do the LU factorization "in-place" for a matrix.
I know function with ! will represent the "in-place" case but the result (in type of LU) looks to not be store in the original matrix.

Here a MWE :

using LinearAlgebra

function main()
    A = rand(10, 10)
    println(A)
    lu!(A, NoPivot())
    println("LU factorization of A:")
    println(A)
end

main()

The matrix A is the same at the end.

Best regard,

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