Hello, everyone.
I guess the probrem maybe occur because of sourceCpp(), so I have made
another test. I make a simple package using
RcppArmadillo.package.skeletion().
But the same problem appear.
My code is on Github:
https://github.com/ZhangYet/RcppTest
Is there anything related to my compiler or
Hello,
This stands out
double U;
for(int i=0; i(X);
NumericVector y = as(Y);
…
}
by things like this:
//[[Rcpp::export]]
double mydcov(NumericVector x, NumericVector y){
…
}
Romain
Le 19 janv. 2014 à 14:09, 晔张 a écrit :
> Hello, everyone.
> I guess the probrem maybe occur be
Thank you, Romain!
There are several double variables which I didn't init in my code.
It's all right, now.
On Sun, Jan 19, 2014 at 9:42 PM, Romain Francois
wrote:
> Hello,
>
> This stands out
>
> double U;
> for(int i=0; i for(int j=0; j U = U + A_kl(i,j) * B_kl(i,j)/n/n ;
> }
> }
> U = sq