mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-14 09:45:36 +00:00
portability fixes
This commit is contained in:
parent
3510898ee9
commit
79e5a39a36
@ -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)\
|
||||||
{\
|
{\
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user