Displaying 20 results from an estimated 10000 matches similar to: "gmp: bigintegers with matrix computation"
2009 Mar 25
3
[LLVMdev] LLVM and GMP
Hello
I've been looking to LLVM, in order to develop a compiler for a
cryptography oriented language. I started by following the tutorials on
Kaleidoscope, and I must say they were very usefull. Now I need to use
GMP, so i can add Big Integer support. I am trying to change
Kaleidoscope to support BigIntegers instead of doubles, but I don't
really know how to do that. I'd really
2009 Mar 25
0
[LLVMdev] LLVM and GMP
I could be wrong, but I think that you may need to add a 'big-integer'
intrinsic type to llvm.
On Wed, Mar 25, 2009 at 4:32 AM, Paulo Matias <paulomatias0 at gmail.com> wrote:
> Hello
>
> I've been looking to LLVM, in order to develop a compiler for a
> cryptography oriented language. I started by following the tutorials on
> Kaleidoscope, and I must say they were
2023 Jan 07
2
gmp::bigq vs. MASS::fractions
Hi,
has someone experience which routine should be used for creating
fractional numbers? The two conversion routines deliver different results
> x <- (0:7)/7
> MASS::fractions(x)
[1] 0 1/7 2/7 3/7 4/7 5/7 6/7 1
> gmp::as.bigq(x)
Big Rational ('bigq') object of length 8:
[1] 0
2573485501354569/18014398509481984 2573485501354569/9007199254740992
[4]
2023 Jan 07
1
gmp::bigq vs. MASS::fractions
On Sat, 7 Jan 2023 17:29:35 +0100
Sigbert Klinke <sigbert at wiwi.hu-berlin.de> wrote:
> > x <- (0:7)/7
>
> > MASS::fractions(x)
>
> [1] 0 1/7 2/7 3/7 4/7 5/7 6/7 1
>
> > gmp::as.bigq(x)
>
> Big Rational ('bigq') object of length 8:
>
> [1] 0
> 2573485501354569/18014398509481984 2573485501354569/9007199254740992
>
2011 Sep 05
0
package gmp installation problem
Hello everybody,
Trying to install the package gmp I get the following errors and fail to
install:
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object
'/usr/local/lib/R/site-library/gmp/libs/gmp.so':
libgmp.so.10: cannot open shared object file: No such file or directory
Warning in eval(expr, envir, enclos) :
Data for RFC 2409 Oakley groups requires
2010 Nov 11
1
gmp package installation on CentOS 5.2
Hello,
Last year, I installed CentOS 5.2 on an HP Proliant Server. Along with other packages, the gmp and gmp-devel version 4.1.4 packages were installed. To the best of my knowledge these packages do not come from the gmp team.
Recently, I built an rpm package for gmp 5.0.1 for CentOS 5.2. I tried to update the gmp package by command
rpm -Uvh gmp-5.0.1-1.x86_64.rpm
but the update failed
2012 Mar 07
0
CEBA-2012:0365 CentOS 6 gmp Update
CentOS Errata and Bugfix Advisory 2012:0365
Upstream details at : https://rhn.redhat.com/errata/RHBA-2012-0365.html
The following updated files have been uploaded and are currently
syncing to the mirrors: ( sha256sum Filename )
i386:
f1855126a943ed4aac412006af98490248b739b4f9f78487f17c3275557948e2 gmp-4.3.1-7.el6_2.2.i686.rpm
79970b1d4219889536ba4cf865ddf9defa9b0c9a057e94c11d6a95e46abad2fa
2015 Nov 03
0
CEBA-2015:1958 CentOS 7 gmp BugFix Update
CentOS Errata and Bugfix Advisory 2015:1958
Upstream details at : https://rhn.redhat.com/errata/RHBA-2015-1958.html
The following updated files have been uploaded and are currently
syncing to the mirrors: ( sha256sum Filename )
x86_64:
de58d6caabde568ea010fdeae78e9eeb6889201ad042643e6c0127570427bc5a gmp-6.0.0-12.el7_1.i686.rpm
22b28c3992c01ff73b094b25715eab8acbbac4b33ceafd58f7c18bc27891725b
2011 Jan 04
1
function masking and gmp questions
Hi,
Here's the problem I ran into: the gmp package has a method for apply()
so it masks the base::apply function. With gmp installed, I tried to
run the function turnpoints() from the pastecs package. It fails
because it calls apply() internally, like this:
apply(mymatrix,1,max,na.rm=TRUE)
,
but the code in the gmp package which sets up the operator overload for
apply() strictly
2008 Sep 16
0
lsoda( linking to GMP for big numbers from C code)
Hi R used with C-code experts,
I had a look at the archives and did not find anything on this, so
hopefully I am not doubling up.
I have previously used the following approach where I needed some very
small/large numbers (using Brobdingnag):
surfacewithdiff <- function(t, y, p)
{
const=p["const"]
kay =p["kay"]
psii=p["psii"]
2016 Sep 07
1
How to install gmp in R on fedora
Hello.
I have installed R with dnf.
Also I have installed gmp and gmp-devel with dnf (I think gmp was already
installed).
In R I did
> install.packages('Rmpfr')
But then I get
configure: error: GNU MP not found, or not 4.1.4 or up, see
http://gmplib.org
What must I do?
[[alternative HTML version deleted]]
2013 Jan 02
1
[PATCH] Fix gmp stubdom build when DESTDIR is used
The default make targets in the top level makefile set DESTDIR
which gets applied when the stubdom makefile
tries to do a make install within gmp to install libgmp.a
to the cross root.
Ian, do you want to apply this to your tree and commit the whole thing
or would you prefer I roll out a fresh new patch set with all updates
applied?
Signed-off-by: Matthew Fioravante
2000 Dec 13
3
GMP in COPYING.Ylonen
COPYING.Ylonen contains:
[ GMP is now external. No more GNU licence. ]
I don't see how GMP is linked in at all. rms asked me to look into this,
because this might constitute a license conflict.
Thanks for your help!
--
No matter how big the bell, if you only tap it, it can give out only a
faint sound. We must understand thoroughly that the weakness of the blow,
not a fault of the bell
2009 Mar 26
1
[LLVMdev] LLVM and GMP
someguy wrote:
> Oh. One more thing:
>
> Paulo, while your working out how to do what Chris said (making usage
> of bigints into library calls), wouldn't it just warm your heart to
> document the process on the wiki?
>
> </wiki pimping>
>
> On Wed, Mar 25, 2009 at 9:16 AM, someguy
> <just.s0m3.guy+llvmdev at gmail.com> wrote:
>
>> Oh. I
2018 Mar 16
0
Discrepancy: R sum() VS C or Fortran sum
Install the gmp package, run your code, and then try this:
bu <- gmp::as.bigq(u)
bs4 <- bu[1] + bu[2] + bu[3] + bu[4] + bu[5]
s4 <- as.double(bs4)
s1 - s4
## [1] 0
s2[[2]] - s4
## [1] 7.105427e-15
s3 - s4
## [1] 7.105427e-15
identical(s1, s4)
## [1] TRUE
`bs4` is the exact sum of the binary rationals in your `u` vector;
`s4` is the closest double precision to this exact sum.
2018 Mar 16
1
Discrepancy: R sum() VS C or Fortran sum
My simple functions were to compare the result with the gfortran
compiler sum() function. I thought that the Fortran sum could not be
less precise than R. I was wrong. I am impressed. The R sum does in fact
match the result if we use the Kahan algorithm.
P.
I am glad to see that R sum() is more accurate than the gfortran
compiler sum.
On 16/03/18 11:37 AM, luke-tierney at uiowa.edu wrote:
2009 Mar 25
2
[LLVMdev] LLVM and GMP
On Mar 24, 2009, at 11:20 PM, someguy wrote:
> I could be wrong, but I think that you may need to add a 'big-integer'
> intrinsic type to llvm.
No, please don't. GMP is just another library like libc, your front-
end should just generate calls into it like any other library. This
is similar to how we handle threading and many other "language
features".
-Chris
2012 Mar 28
1
rep with bigz in gmp
Hi
With package:gmp, is this an expected behavior?
> rep(1:3, rep(3, 3))
[1] 1 1 1 2 2 2 3 3 3
> rep(as.bigz(1:3), rep(3, 3))
Big Integer ('bigz') object of length 9:
[1] 1 2 3 1 2 3 1 2 3
This code is used inside `outer`, so more worse
> outer(1:3, 1:3, `*`)
[,1] [,2] [,3]
[1,] 1 2 3
[2,] 2 4 6
[3,] 3 6 9
> outer(as.bigz(1:3),
2009 Mar 25
0
[LLVMdev] LLVM and GMP
Oh. I see. That way the bigints don't need a representation in llvm IR... neat.
Sorry for the misdirecton!
On Wed, Mar 25, 2009 at 8:38 AM, Chris Lattner <clattner at apple.com> wrote:
>
> On Mar 24, 2009, at 11:20 PM, someguy wrote:
>
>> I could be wrong, but I think that you may need to add a 'big-integer'
>> intrinsic type to llvm.
>
> No, please
2011 Dec 21
0
gmp: Error in solve.bigz(B) : System is singular
With a matrix such as C I do not have any problem:
>library(gmp)
> C
V1 V2 V3 V4 V5 V6 V7
[1,] 1 0 0 0 1 0 0
[2,] 0 1 0 0 0 1 0
[3,] 0 0 1 0 0 0 1
[4,] 0 0 0 1 0 0 0
[5,] 0 0 0 0 1 0 0
[6,] 0 0 0 0 0 1 0
[7,] 0 0 0 0 0 0 1
> solve.bigz(C)
[,1] [,2] [,3] [,4] [,5] [,6] [,7]
[1,] "1" "0" "0"