search for: xt_wang

Displaying 12 results from an estimated 12 matches for "xt_wang".

2004 Jun 15
2
About function "unif_rand()"
hello, everybody, I met a problem that I want to generate a random uniform number by using function with c interface. What I found is only "unif_rand()", but its range is [0,1]. How can I create a uniform random variable by using a function with c interface. Who can tell me what function it is and how to use? I will appreciate for it very much. Thanks in advance! xiaotong wang
2005 Mar 09
2
How to use a R package with C code
Hello, everybody, I created a R package which includes C code. But I load this package, and carry out the R function in it. It shows C function is not in load table as follows. Would you tell me what is the problem? Where do I make mistake? Maggie [Previously saved workspace restored] > library(var) Attaching package 'var': The following object(s) are masked _by_
2005 Jan 05
2
How to connect R with a C code which includes Atlas
Hello, everybody, Happy New Year! I am a graduate student from Concordia University. I meet a problem when I am working on my thesis. I hope I will get help from you. I have a mathematical model which was already implemented by using R language. However, part of this model includes fixed point iteration algorithm and calculation of large linear equations which n will get to 5000. Because of
2005 Jan 25
2
about R CMD check
hello, I create a package which includes C code and Lapack. But when I run " R CMD check ". an error message, "/usr/bin/ld: cannot find -lfrtbegin " occurs. could you tell me what is the problem? the detailed message is as follows: [credsim@confsys ~/src]$ R CMD check var * checking for working latex ... OK * using log directory '/home/credsim/src/var.Rcheck' *
2004 Apr 22
2
Urgent:again question about nmath/standalone
Hello, all, I have the same question as the last mail I sent. I have installed libRmath in my system. But I still can not link Rmath through -lRmath. The whole process is as follow.Is there anybody who is so kind to help me find out the problem? I will appreciate very much. [credsim at confsys ~]$ cd /usr/lib [credsim at confsys lib]$ ls -l libR* -rw------- 1 bcdesai bcdesai 237828 Apr
2004 Apr 01
1
Use R function in C code
I want to use R function Matrix inverse in my c code, please tell me how I can. If there is a sample which can tell me how it works. It will be fantastic.
2005 Jan 21
1
How to use a C code in R
hello, I have a c code which uses clapack. I want to integrate R with this code. It said that I create a R package including my c code. Then build it with putting PKG_LIBS = $(LAPACK_LIBS). I want to know the interface LAPACK_LIBS is Fortran or C? If it is written in Fortran, how can I build them together? If I can build them together, I still use the function in cLapack or the function in
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 documented in Section 5.7 [Numerical analysis
2004 May 13
1
question about dyn.load()
Hello, everybody, I met a big problem. What I want is to use c code in R. I have load a test code "conv.c" in R and run it successfully. However, in my real code, I use matlab c library (Matrix Inverse function). After I use command "R CMD SHLIB" to share library, I can not use "dyn.load" to load the object in R. "undefined symbol:
2005 Mar 10
1
about R CMD check
hello, everybody, I create a package by myself named "var" on Linux system. I attach a C code which uses "R_ext/Lapack.h" in directory "src". But when I carry out " R CMD check var", it shows > wxt0124() Error in .C("wxt1221", PACKAGE = "var") : C function name not in DLL for package var Execution halted Could you tell me what is
2005 Mar 09
0
about create a R package
Hello, everyone, I would like to create a package which includes C code. My input data comes from a text file and I will output my solution into a text file too. My question is that I put the input file in src directory or data directory or somewhere else? On the other hand, I want to call this C function from R. Is he R code put in the R directory or I carry out this code in R environment
2004 Apr 14
2
again question about nmath/standalone
Hello, I forgot to tell you that I am using Linux OS. And I can?t find directory "src/nmath/standalone". I will send you the test code I am using and the whole operation process. [credsim at confsys ~/src]$ gcc test1.c -o test1 -lRmath test1.c: In function `main': test1.c:18: warning: assignment makes pointer from integer without a cast test1.c:19: warning: assignment makes