[Rcpp-devel] [ANN] New release RcppArmadillo 0.10.1.0.1 on drat

Dirk Eddelbuettel edd at debian.org
Wed Oct 21 17:39:28 CEST 2020


For the benefit of the list, Conrad sent the following in private email:

  Instead of using operator<< to initialise matrices, standard C++11
  initialiser lists can be used.
  Example:
  mat A = { {1, 3, 5}, {2, 4, 6} };
  vec V = { 1, 2, 3 };

  More info:
  arma.sourceforge.net/docs.html#element_initialisation

Dirk

-- 
https://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


More information about the Rcpp-devel mailing list