; rcpp-de...@r-forge.wu-wien.ac.at
Subject: Re: [Rcpp-devel] Using sparse matrices from the Matrix package in Rcpp
On 24 June 2012 at 19:56, Glenn Lawyer wrote:
| I would suggest using the eigen library, Rccp has an interface to this.
| Alternately, you could link to the boost graph library.
Spot on
> To me it seems that I can not acces entries (i,j) using A(i,j) when A is a
> sparse matrix. Is that so? - and if yes, any suggestions on what I can do
> alternatively?
Take a look at the coeff() method, e.g., A.coeff(i,j)
See also its documentation:
http://eigen.tuxfamily.org/dox-devel/classE
n...@lists.r-forge.r-project.org] On Behalf Of Douglas
Bates
Sent: 25. juni 2012 17:37
To: Dirk Eddelbuettel
Cc: rcpp-de...@r-forge.wu-wien.ac.at
Subject: Re: [Rcpp-devel] Using sparse matrices from the Matrix package in Rcpp
On Sun, Jun 24, 2012 at 1:19 PM, Dirk Eddelbuettel wrote:
>
> On 24
On Sun, Jun 24, 2012 at 1:19 PM, Dirk Eddelbuettel wrote:
>
> On 24 June 2012 at 19:56, Glenn Lawyer wrote:
> | I would suggest using the eigen library, Rccp has an interface to this.
> | Alternately, you could link to the boost graph library.
>
> Spot on.
>
> It was in fact the availability of (m
On 24 June 2012 at 19:56, Glenn Lawyer wrote:
| I would suggest using the eigen library, Rccp has an interface to this.
| Alternately, you could link to the boost graph library.
Spot on.
It was in fact the availability of (more) sparse matrix methods (even though
they were (are ?) under develop
2012 19:56
To: Søren Højsgaard
Cc: rcpp-devel@lists.r-forge.r-project.org (rcpp-de...@r-forge.wu-wien.ac.at)
Subject: Re: [Rcpp-devel] Using sparse matrices from the Matrix package in Rcpp
I would suggest using the eigen library, Rccp has an interface to this.
Alternately, you could link to the
I would suggest using the eigen library, Rccp has an interface to
this. Alternately, you could link to the boost graph library.
+glenn
On 06/24/2012 06:12 PM, Søren Højsgaard wrote:
Dear list
I have code for graph operations where I represent graphs as adjacency matrices
(matrices with 0's a
Dear list
I have code for graph operations where I represent graphs as adjacency matrices
(matrices with 0's and 1's). When graphs grow large storing all the 0's becomes
uneconomical, so I want to use sparse matrices (from the Matrix package) for
large graphs instead. Simple indexing operations