arma: Transform and range-based for loop
arma::transform
The current arma::transform works similar to std::generate, as in, it applies a functor to the provided container and stores it inside the same container. This also means the functionality of std::transform is missing, i.e., applies functor and store to another container.
range-based for loop
It would be nice to have
for(arma::mat matrix: my_cube) { //code }
ofcourse, this may cause issue with the existing API where the above code returns "double" instead of matrix. So I would like to discuss your thoughts on this.
Best NGS IRC: @jonpsy