<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Cambria, sans-serif;"><div><div><div>Hello everyone,</div><div><br></div><div>For those of you who have used the sparse matrix capabilities of Armadillo/RcppArmadillo, how seamless are the operations in moving between sparse and dense matrices?  I know there are some tricks for getting sparseMatrix objects into SpMat objects (Dirk has a nice Rcpp Gallery post on this), but is it just as easy when it comes to doing Linear Algebra? My google ninja skills didn't seem to produce any helpful information.</div><div><br></div><div>E.g., if A is a dense matrix and B is a sparse matrix in Armadillo, it is pretty much seamless to do calculations like A + B, A*B, solve(B, A), etc.?  </div><div><br></div><div>I'm trying to decide whether it would be worth it to convert my code from R using sparseMatrix objects (Matrix package) to a C++ equivalent using RcppArmadillo.  On the same topic, would it be easier/more difficult if I used RcppEigen instead?</div><div><br></div><div>Thanks,</div><div><br></div><div>Joshua</div><div><div style="font-family: Calibri, sans-serif;">-- </div><div><div><font face="Cambria">Joshua French, Ph.D.</font></div><div><span style="font-family: Cambria; ">Assistant Professor</span></div><div><span style="font-family: Cambria; ">Department of Mathematical and Statistical Sciences</span></div><div><font face="Cambria">University of Colorado Denver</font></div><div><font face="Cambria"><a href="mailto:Joshua.French@ucdenver.edu">Joshua.French@ucdenver.edu</a></font></div><div><font face="Cambria"><a href="http://math.ucdenver.edu/~jfrench/">http://math.ucdenver.edu/~jfrench/</a></font></div><div><span style="font-family: Cambria; ">Ph:  303-315-1709  Fax:  303-315-1701</span></div></div></div></div></div></body></html>