cx_cube_from_ComplexVector | R Documentation |
This workaround for parsing cubes was neccessary at development time because there was a (presumable) bug in RcppArmadillo that sometimes caused the parsing of arma::cx_cube objects to fail, such that the function received an un-initialized object instead of the parsed one.
cx_cube_from_ComplexVector(x)
The workaround parses an Rcpp vector instead, and manually copies the data in an arma::cx_cube object. Besides being redundant, it also makes the code less readable and it is hoped that this workaround can be removed in future revisions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.