Displaying 20 results from an estimated 102 matches for "mathlib".
2004 Jun 22
1
R mathlib
Hello, dear R experts!
I run R on Debian 'sarge' platform. There is 'r-mathlib' package in
Debian distribution, which is described as:
$ dpkg --status r-mathlib
...
This packages provides the libRmath shared and static libraries which
can be called from standalone C or C++ code.
Well, I use runif() function in test_runif.c:
#include <Rmath.h>
main()
{...
2000 Mar 02
1
Mathlib
First of all I would like to join the chorus of approval over the release
of R 1.0.0. It really is an excellent piece of software. I'm sure you
will astonish us again with Omega.
I have a query about Mathlib. It is such a nice collection of functions
that it would be nice to use it in other software, not necessarily related
to R. Is it possible to build Mathlib separately, and/or install the
shared object and the header file in a more public place?
Martyn
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-....
2002 May 24
0
problem with R-mathlib standalone
Hi,
I'm trying to use pgamma() within my C application but I'm
getting strange results. I have a Debian system with r-mathlib
1.4.1-1 and gcc 2:2.95.4-9.
Here are 3 example pgamma() calls executed by R:
$ R -q --vanilla < gamma.R
> pgamma(98, 100, 1)
[1] 0.4333105
> pgamma(21, 100, 5)
[1] 0.7002453
> pgamma(2, 100, 69)
[1] 0.9997046
>
and here is what the small C program below produces with the
same...
2002 Jan 14
1
trouble using R Mathlib as standalone
Dear People,
I am trying to use R's Math library as standalone, as documented in
/src/nmath/standalone. I am using C++ in Debian testing, and the versions
are as follows:
ii g++-3.0 3.0.3-1 The GNU C++ compiler.
ii r-mathlib 1.4.0-1 `GNU S' - Standalone R math library
I have a file (rand.cc) as follows. I don't think that lattice.hh or mh.hh
are very relevant. The class Cube is defined in lattice.hh and I don't
think mh.hh are used at all. I get the following errors when trying to
compile this...
2005 Jan 05
1
Standalone Mathlib, C++ and ISNAN()
In the hope of some meaningful response and ignoring the risk of
further abuse, let me try to clarify the issue here.
I have re-read the 'Writing R Extensions' manual. It seems to me that
it clearly says R API functions can be called from from C++ programs,
and the API includes the special values ISNAN() and R_FINITE() and the
missing test ISNA().
R_FINITE is no problem. It is
2004 Apr 14
2
again question about nmath/standalone
...test1.c:18: warning: previous implicit declaration of `Allocate_Memory_2D'
test1.c:55: warning: `Allocate_Memory_2D' was previously implicitly declared to
return `int'
/usr/bin/ld: cannot find -lRmath
collect2: ld returned 1 exit status
"test1.c" code is as follow:
#define MATHLIB_STANDALONE
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include </usr/local/lib/R/include/Rmath.h>
main()
{
double **x, **y, **x1, **y1, valin;
int i,j,I,J;
I=3;
J=3;
x=Allocate_Memory_2D( I, J, x1);
y=Allocate_Memory_2D( I, J, y1);
FILE...
2010 Dec 20
1
R hangs on the stats.so library
...ran
whereis libgfortran.so.2
sudo apt-get install libgfortran3
sudo apt-get install libgfortran3-dev
sudo apt-get install libgfortran2
sudo apt-get install libgfortran3-dbg
R
sudo apt-get remove libgfortran3-dbg
sudo apt-get install build-essential
sudo apt-get install r-base-core r-doc-info r-mathlib r-recommended
R
sudo apt-get install r-base-dev
sudo apt-get install f2c
R
sudo apt-get install r-base-core r-doc-info r-mathlib r-recommended
sudo apt-get remove r-base-core r-doc-info r-mathlib r-recommended
r-base-dev
sudo apt-get install r-base-core r-doc-info r-mathlib r-recommended
r-bas...
2008 Oct 04
3
Palm OS port
hello all,
At my workplace, our colleague Mukesh has just completed a port of
speex 1.2.1 to Palm OS. He had to write a couple of mathlib functions,
but the trunk remains unchanged.
It works quite well, I was wondering if there will be any interest in
this port in the distribution.
- farhan
1999 Jan 26
1
'repeated' calculation
I have pulled Jim Lindsey's repeated library and put it under the
libraries directory, as are all the other toolboxes. 2 questions:
Running R COMPILE *.c and *.f goes fine except that Mathlib.h cannot be
found - it is not in the include library. I cannot find any other
Mathlib.h on my system anywhere - presumably this is an R specific module.
Was this missing from the 0.62.4 distribution - I am using the one that
came with the RedHat power tools.
\John
PS Many thanks to Tom for the...
2020 Sep 01
1
Rust bindings to nmath
...> | do NOT want to have to write myself!
> |
> | The "crate" (Rust's name for a package) is at
> | https://lib.rs/crates/r_stats.
> Nice.
Indeed. Thank you for letting us know!
{BTW: There's been an ambitious project of binding all of
mathlib *and more out of R* to a java script library;
But I think that project has taken the typical course of
the majority of github projects: "code rut"}
> Any chance you could rename it to a more neutral r_mathlib or something?
> As a free-standing C library it has lon...
2004 Apr 14
1
question about /nmath/standalone
Hello,
I can't link a c code with Mathlib according to introduction of R
manual "Writing R Extensions", page 60.
It is written :
"It is possible to build Mathlib, the R set of mathematical functions
documented in
'Rmath.h?, as a standalone library 'libRmath? under Unix and Windows. (This
includes
the functions do...
1999 Mar 05
2
[Andreas Krause <Andreas.Krause@genedata.com>] Re: splus shell escapes
...directory `/u/andreas/tmp/R/R-0.63.2/src/include'
make[2]: Leaving directory `/u/andreas/tmp/R/R-0.63.2/src/include'
make[2]: Entering directory `/u/andreas/tmp/R/R-0.63.2/src/appl'
gcc -g -O2 -I../include -I../../src/include -c fft.c -o fft.o
In file included from fft.c:21:
../include/Mathlib.h:255: conflicting types for `gammal'
/usr/include/math.h:819: previous declaration of `gammal'
make[2]: *** [fft.o] Error 1
make[2]: Leaving directory `/u/andreas/tmp/R/R-0.63.2/src/appl'
make[1]: *** [R] Error 1
make[1]: Leaving directory `/u/andreas/tmp/R/R-0.63.2/src'
make: ***...
2012 Jan 27
2
The following code (using rgamma) hangs
Hi,
I'm seeing something that may be a bug in R's standalone math library,
which is packaged by Debian as r-mathlib. I reported it to the Debian BTS
as http://bugs.debian.org/657573
I'm using Debian squeeze, and the code was tested with r-mathlib 2.11.1-6
(default on stable) and 2.14.1-1 (from testing/unstable).
I summarize this report below. The following code with the R math library
hangs. Note that s...
2000 Nov 03
1
How to call R functions from a C++ program
Dear R experts,
Could anyone give some concrete examples of how to call R functions from a
program written in C++?
Thanks in advance for your help.
Nathapong Samlamjiag
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
2004 Jun 21
2
Cross build Makefile
...x with R 1.9.0. When compiling R with the
mingw tools I get an error about expm1 being undeclared when first found
at src/main/arithmetic.c:1019
If I fiddle a bit with it later on I also get errors about log1p bein
undeclared.
Any idea what should I look for?
I am using R 1.9.0 in Debian, with R-mathlib avaliable, and gcc 3.3.
Thanks,
iago
2004 Jun 21
2
Cross build Makefile
...x with R 1.9.0. When compiling R with the
mingw tools I get an error about expm1 being undeclared when first found
at src/main/arithmetic.c:1019
If I fiddle a bit with it later on I also get errors about log1p bein
undeclared.
Any idea what should I look for?
I am using R 1.9.0 in Debian, with R-mathlib avaliable, and gcc 3.3.
Thanks,
iago
2020 Sep 01
2
Rust bindings to nmath
Hello @R-devel
I needed some statistical functions for a project I was working on in
Rust, and I've used the R math library as a standalone solution. I
thought the R developers would be interested in the fact that their work
is being used elsewhere, and I also wanted to say thanks for some code I
do NOT want to have to write myself!
The "crate" (Rust's name for a package) is at
1999 Feb 09
3
Installing on 64-bit Dec or SGI
Hi all,
The systems guys here in the stat dept don't seem to be able to
compile R on the Dec Alphas or on the SGIs. Can anyone give them a hand?
-Greg
-------------------------------------------------------------------------------
Gregory R. Warnes | It is high time that the ideal of success
warnes at biostat.washington.edu | be replaced by the ideal of service.
2006 Mar 03
1
Fwd: Re: calling R's library using C
...ething was clearly long. After spending all of
> Thursday on this, I decided to post back.
>
> Thanks again for your missive. While I would appreciate the pertinent manual
> (English is not my strong suit, but I can follow there, I am sure): btw, I do
> not have the /usr/share/doc/r-mathlib/ directory, nor is it anywhere on my
> system (as per the output to locate), I really thank you for all your help! I
> am sure Professor Ripley would also appreciate your support.
>
>
> --- Dirk Eddelbuettel <edd at debian.org> wrote:
>
> >
> > (whitespace tr...
2009 Nov 13
2
random numbers in C
I need some random numbers in my C program. Here a small example:
////////////////////////////////////////////////////////////////////////////////
#include <R.h>
void rand (int* n)
{
int len = *n;
for (int i = 0; i < len; i++)
Rprintf("%1.5f ", unif_rand());
}
dyn.load("rand.dll")
.C("rand", as.integer(10))
dyn.unload("rand.dll")