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 | [email protected]
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel