Guest User

Untitled

a guest
Jun 6th, 2016
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include<iostream>
  2. #include </home/nilay/mymlpack/mlpack/src/mlpack/core.hpp>
  3. using namespace std;
  4. using namespace mlpack;
  5. int main()
  6. {
  7.  
  8.   arma::mat A = arma::randu(5,5);
  9.   arma::uvec u = mlpack::ind_sub::ind2sub(arma::size(A), 3);
  10.   u.print();
  11.   return 0;
  12. }
Add Comment
Please, Sign In to add comment