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 | e...@debian.org
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to