Merge pull request #389 from brad/eigen_test
Minor modifications by me: * Commits squashed to one * Added "--lib" to the `pkg-config` command Merged-by: Timothy Gu <timothygu99@gmail.com>pull/374/head
commit
c3380be0df
@ -0,0 +1,21 @@
|
||||
/*
|
||||
* This file is part of MXE.
|
||||
* See index.html for further information.
|
||||
*
|
||||
* This code was originally found on:
|
||||
* http://eigen.tuxfamily.org/dox/GettingStarted.html
|
||||
*/
|
||||
|
||||
#include <Eigen/Dense>
|
||||
|
||||
using Eigen::MatrixXd;
|
||||
|
||||
int main()
|
||||
{
|
||||
MatrixXd m(2,2);
|
||||
m(0,0) = 3;
|
||||
m(1,0) = 2.5;
|
||||
m(0,1) = -1;
|
||||
m(1,1) = m(1,0) + m(0,1);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in new issue