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

BigFloat support for TwoPointBVProblem using MIRK4 #43

Closed
seadra opened this issue May 11, 2019 · 6 comments · Fixed by #202
Closed

BigFloat support for TwoPointBVProblem using MIRK4 #43

seadra opened this issue May 11, 2019 · 6 comments · Fixed by #202

Comments

@seadra
Copy link

seadra commented May 11, 2019

Using BigFloat with a TwoPointBVProblem and MIRK4 solver currently fails with the following error:

ArgumentError: matrix type SparseArrays.SparseMatrixCSC{BigFloat,Int64}not supported. Try lu(convert(SparseMatrixCSC{Float64/ComplexF64,Int}, A)) for sparse floating point LU using UMFPACK or lu(Array(A)) for generic dense LU.

@ChrisRackauckas
Copy link
Member

We probably just need to add a dependency on GenericSVD.jl

@seadra
Copy link
Author

seadra commented May 16, 2019

I naively tried using GenericSVD in my code but it didn't work, so I'm guessing that means something else :)

@avik-pal
Copy link
Member

I thought BigFloat would just work, but seems like the problem is more fundamental

julia> similar(rand(BigFloat, 2, 3))
2×3 Matrix{BigFloat}:
 #undef  #undef  #undef
 #undef  #undef  #undef

This makes all of the internal NonlinearSolve machinery fail because it often performs concatenation and such on a similared array before assigning values to it.

@ChrisRackauckas
Copy link
Member

For safety, just zero?

@avik-pal
Copy link
Member

yes probably that's the way to go, it just needs to be added at quite a few places in NonlinearSolve

@avik-pal
Copy link
Member

NonlinearSolve now supports bigfloats natively. Need to add a test for this here.

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

Successfully merging a pull request may close this issue.

3 participants