Re: [R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-18 Thread Vladimir Dergachev
On Fri, 19 Jul 2024, Khue Tran wrote: I will need to run eigen() on a symmetric matrix, but I want to get arbitrary precise eigenvalues since we will need those eigenvalues for our further calculations. Does that make sense? For a symmetric matrix there is a nice algorithm that is simple

Re: [R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-18 Thread Khue Tran
I will need to run eigen() on a symmetric matrix, but I want to get arbitrary precise eigenvalues since we will need those eigenvalues for our further calculations. Does that make sense? Best, Khue Tran On Fri, Jul 19, 2024 at 12:14 PM Vladimir Dergachev wrote: > > Do you need to run eigen() on

Re: [R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-18 Thread Vladimir Dergachev
Do you need to run eigen() on an arbitrary matrix or symmetric one ? best Vladimir Dergachev On Fri, 19 Jul 2024, Khue Tran wrote: Thank you Simon! This is very helpful! Regarding eigen, I found in the Boost library the following example for arbitrary precision matrix solver: https://github

Re: [R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-18 Thread Khue Tran
Thank you Simon! This is very helpful! Regarding eigen, I found in the Boost library the following example for arbitrary precision matrix solver: https://github.com/boostorg/multiprecision/blob/develop/example/eigen_example.cpp. I am not sure if the precision is fully preserved throughout the proce

Re: [R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-18 Thread J C Nash
On the other hand, Rmpfr did allow me to write an mpfr rootfinder for Martin M. in 2011 (he modified and streamlined it for use) since one can run R codes on mpfr objects as long as one is careful which operators are applied. So one probably could do something with a very pedestrian eigenvalue m

Re: [R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-18 Thread Simon Urbanek
Khue, > On 19/07/2024, at 11:32 AM, Khue Tran wrote: > > Thank you for the suggestion, Denes, Vladimir, and Dirk. I have indeed > looked into Rmpfr and while the package can interface GNU MPFR with R > smoothly, as of right now, it doesn't have all the functions I need (ie. > eigen for mpfr cla

Re: [R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-18 Thread Khue Tran
Thank you for the suggestion, Denes, Vladimir, and Dirk. I have indeed looked into Rmpfr and while the package can interface GNU MPFR with R smoothly, as of right now, it doesn't have all the functions I need (ie. eigen for mpfr class) and when one input decimals, say 0.1 to mpfr(), the precision i

[R-pkg-devel] Is winbuilder "offline"?

2024-07-18 Thread Rolf Turner
I submitted a package to winbuilder, yesterday. Twice. No response of any sort. Is the system down, for some reason? Anyone know? Ta. cheers, Rolf Turner -- Honorary Research Fellow Department of Statistics University of Auckland Stats. Dep't. (secretaries) phone: +64-9-373-7599

Re: [R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-18 Thread Dirk Eddelbuettel
Hi Khue, On 19 July 2024 at 06:29, Khue Tran wrote: | I am currently trying to get precise inputs by taking strings instead of | numbers then writing a function to decompose the string into a rational | with the denominator in the form of 10^(-n) where n is the number of | decimal places. I am n

Re: [R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-18 Thread Vladimir Dergachev
I see there are existing extended precision packages: Ryacas and Rmpfr, you might want to take a look at them and their representation of numbers with higher precision than a double. best Vladimir Dergachev On Fri, 19 Jul 2024, Khue Tran wrote: Hi, I am trying to create an Rcpp package

Re: [R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-18 Thread Dénes Tóth
Hi Khue, Have you already checked the Rmpfr package?: https://cran.r-project.org/package=Rmpfr Best, Denes On 7/18/24 22:29, Khue Tran wrote: Hi, I am trying to create an Rcpp package that involves arbitrary precise calculations. The function to calculate e^x below with 100 digits precisio

[R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-18 Thread Khue Tran
Hi, I am trying to create an Rcpp package that involves arbitrary precise calculations. The function to calculate e^x below with 100 digits precision works well with integers, but for decimals, since the input is a double, the result differs a lot from the arbitrary precise result I got on Wolfram

Re: [R-pkg-devel] Fwd: CRAN Submission rkriging 1.0.1

2024-07-18 Thread Ivan Krylov via R-package-devel
Hi Chaofan and welcome to R-package-devel! В Wed, 17 Jul 2024 11:52:53 -0700 Bill Huang <10billhuan...@gmail.com> пишет: > The package can be installed successfully locally and passed CRAN > auto-check. However, it cannot pass the gcc-UBSAN test with the > following error message: a problem with

Re: [R-pkg-devel] Disable parallelism on installation time

2024-07-18 Thread Matt Denwood
On the subject of extendr ... the recently published JOSS paper (which also mentions CRAN compliance under the "Creating Rust-powered R packages section") provides a good entry point for those interested in using extendr for their R/Rust packages: https://joss.theoj.org/papers/10.21105/joss.063

[R-pkg-devel] Fwd: CRAN Submission rkriging 1.0.1

2024-07-18 Thread Bill Huang
Hi, Team. I am working on a package that uses RcppEigen. The package can be installed successfully locally and passed CRAN auto-check. However, it cannot pass the gcc-UBSAN test with the following error message: a problem with the LLT function in Eigen. I am not sure how to fix this. Any suggestio