similar to: Calling C funtion from R help Needed

Displaying 20 results from an estimated 120 matches similar to: "Calling C funtion from R help Needed"

2012 Sep 07
1
[LLVMdev] teaching FileCheck to handle variations in order
On 9/7/2012 12:12 PM, Krzysztof Parzyszek wrote: > On 9/7/2012 7:20 AM, Matthew Curtis wrote: >> >> The attached patch implements one possible solution. It introduces a >> position stack and a couple of directives: >> >> * 'CHECK-PUSH:' pushes the current match position onto the stack. >> * 'CHECK-POP:' pops the top value off of the stack
2006 Dec 02
1
Trouble passing arrays to C code
Hello, I'm having more trouble with interfacing with C code. I have a function in C that will return the result of its computation as 3 arrays. The signature of the function is as follows: void lorenz_run(double x0, double y0, double z0, double h, int steps, double *res_x, double *res_y, double *res_z) The function works, as I've tested it from within C itself and the results
2012 Sep 07
5
[LLVMdev] teaching FileCheck to handle variations in order
Hello all, For the hexagon target, we have a couple of tests that are failing due to variations in the order of checked text. In these cases the ordering is not directly relevant to the functionality being tested. For example: ; CHECK: memw(##a) ; CHECK: memw(##b) %0 = load i32* @a, align 4 %1 = load i32* @b, align 4 requires that the compiler emit the memory operations for
2009 Sep 11
1
call Fortran from R
Dear R users, I have to call fortran program from within R (R 2.8.1 on ubuntu 8.10 machine). Suppose I have a fortran code like this (this is only a toy model, my working model is far more complex, but input/output is similar) DOUBLE PRECISION FUNCTION model(times, alfa, beta) DOUBLE PRECISION alfa, beta, times model=beta*sin(times)+alfa*cos(times) END FUNCTION which
2012 Sep 07
0
[LLVMdev] teaching FileCheck to handle variations in order
On 9/7/2012 7:20 AM, Matthew Curtis wrote: > > The attached patch implements one possible solution. It introduces a > position stack and a couple of directives: > > * 'CHECK-PUSH:' pushes the current match position onto the stack. > * 'CHECK-POP:' pops the top value off of the stack and uses it to set > the current match position. > > The above
2012 Oct 20
1
Trouble returning 2D array into R from Fortran
Hello, I have been trying to use a collection of Fortran subroutines to return a 2D array of calculated values to my R code, calling a Fortran wrapper subroutine from R. I've done this successfully before with C & C++ code. The Fortran wrapper subroutine which is to be called by R takes a set of input arguments & then should return an array of 2 columns & the specified number of
2008 Feb 14
0
passing R array to Fortran subroutine
Hello, I am trying to run a piece of Fortran code from R, and I am having trouble passing an array to the fortran subroutine. My attempts to pass an array into the fortran are producing memory errors, and I cannot find an example that performs the task. I have looked at "Writing R Extensions", and understand in concept what needs to happen, but all the examples are written in C.
2012 May 04
0
ur.df funtion
Dear R users, I am applying the augmented-Dickey-Fuller Unit Root Test (ur.df function of the urca package) to a time series of approximately 50 values. To be sure I understood what was going on with the ur.df function, I checked the critical values of the 3 test statistics (tau, phi2 and phi3 if a trend is included) or the 2 test statistics (tau and phi1 if only a drift is included) with the
2011 Nov 30
1
help about fitdistr funtion
Hi, I have a variable X classified in a lot of groups and I need to run the [fitdistr] funtion for each group. I tried with the [by] or the [tapply] funtions because my data is organize in two columns (variable and the groups), but neither of these command work. If somebody have a tip to help me up I really appreciate it. thanks, [[alternative HTML version deleted]]
2008 Nov 01
1
Help about the plot funtion
  Hello, my name is German, I am from Argentina, and we are working at university with R. This work is about sounds and how they affect out ears, we are using R to analice different recordings of sounds and we need to get the intensity of this recordings in dB.  In order to get the intensity of the sounds, we are using the plot function, but we can not figure out what is the menaning of the
2018 Apr 14
1
about family=binomial in glm funtion
Hei, I just wonder the use of family=binomial in glm function. As I learned from book (e.g. Andy Field) that logistic regression (binary logit) can use glm funtion with family = binomial. Here the y is a factor variable (e.g. value = 1 or 2). But I have also seen i many other cases, same function glm with family=binomial, but y is a variable with several column , like y= cbind(y1, y2), and
2004 Dec 11
2
[LLVMdev] calling the printf funtion
Hi, I would like to display results on the screen . Can I use the printf function in LLVM? How do I call the funtion? Could someone give me an example Thanks Jai
2004 Dec 11
0
[LLVMdev] calling the printf funtion
Just compile a trivial C program containing printf through llvm-gcc and you will see how to call printf from within llvm. You could even do it on the llvm web page if you don't have llvm-gcc installed. --Vikram http://www.cs.uiuc.edu/~vadve http://llvm.cs.uiuc.edu/ On Dec 11, 2004, at 1:13 AM, <vasanth2 at uiuc.edu> wrote: > Hi, > > I would like to display results on the
2005 Sep 12
0
Help with a more flexible funtion for multiple comparision of means
Dear R-list, Could anybody tell me (or give me a tip) of how to implement the Duncan distribution in R? I've been trying to make a new and more flexible function for multiple comparison of means: Tukey, SNK and Duncan, from 'aov' objects, like TukeyHSD function. For while, it is running nice (Tukey and SNK), for simple design (completely randomized, randomized block and Latin
2005 Sep 12
1
Help with a more flexible funtion for multiple comparisio n of means
Jose - Before implementing SNK and Duncan's, you may want to be aware of some criticisms of these methods: >From Hsu (1996), "Newman-Keuls multiple range test is not a confident inequalities method and cannot be recommended." "Duncan's multiple range test is not a confident inequalities method and cannot be recommended either. In the words of Tukey (1991),
2008 Sep 11
1
fft: from characteristic funtion to density function
Hello all! I've posted the question before but I am still struggling for an answer, please help if you can;-) Suppose a discrete series of data is generated by the following equation: CF=exp(-(t^2)/2) which is the characteristic function of a random variable X with standard normal distribution, how do I *numerically* solve for its probability density function? i.e., obtain a series of data
2009 Feb 25
2
Have any way to write a funtion into a list ?
Have any way to write a funtion into a list ? -- Nash - morrison at ibms.sinica.edu.tw
2010 Apr 29
2
by funtion
Hello, I have a data.frame: name    col1    col2    col3    col4 AA    23    54    0.999    0.78 BB    123    5    1    0.99 AA    203    98    0.79    0.99 I want to get mean value data.frame in terms of name: name    col1    col2    col3    col4 AA    113.0000  76.0000   0.8945   0.8850 BB    123.00   5.00   1.00   0.99 I tried to use by function: >aa<-by(test[,2:5], feature, mean)
2013 Mar 27
1
Averaging Out many rows from a column AND funtion to string
Dear all, 1) I have a very large matrix of  str(keep)  num [1:153899, 1:3415] -98.6 -95.8 -96.4 -95.8 -98 ... that  I would like to reduce its size to something like str(keep)  num [1:1000, 1:3415] -98.6 -95.8 -96.4 -95.8 -98 ...  or anything similar in size as this is a matrix that needs plotting (so is ok if it is 1000 row, 995, or 1123) I think what I need here is a way of selecting
2010 Apr 12
1
[LLVMdev] Question. about Machinefunction pass, funtion Prolog/Epilog code, stack frame
I am new to the LLVM, and need some help with this points. 1. how can we add special code for the Prolog/Epilog for some certain functions, this should be done with machinefunction pass, rt? 2. Basically, I want to get the function stack frame, that is the size and the initial position. I found int64_t llvm::MachineFrameInfo::getObjectSize ( int *ObjectIdx* ) const[inline] This method is