Re: [Rcpp-devel] Slices of 3d arrays as matrices

2012-10-24 Thread Douglas Bates
ail.com] on behalf of Douglas Bates > [ba...@stat.wisc.edu] > Sent: Wednesday, October 24, 2012 10:34 AM > To: Giovanni Petris > Cc: rcpp-devel@lists.r-forge.r-project.org > Subject: Re: [Rcpp-devel] Slices of 3d arrays as matrices > > On Tue, Oct 23, 2012 at 5:52 PM, Giovanni Petris

Re: [Rcpp-devel] Slices of 3d arrays as matrices

2012-10-24 Thread Giovanni Petris
...@stat.wisc.edu] Sent: Wednesday, October 24, 2012 10:34 AM To: Giovanni Petris Cc: rcpp-devel@lists.r-forge.r-project.org Subject: Re: [Rcpp-devel] Slices of 3d arrays as matrices On Tue, Oct 23, 2012 at 5:52 PM, Giovanni Petris wrote: > Thank you Doug and Dirk. > > I was afraid I had t

Re: [Rcpp-devel] Slices of 3d arrays as matrices

2012-10-24 Thread Douglas Bates
d C++ code with g++. Regrettably I don't have time to debug it. > From: dmba...@gmail.com [dmba...@gmail.com] on behalf of Douglas Bates > [ba...@stat.wisc.edu] > Sent: Tuesday, October 23, 2012 1:20 PM > To: Giovanni Petris > Cc: rcpp-devel@lists.r-forge.r-project.org >

Re: [Rcpp-devel] Slices of 3d arrays as matrices

2012-10-23 Thread Giovanni Petris
ates [ba...@stat.wisc.edu] Sent: Tuesday, October 23, 2012 1:20 PM To: Giovanni Petris Cc: rcpp-devel@lists.r-forge.r-project.org Subject: Re: [Rcpp-devel] Slices of 3d arrays as matrices On Tue, Oct 23, 2012 at 12:56 PM, Giovanni Petris wrote: > Hello, > > I have a 3d array and I want t

Re: [Rcpp-devel] Slices of 3d arrays as matrices

2012-10-23 Thread Douglas Bates
On Tue, Oct 23, 2012 at 12:56 PM, Giovanni Petris wrote: > Hello, > > I have a 3d array and I want to compute the eigendecomposition of each slice > [,, k]. I am trying to make Rcpp see the relevant slice of the 3d array as a > matrix. My experiments, along the lines illustrated below, have so f

Re: [Rcpp-devel] Slices of 3d arrays as matrices

2012-10-23 Thread Dirk Eddelbuettel
Hi Giovanni, On 23 October 2012 at 17:56, Giovanni Petris wrote: | Hello, | | I have a 3d array and I want to compute the eigendecomposition of each slice [,, k]. I am trying to make Rcpp see the relevant slice of the 3d array as a matrix. My experiments, along the lines illustrated below, hav

[Rcpp-devel] Slices of 3d arrays as matrices

2012-10-23 Thread Giovanni Petris
Hello, I have a 3d array and I want to compute the eigendecomposition of each slice [,, k]. I am trying to make Rcpp see the relevant slice of the 3d array as a matrix. My experiments, along the lines illustrated below, have so far been unsuccessful. Does anybody have a suggestion? Thank you in