summaryrefslogtreecommitdiffstats
path: root/src/eigen-test.cpp
blob: 436bf1a2cf51bc7588fced47c4a9685a00695228 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * This file is part of MXE. See LICENSE.md for licensing information.
 *
 * This code was originally found on:
 *   https://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;
}