comparison src/armadillo-test.cpp @ 2720:82d1044a4434

added armadillo 3.4.0 with test
author Christian Frisson <christian.frisson@gmail.com>
date Sun, 09 Sep 2012 17:01:46 +0200
parents
children
comparison
equal deleted inserted replaced
2718:c38f62ba10b1 2720:82d1044a4434
1 /*
2 * This file is part of MXE.
3 * See index.html for further information.
4 */
5
6 #include <armadillo>
7
8 using namespace arma;
9
10 int main()
11 {
12 mat A = randu<mat>(50,50);
13 mat B = trans(A)*A; // generate a symmetric matrix
14
15 vec eigval;
16 mat eigvec;
17
18 // use standard algorithm by default
19 eig_sym(eigval, eigvec, B);
20
21 // use divide & conquer algorithm
22 eig_sym(eigval, eigvec, B, "dc");
23 return 0;
24 }