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

ArbMatrix(rand(BigFloat, 5,5)) #83

Closed
kalmarek opened this issue Oct 28, 2020 · 2 comments
Closed

ArbMatrix(rand(BigFloat, 5,5)) #83

kalmarek opened this issue Oct 28, 2020 · 2 comments
Milestone

Comments

@kalmarek
Copy link
Owner

fails due to missing set! method

ERROR: MethodError: no method matching set!(::Ptr{Arblib.arb_struct}, ::BigFloat)
Closest candidates are:
  set!(::ArbLike, ::Rational) at /home/kalmar/.julia/dev/Arblib/src/constructors.jl:153
  set!(::ArfLike, ::BigFloat) at /home/kalmar/.julia/dev/Arblib/src/arbcall.jl:294
  set!(::ArbLike, ::ArbLike) at /home/kalmar/.julia/dev/Arblib/src/arbcall.jl:294
  ...
Stacktrace:
 [1] setindex!(::Arblib.arb_mat_struct, ::BigFloat, ::Int64, ::Int64) at /home/kalmar/.julia/dev/Arblib/src/matrix.jl:41
 [2] setindex! at /home/kalmar/.julia/dev/Arblib/src/matrix.jl:49 [inlined]
 [3] ArbMatrix(::Array{BigFloat,2}; prec::Int64) at /home/kalmar/.julia/dev/Arblib/src/matrix.jl:114
 [4] ArbMatrix(::Array{BigFloat,2}) at /home/kalmar/.julia/dev/Arblib/src/matrix.jl:110
 [5] top-level scope at REPL[9]:1

(this is a reminder for #82)

@kalmarek kalmarek added this to the 0.2.0 milestone Oct 28, 2020
@Joel-Dahne
Copy link
Collaborator

Ah, it's trying to use the set! method! My idea was to implement set! methods for all constructors we have. Most of the constructors are just wrappers of set! methods, but some of them call other methods instead. Creating set! methods for all of them would create a more unified interface. I could do this as part of the cleanup of constructors!

@kalmarek
Copy link
Owner Author

fixed (probably) by #76

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

2 participants