1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-14 09:45:36 +00:00

portability fixes

This commit is contained in:
Antonin Portelli 2014-02-20 20:20:37 +00:00
parent 3510898ee9
commit 79e5a39a36
4 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@
// copy/assignement from Eigen expression // copy/assignement from Eigen expression
#define EIGEN_EXPR_CTOR(ctorName, Class, Base, EigenBase) \ #define EIGEN_EXPR_CTOR(ctorName, Class, Base, EigenBase) \
template <typename Derived>\ template <typename Derived>\
ctorName(const Eigen::EigenBase<Derived> &m): Base(m) {};\ ctorName(const Eigen::EigenBase<Derived> &m): Base(m) {}\
template<typename Derived>\ template<typename Derived>\
Class & operator=(const Eigen::EigenBase<Derived> &m)\ Class & operator=(const Eigen::EigenBase<Derived> &m)\
{\ {\

View File

@ -116,7 +116,7 @@ void AsciiFile::save(const DMat &m, const std::string &name)
isParsed_ = false; isParsed_ = false;
fileStream_ << "#L latan_begin mat " << name << endl; fileStream_ << "#L latan_begin mat " << name << endl;
fileStream_ << m.cols() << endl; fileStream_ << m.cols() << endl;
fileStream_ << scientific << m << defaultfloat << endl; fileStream_ << scientific << m << endl;
fileStream_ << "#L latan_end mat " << endl; fileStream_ << "#L latan_end mat " << endl;
} }

View File

@ -34,7 +34,7 @@ public:
// constructors // constructors
DMat(void); DMat(void);
DMat(const unsigned int nRow, const unsigned int nCol); DMat(const unsigned int nRow, const unsigned int nCol);
EIGEN_EXPR_CTOR(DMat, DMat, Base, MatrixBase); EIGEN_EXPR_CTOR(DMat, DMat, Base, MatrixBase)
// IO // IO
virtual IoType getType(void) const; virtual IoType getType(void) const;
}; };

View File

@ -39,7 +39,7 @@ public:
StatArray(void); StatArray(void);
StatArray(const unsigned int size); StatArray(const unsigned int size);
EIGEN_EXPR_CTOR(StatArray, unique_arg(StatArray<T, offset>), Base, EIGEN_EXPR_CTOR(StatArray, unique_arg(StatArray<T, offset>), Base,
ArrayBase); ArrayBase)
// destructor // destructor
virtual ~StatArray(void); virtual ~StatArray(void);
// access // access