1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-06-23 17:22:02 +01:00

more templatisation/cleaning of data types

This commit is contained in:
2014-04-07 19:29:47 +01:00
parent f79533c5ce
commit a6b96b34bb
6 changed files with 53 additions and 33 deletions

View File

@ -76,16 +76,13 @@ template <typename Derived>
using MatExpr = Eigen::MatrixBase<Derived>;
template <typename T, int nRow = dynamic, int nCol = dynamic>
using Mat = Eigen::Matrix<T, nRow, nCol>;
using MatBase = Eigen::Matrix<T, nRow, nCol>;
typedef Mat<int> IMat;
typedef Mat<long int> LMat;
typedef Mat<double> DMatBase;
typedef Mat<std::complex<double>> CMat;
typedef MatBase<double> DMatBase;
// vector types
template <typename T>
using Vec = Mat<T, dynamic, 1>;
using Vec = MatBase<T, dynamic, 1>;
typedef Vec<int> IVec;
typedef Vec<long int> LVec;
@ -118,7 +115,7 @@ template <typename Derived>
using ConstMap = Eigen::Map<const Derived>;
// Index type //////////////////////////////////////////////////////////////////
typedef DMatBase::Index Index;
typedef MatBase<double>::Index Index;
// Placeholder type ////////////////////////////////////////////////////////////
struct PlaceHolder {};