Mercurial > mxe-octave
view src/armadillo-test.cpp @ 3919:282ca0892ed0
of-ga: add to mxe
* src/of-ga.mk: new file
* build_packages.m: add install of ga
* index.html: add of-ga
* Makefile.in: add ga
* dist-files.mk: add of-ga.mk
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sun, 26 Apr 2015 09:30:29 -0400 |
parents | 82d1044a4434 |
children |
line wrap: on
line source
/* * This file is part of MXE. * See index.html for further information. */ #include <armadillo> using namespace arma; int main() { mat A = randu<mat>(50,50); mat B = trans(A)*A; // generate a symmetric matrix vec eigval; mat eigvec; // use standard algorithm by default eig_sym(eigval, eigvec, B); // use divide & conquer algorithm eig_sym(eigval, eigvec, B, "dc"); return 0; }