Hi, Dirk,
Sorry for delay.
I tried to install the R and Rtools again, and run the program again, then
it works.
But here is some warnings, I am not sure whether this is OK in the future.
Compilation argument:
C:/R/Rsoft/bin/i386/R CMD SHLIB file7e446574.cpp 2>
file7e446574.cpp.err.txt
g++ -I"C
On 14 October 2011 at 17:43, Slava Razbash wrote:
| Is there a manual that describes how to convert from Rcpp types to
| Armadillo/RcppArmadillo types and then back to R or Rcpp types?
The vignette of the package shows this: use the as<>() and wrap() converters.
The Rcpp documentation has lots m
Hi Kent,
On 14 October 2011 at 16:00, Jian Kang wrote:
| Hi, Dirk,
|
| Sorry for delay.
|
| I tried to install the R and Rtools again, and run the program again, then it
| works.
Excellent!
| But here is some warnings, I am not sure whether this is OK in the future.
|
| Compilation argume
You can turn it off by setting the following environment variable
CYGWIN=nodosfilewarning
Richard
On Fri, Oct 14, 2011 at 10:39 AM, Dirk Eddelbuettel wrote:
>
> Hi Kent,
>
> On 14 October 2011 at 16:00, Jian Kang wrote:
> | Hi, Dirk,
> |
> | Sorry for delay.
> |
> | I tried to install the R
Hi, Dirk,
I see.
Thanks so much for your help.
Best regards,
Kent
On Fri, Oct 14, 2011 at 4:39 PM, Dirk Eddelbuettel wrote:
>
> Hi Kent,
>
> On 14 October 2011 at 16:00, Jian Kang wrote:
> | Hi, Dirk,
> |
> | Sorry for delay.
> |
> | I tried to install the R and Rtools again, and run the pro
To bring closure to this issue I may well have misdiagnosed at first, could
someone on an OS X machine please run the following
-
suppressMessages(library(inline))
fun <- cxxfunction(signature(M_="numeric"), plugin="Rcp
Something is definitely wrong.
My printout goes out to 1 more decimal place than yours:
R> fun(matrix(rnorm(9),3,3))
[,1] [,2] [,3]
[1,] 1.3709584 -0.5646982 0.3631284
[2,] -0.5646982 0.4042683 -0.1061245
[3,] 0.3631284 -0.1061245 2.0184237
R> sesionInfo()
R version 2
| Hi, Dirk,
|
| Sorry to disturb you again.
|
| Actually, I am also very interested in how to call back the R commands in
| 'cxxfunction'. Do you have some examples or tutorial about this?
Please keep questions on the mailing list.
Dirk
|
| Thank you very much.
|
| Best regards,
|
| Kent
|
|
| O
As does mine.
> fun <- cxxfunction(signature(M_="numeric"), plugin="RcppArmadillo",body = '
+ arma::mat M = Rcpp::as(M_);
+ return Rcpp::wrap(symmatl(M));
+ ')
> set.seed(42)
> fun(matrix(rnorm(9),3,3))
[,1] [,2] [,3]
[1,] 1.3709584 -0.5646982 0.3631284
[2,] -0.5646982 0
Same here,
fun(matrix(rnorm(9),3,3))
[,1] [,2] [,3]
[1,] 1.3709584 -0.5646982 0.3631284
[2,] -0.5646982 0.4042683 -0.1061245
[3,] 0.3631284 -0.1061245 2.0184237
> sessionInfo()
R version 2.13.1 (2011-07-08)
Platform: i386-apple-darwin9.8.0/i386 (32-bit)
locale:
[1] en_
On 14 October 2011 at 14:42, Steve Lianoglou wrote:
| Something is definitely wrong.
|
| My printout goes out to 1 more decimal place than yours:
|
| R> fun(matrix(rnorm(9),3,3))
|[,1] [,2] [,3]
| [1,] 1.3709584 -0.5646982 0.3631284
| [2,] -0.5646982 0.4042683 -0.10612
On Fri, Oct 14, 2011 at 6:33 PM, Dirk Eddelbuettel wrote:
>
> On 14 October 2011 at 14:42, Steve Lianoglou wrote:
> | Something is definitely wrong.
> |
> | My printout goes out to 1 more decimal place than yours:
[snip]
> Non-issue. I think that is simple due to:
>
> edd@max:~$ head -2 .Rprofil
12 matches
Mail list logo