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

Implicit promotion from F32 to F64 #9

Closed
mzy2240 opened this issue Nov 14, 2022 · 2 comments
Closed

Implicit promotion from F32 to F64 #9

mzy2240 opened this issue Nov 14, 2022 · 2 comments

Comments

@mzy2240
Copy link

mzy2240 commented Nov 14, 2022

factor = klu(A);

When A is a sparse matrix of Float32 type, feeding into klu will result in a Float64 factorized matrix. Is it possible to stick to Float32 for the whole symbolic and numerical factorization process?

@rayegun
Copy link
Member

rayegun commented Nov 14, 2022

No, unfortunately Float64 and ComplexF64 are the only supported numeric types. See Section 5 of https://fossies.org/linux/SuiteSparse/KLU/Doc/KLU_UserGuide.pdf. I'll have a port of KLU to Julia native out as soon as I find time to polish it. Which will support any numeric type.

I'll leave this open for now to remind me to ping here when I release the port.

@mzy2240
Copy link
Author

mzy2240 commented Nov 14, 2022

Did not aware that KLU only supports double. Sorry for the unreasonable request and definitely looking forward to the Julia native implementation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants