<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/rcpparmadillo-0-7-960-1-0/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://dirk.eddelbuettel.com/blog/2017/08/17#rcpparmadillo_0.7.960.1.0"> Thinking inside the box </a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><img alt="armadillo image" src="https://i0.wp.com/arma.sourceforge.net/img/armadillo_logo.png?w=248" data-recalc-dims="1"></p>
<p>The bi-monthly <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.armadillo.html" target="_blank">RcppArmadillo</a> release is out with a new version 0.7.960.1.0 which is now on <a rel="nofollow" href="https://cran.r-project.org/" target="_blank">CRAN</a>, and will get to <a rel="nofollow" href="https://www.debian.org/" target="_blank">Debian</a> in due course.</p>
<p>And it is a big one. Lots of nice upstream changes from <a rel="nofollow" href="http://arma.sourceforge.net/" target="_blank">Armadillo</a>, and lots of work on our end as the <a rel="nofollow" href="https://summerofcode.withgoogle.com/" target="_blank">Google Summer of Code</a> project by <a rel="nofollow" href="https://github.com/binxiangni" target="_blank">Binxiang Ni</a>, plus a few smaller enhancements — see below for details.</p>
<p><a rel="nofollow" href="http://arma.sourceforge.net/" target="_blank">Armadillo</a> is a powerful and expressive C++ template library for linear algebra aiming towards a good balance between speed and ease of use with a syntax deliberately close to a Matlab. <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.armadillo.html" target="_blank">RcppArmadillo</a> integrates this library with the <a rel="nofollow" href="https://www.r-project.org/" target="_blank">R</a> environment and language–and is widely used by (currently) 379 other packages on <a rel="nofollow" href="https://cran.r-project.org/" target="_blank">CRAN</a>—an increase of 49 since the last <a rel="nofollow" href="https://cran.r-project.org/" target="_blank">CRAN</a> release in June!</p>
<p>Changes in this release relative to the previous <a rel="nofollow" href="http://cran.r-project.org/" target="_blank">CRAN</a> release are as follows:</p>
<blockquote>
<h3>Changes in RcppArmadillo version 0.7.960.1.0 (2017-08-11)</h3>
<ul>
<li>
<p>Upgraded to Armadillo release 7.960.1 (Northern Banana Republic Deluxe)</p>
<ul>
<li>
<p>faster <code>randn()</code> when using OpenMP (NB: usually omitted when used fromR)</p>
</li>
<li>
<p>faster <code>gmm_diag</code> class, for Gaussian mixture models with diagonal covariance matrices</p>
</li>
<li>
<p>added <code>.sum_log_p()</code> to the <code>gmm_diag</code> class</p>
</li>
<li>
<p>added <code>gmm_full</code> class, for Gaussian mixture models with full covariance matrices</p>
</li>
<li>
<p>expanded <code>.each_slice()</code> to optionally use OpenMP for multi-threaded execution</p>
</li>
</ul>
</li>
<li>
<p>Upgraded to Armadillo release 7.950.0 (Northern Banana Republic)</p>
<ul>
<li>
<p>expanded <code>accu()</code> and <code>sum()</code> to use OpenMP for processing expressions with computationally expensive element-wise functions</p>
</li>
<li>
<p>expanded <code>trimatu()</code> and <code>trimatl()</code> to allow specification of the diagonal which delineates the boundary of the triangular part</p>
</li>
</ul>
</li>
<li>
<p>Enhanced support for sparse matrices (Binxiang Ni as part of Google Summer of Code 2017)</p>
<ul>
<li>
<p>Add support for <code>dtCMatrix</code> and <code>dsCMatrix</code> (<a rel="nofollow" href="https://github.com/RcppCore/RcppArmadillo/pull/135" target="_blank">#135</a>)</p>
</li>
<li>
<p>Add conversion and unit tests for <code>dgT</code>, <code>dtT</code> and <code>dsTMatrix</code> (<a rel="nofollow" href="https://github.com/RcppCore/RcppArmadillo/pull/136" target="_blank">#136</a>)</p>
</li>
<li>
<p>Add conversion and unit tests for <code>dgR</code>, <code>dtR</code> and <code>dsRMatrix</code> (<a rel="nofollow" href="https://github.com/RcppCore/RcppArmadillo/pull/139" target="_blank">#139</a>)</p>
</li>
<li>
<p>Add conversion and unit tests for <code>pMatrix</code> and <code>ddiMatrix</code> (<a rel="nofollow" href="https://github.com/RcppCore/RcppArmadillo/pull/140" target="_blank">#140</a>)</p>
</li>
<li>
<p>Rewrite conversion for <code>dgT</code>, <code>dtT</code> and <code>dsTMatrix</code>, and add file-based tests (<a rel="nofollow" href="https://github.com/RcppCore/RcppArmadillo/pull/142" target="_blank">#142</a>)</p>
</li>
<li>
<p>Add conversion and unit tests for <code>indMatrix</code> (<a rel="nofollow" href="https://github.com/RcppCore/RcppArmadillo/pull/144" target="_blank">#144</a>)</p>
</li>
<li>
<p>Rewrite conversion for <code>ddiMatrix</code> (<a rel="nofollow" href="https://github.com/RcppCore/RcppArmadillo/pull/145" target="_blank">#145</a>)</p>
</li>
<li>
<p>Add a warning message for matrices that cannot be converted (<a rel="nofollow" href="https://github.com/RcppCore/RcppArmadillo/pull/147" target="_blank">#147</a>)</p>
</li>
<li>
<p>Add new vignette for sparse matrix support (<a rel="nofollow" href="https://github.com/RcppCore/RcppArmadillo/pull/152" target="_blank">#152</a>; Dirk in <a rel="nofollow" href="https://github.com/RcppCore/RcppArmadillo/pull/153" target="_blank">#153</a>)</p>
</li>
<li>
<p>Add support for sparse matrix conversion from Python SciPy (<a rel="nofollow" href="https://github.com/RcppCore/RcppArmadillo/pull/158" target="_blank">#158</a> addressing <a rel="nofollow" href="https://github.com/RcppCore/RcppArmadillo/issues/141" target="_blank">#141</a>)</p>
</li>
</ul>
</li>
<li>
<p>Optional return of row or column vectors in collapsed form if appropriate <code>#define</code> is set (Serguei Sokol in <a rel="nofollow" href="https://github.com/RcppCore/RcppArmadillo/pull/151" target="_blank">#151</a> and <a rel="nofollow" href="https://github.com/RcppCore/RcppArmadillo/pull/154" target="_blank">#154</a>)</p>
</li>
<li>
<p>Correct <code>speye()</code> for non-symmetric cases (Qiang Kou in <a rel="nofollow" href="https://github.com/RcppCore/RcppArmadillo/pull/150" target="_blank">#150</a> closing <a rel="nofollow" href="https://github.com/RcppCore/RcppArmadillo/issues/149" target="_blank">#149</a>).</p>
</li>
<li>
<p>Ensure tests using Scientific Python and reticulate are properly conditioned on the packages being present.</p>
</li>
<li>
<p>Added <code>.aspell/</code> directory with small local directory now supported by R-devel.</p>
</li>
</ul>
</blockquote>
<p>Courtesy of <a rel="nofollow" href="http://dirk.eddelbuettel.com/cranberries/" target="_blank">CRANberries</a>, there is a <a rel="nofollow" href="http://dirk.eddelbuettel.com/cranberries/2017/08/17#RcppArmadillo_0.7.960.1.0" target="_blank">diffstat report</a>. More detailed information is on the <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.armadillo.html" target="_blank">RcppArmadillo page</a>. Questions, comments etc should go to the <a rel="nofollow" href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">rcpp-devel mailing list</a> off the <a rel="nofollow" href="http://r-forge.r-project.org/projects/rcpp/" target="_blank">R-Forge</a> page.</p>
<p>
This post by <a rel="nofollow" href="http://dirk.eddelbuettel.com/" target="_blank">Dirk Eddelbuettel</a> originated on his <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/" target="_blank">Thinking inside the box</a> blog. Please report excessive re-aggregation in third-party for-profit settings.</p>
<p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://dirk.eddelbuettel.com/blog/2017/08/17#rcpparmadillo_0.7.960.1.0"> Thinking inside the box </a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/gI-pSUCtuMk" height="1"></a></div>