Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimisation of getproperty for UmfpackLU object #40663

Merged
merged 1 commit into from
May 3, 2021

Conversation

cfauchereau
Copy link
Contributor

Fix JuliaLang/LinearAlgebra.jl#827
When calling getpropertyon an UmfpackLU object only the requested information is copied in the call to umfpack_*_get_numeric.
It is faster and more memory efficient.

@dkarrasch dkarrasch added linear algebra Linear algebra performance Must go faster sparse Sparse arrays needs tests Unit tests are required for this change labels Apr 29, 2021
@dkarrasch
Copy link
Member

This needs some tests, but otherwise looks great.

@cfauchereau cfauchereau force-pushed the umfpack_getproperty_optim branch from f635263 to 0fbbb20 Compare April 30, 2021 14:58
@cfauchereau
Copy link
Contributor Author

I added tests to assess that accessing elements individually works as intended. I am not sure what else there is to test, let me know if you see something that is not covered.

Copy link
Member

@dkarrasch dkarrasch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A blind comment for quick consideration.

stdlib/SuiteSparse/src/umfpack.jl Show resolved Hide resolved
@dkarrasch dkarrasch removed the needs tests Unit tests are required for this change label Apr 30, 2021
Copy link
Member

@dkarrasch dkarrasch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's get rid of umf_extract. 😛

stdlib/SuiteSparse/src/umfpack.jl Outdated Show resolved Hide resolved
stdlib/SuiteSparse/src/umfpack.jl Outdated Show resolved Hide resolved
@cfauchereau cfauchereau force-pushed the umfpack_getproperty_optim branch from 0fbbb20 to 0fb5d6f Compare May 1, 2021 16:11
Copy link
Member

@dkarrasch dkarrasch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since tests pass I assume all the little details are correct.

@cfauchereau
Copy link
Contributor Author

I think it's ready.

@ViralBShah
Copy link
Member

Since tests pass I assume all the little details are correct.

That's what I feel too.

@ViralBShah ViralBShah merged commit d22c304 into JuliaLang:master May 3, 2021
@cfauchereau cfauchereau deleted the umfpack_getproperty_optim branch May 3, 2021 07:11
ElOceanografo pushed a commit to ElOceanografo/julia that referenced this pull request May 4, 2021
ElOceanografo added a commit to ElOceanografo/julia that referenced this pull request May 4, 2021
jarlebring pushed a commit to jarlebring/julia that referenced this pull request May 4, 2021
jarlebring pushed a commit to jarlebring/julia that referenced this pull request May 6, 2021
antoine-levitt pushed a commit to antoine-levitt/julia that referenced this pull request May 9, 2021
johanmon pushed a commit to johanmon/julia that referenced this pull request Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear algebra Linear algebra performance Must go faster sparse Sparse arrays
Projects
None yet
Development

Successfully merging this pull request may close these issues.

getproperty for SuiteSparse.UMFPACK.UmfpackLU always extracts all fields
3 participants