similar to: Matrix multiplication in a C code

Displaying 20 results from an estimated 4000 matches similar to: "Matrix multiplication in a C code"

2008 Aug 06
1
Numerical optimisation and "non-feasible" regions
Dear list, I'm currently writing a C code to compute the (composite) likelihood - well this is done but not really robust. The C code is wrapped in an R one which call the optimizer routine - optim or nlm. However, the fitting procedure is far from being robust as the parameter space depends on the parameter - I have a covariance matrix that should be a valid one for example. Currently,
2008 Jul 05
3
Editing the "..." argument
Dear all, I'd like tweaking the ... arguments that one user can pass in my function for fitting a model. More precisely, my objective function is (really) problematic to optimize using the "optim" function. Consequently, I'd like to add in the "control" argument of the latter function a "ndeps = rep(something, #par)" and/or "parscale =
2008 Aug 08
2
Suggestion for the optimization code
Dear list, Here's a suggestion about the different optimization code. There are several optimization procedures in the base package (optim, optimize, nlm, nlminb, ..). However, the output of these functions are slightly different. For instance, 1. optim returns a list with arguments par (the estimates), value the minimum (maxima) of the objective function, convergence (optim
2008 May 09
1
Have you ever experienced this problem with REAL in a C code
Dear all, I'm currently experiencing big troubles with my C code called by .Call in a R function. I know this may not be the right place for such things but these errors are driving me crazy. And I hope other people may have already experienced these problems so that they could give me good suggestions. Sorry if I'm completely out of topic. Well let's go... I'm writing a
2009 Oct 10
2
Possible bug in the Rd parser?
Dear list, I got an automatic email complaining than some of my packages didn't pass 'R CMD check' for R-2.10.0 alpha anymore. Both of them make use of the "cases" LaTeX environment. Inspecting the log outputs I got: LaTeX errors when creating PDF version. This typically indicates Rd problems. LaTeX errors found: ! Misplaced alignment tab
2008 Apr 14
0
Incorrect @INC: Rcmd SHLIB error under Windows (2.6.2, 44383) (PR#11165)
Has your environment variable path been set correctly? It's been a while that I'm not using R under windows but remember had experienced the same error. I remember that I had to put many paths as environment variable to build R packages properly. Best, Mathieu wolpert at stat.duke.edu a ?crit : > Hi, R team. > > I'm trying to build a dll from a c program to be invoked
2008 Apr 20
0
Extending R formulas
Dear list, I'm currently trying to write a new R package to model spatial extremes. In particular, for a model fitting procedure, I'd like to use flexible response surfaces (like linear models, splines, ...) for the parameters of my model. Following this idea, I'd like to allow "a new interpretation" of an R formula given by the user, like y ~ x1 + rb(x2, knots,
2008 Apr 21
4
prod(0, 1:1000) ; 0 * Inf etc
I think most of us would expect prod(0:1000) to return 0, and ... ... it does. However, many of us also expect prod(x1, x2) to be equivalent to prod(c(x1,x2)) the same as we can expect that for min(), max(), sum() and such members of the "Summary" group. Consequently, prod(0, 1:1000) should also return 0, but as you see, it gives NaN which may be a bit puzzling... The
2010 Apr 20
1
zero sized messages in Maildir, corrupt filenames ?
Hi, I'm starting to see more and more duplicates in my cur directory. they seem to be a copy of an incoming mail (messages share the same date) but they appears in the client as a message without subject and without sender or body. Their filename starts with an underscore and the 4th letter is a %. The rest of the filename is random (but it also includes my hostname). Which program could
2007 Apr 05
0
20% off selected R and S-plus books from Cambridge University Press
Get 20% off selected Cambridge books for the R-help community. Until the end of June, R-help users can get an exclusive discount on the following Cambridge University Press books that use R or S-plus! Simply visit http://www.cambridge.org/rbooks and click the appropriate link to get more information about the book(s) that interests you. To get your discount, you will need to click the
2008 Dec 11
5
package development
I'm making the move of the survival package from my own environment to, and have stumbled into a vacuum. The R Extensions manual has really nice instructions about how to lay out the directories, order the files, and run tests for DISTRIBUTION of a product, but I can't find anything on how to set up a reasonable DEVELOPMENT environment. In my local world, I had the .c and .s files in
2012 Feb 22
3
OpenMP and random number generation
Dear all, Now that R has OpenMP facilities, I'm trying to use it for my own package but I'm still wondering if it is safe to use random number generation within a OpenMP block. I looked at the R writing extension document both on the OpenMP and Random number generation but didn't find any information about that. Could someone tell me if it is safe or not please ? Best, Mathieu
2009 Jan 08
1
legend() in a multiple figure environment
Dear all, there seems to be a problem with displayed legends when a multiple figure environment is used, see the following example: par(mfrow=c(1,2)) curve(dnorm,col=4,from=-4,to=4); legend(-4,0.3,legend="curve",lty=1,col=4) legend(-4,0.2,legend="curve",lty=1,col=4) On my machines the first time the command legend() is issued the legend box stretches over the curve.
1999 Oct 21
1
2.05a Solaris 2.5.1 SPARC -problem-
Hello, I've sucessfully compiled 2.05a for Solaris 2.6 and its working OK. Compiling on Solaris 2.5.1 (with gcc or Sun cc) goes smoothly but smbd fail with the following error in the log: [1999/10/21 09:45:30, 0] lib/util_sock.c:(507) read_socket_data: recv failure for 4. Error = Invalid argument Same debug level 10 [1999/10/21 11:47:03, 2] smbd/server.c:(716) Changed root to /
1999 Apr 21
1
text works with the postscript device?
Dear R experts, R (0.63) does not seem to write me any text in a PS file. Trying x11() plot(12) text(5,5, "Hello World") works fine. Now I would like to have the same as a PS file. postscript("foobar.ps") plot(12) text(5,5,"Hello World") dev.off() Gives me a PS file with the plot -- but without the "Hello World". Why? I'm completely clueless. Ciao
2002 Mar 04
1
Running on MacOS X
Good Morning ! I am trying to run R on MacOS X using XFree86 4.2.0 when I try to run it, I get the following error message "dyld: /usr/local/lib/R/bin/R.bin version mismatch for library: /sw/lib/libpng.2.dylib (compatibility version of user: 1.0.12 greater than library's version: 1.0.10) ". I hope you have some ideas what the problem is and how I can fix it. thanks for your
2009 Mar 02
1
R does not start on my MacBook Pro3,1 (PR#13565)
Help! I was running R code and started getting error messages that would not stop repeating. I force-quit R, but when I attempted to run it again, it would not start (Icon kept bouncing until I force-quit again). I restarted the computer, then I reinstalled R, but that did not fix the problem. I deleted everything I could find related to R, and installed again. Each time I install I
2009 Sep 09
2
Matrix multiplication and random numbers
Dear All I new to using R and am struggling with some matrix multiplication. I have two matrices, one containing random numbers, these are multiplied together to get another matrix which is different each time. When I put in another for loop to repeat this process a multiple times the matrices are all the same. I?m sure there is a way to keep the randomness of the different matrices but I think
2009 Jun 02
1
How to generate R objects in C?
I'm in the process of coding a parser (in C) to generate R entities (vectors, lists, etc.) from a text description (different from R). The basic parser works, and now I need to tell it how to create R entities. I need to be able to create character vectors (for unicode strings), integers, floats, unnamed lists, named lists, boolean values, and NA. With the exception of the two types of lists
2002 Feb 28
1
ext3 blocks other with large writes
Hi there, First of all thanks for all the ext3 development! I run it on my laptop and it has saved me many times from lengthy fscks :-) However, I have observed that whenever something is doing a lot of writing to an ext3 filesystem other processes that involves I/O on the same disk are blocked for long times (often in the 10-30 secs range). For example, if I cp a 1.5 Gb file from one ext3