Displaying 1 result from an estimated 1 matches for "mnul".
Did you mean:
enul
2018 Oct 26
1
Rmpfr: build vector sequentially -- c(.) not working
...either
losing to much speed or changing semantic in a too radical way.
[but I'm happy if I'm proven wrong here !! ==> that's why posting to R-devel]
- - - -
Anyway, now to solve your problem, if you really want to do
something like your original code, you can do it like this :
mNUL <- mpfr(logical()) # instead of 'NULL'
Then, e.g.,
vec <- mNUL
for(i in 1:10) {
vec <- c(vec, mpfr(i^2, 88))
}
works fine.
In the next version of Rmpfr, both
as(NULL, "mpfr")
mpfr(NULL)
will also give the 'mNUL' above.
I hope you enjoy using R...