vector.h 622 Bytes
Newer Older
Erik Strand's avatar
Erik Strand committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#ifndef CPP_STARTER_VECTOR_H
#define CPP_STARTER_VECTOR_H

#include <Eigen/Core>

namespace cpp_starter {

//--------------------------------------------------------------------------------------------------
template <typename T>
using Vector2 = Eigen::Matrix<T, 2, 1>;

//--------------------------------------------------------------------------------------------------
template <typename T>
using Vector3 = Eigen::Matrix<T, 3, 1>;

//--------------------------------------------------------------------------------------------------
template <typename T>
using VectorX = Eigen::Matrix<T, Eigen::Dynamic, 1>;

}

#endif