| Line 6... |
Line 6... |
| 6 |
Under Unix, making in this directory will make standalone libraries
|
6 |
Under Unix, making in this directory will make standalone libraries
|
| 7 |
libRmath.a and libRmath.so. `make static' and `make shared' make
|
7 |
libRmath.a and libRmath.so. `make static' and `make shared' make
|
| 8 |
just one of them.
|
8 |
just one of them.
|
| 9 |
|
9 |
|
| 10 |
Under Windows, use make -f Makefile.win. This makes Rmath.dll with
|
10 |
Under Windows, use make -f Makefile.win. This makes Rmath.dll with
|
| 11 |
import library libRmath.a.
|
11 |
import library libRmath.a, and static library Rmath.a.
|
| 12 |
|
12 |
|
| 13 |
NB: certain compilers are unable to do compile-time IEEE-754
|
13 |
NB: certain compilers are unable to do compile-time IEEE-754
|
| 14 |
arithmetic and so cannot compile mlutils.c. The known example is
|
14 |
arithmetic and so cannot compile mlutils.c. The known example is
|
| 15 |
Sun's cc. Use gcc for mlutils.c (or the whole library).
|
15 |
Sun's cc. Use gcc for mlutils.c (or the whole library).
|
| 16 |
|
16 |
|
| Line 23... |
Line 23... |
| 23 |
and link against -lRmath. The example file test.c does nothing
|
23 |
and link against -lRmath. The example file test.c does nothing
|
| 24 |
useful, but is provided to test the process. Note that you will
|
24 |
useful, but is provided to test the process. Note that you will
|
| 25 |
probably not be able to run it unless you add the directory containing
|
25 |
probably not be able to run it unless you add the directory containing
|
| 26 |
libRmath.so to the LD_LIBRARY_PATH.
|
26 |
libRmath.so to the LD_LIBRARY_PATH.
|
| 27 |
|
27 |
|
| - |
|
28 |
Under Windows you can also link statically against Rmath.a.
|
| - |
|
29 |
|
| 28 |
|
30 |
|
| 29 |
A little care is needed to use the random-number routines. You will
|
31 |
A little care is needed to use the random-number routines. You will
|
| 30 |
need to supply the uniform random number generator
|
32 |
need to supply the uniform random number generator
|
| 31 |
|
33 |
|
| 32 |
double unif_rand(void)
|
34 |
double unif_rand(void)
|