Brick
Loading...
Searching...
No Matches
eigen_interface.h
1#pragma once
2
3#include <Eigen/Dense>
4
5/**
6 * This header only serves to let you use Eigen's vectors and matrices without
7 * having to write out
8 * Eigen::Vector<double, DIM>
9 * Eigen::Matrix<double, ROWS, COLS>
10 *
11 * include this and use:
12 * EVec<DIM>
13 * EMAT<ROWS, COLS>
14 */
15template <int DIM>
16using EVec = Eigen::Vector<double, DIM>;
17
18template <int ROWS, int COLS>
19using EMat = Eigen::Matrix<double, ROWS, COLS>;