Mercurial > mxe-octave
view src/armadillo-test.cpp @ 5430:98bcc037fad7
* src/hdf5.mk: Update version to 1.12.0. Use cmake for Windows cross targets.
* src/hdf5-1-fixes.patch: Remove patch.
* src/mingw-hdf5-1.patch: Update patch.
* dist-files.mk: Remove file from list.
* src/of-communictaions.mk: Use pkg-config for linking in hdf5.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Mon, 25 May 2020 18:14:52 +0200 |
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; }