Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include </home/nilay/mymlpack/mlpack/src/mlpack/core.hpp>
- using namespace std;
- using namespace mlpack;
- int main()
- {
- arma::mat A = arma::randu(5,5);
- arma::uvec u = mlpack::ind_sub::ind2sub(arma::size(A), 3);
- u.print();
- return 0;
- }
Add Comment
Please, Sign In to add comment