2014-02-06 18:52:13 +00:00
|
|
|
/*
|
|
|
|
* Mat.hpp, part of LatAnalyze 3
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013 - 2014 Antonin Portelli
|
|
|
|
*
|
|
|
|
* LatAnalyze 3 is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* LatAnalyze 3 is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef Latan_Mat_hpp_
|
|
|
|
#define Latan_Mat_hpp_
|
2013-05-21 18:02:42 +01:00
|
|
|
|
|
|
|
#include <latan/Eigen/Dense>
|
|
|
|
#include <latan/Global.hpp>
|
|
|
|
#include <latan/IOObject.hpp>
|
|
|
|
|
2014-02-06 18:52:13 +00:00
|
|
|
BEGIN_NAMESPACE
|
2013-05-21 18:02:42 +01:00
|
|
|
|
|
|
|
// Eigen aliases
|
|
|
|
typedef Eigen::MatrixXd DMatBase;
|
|
|
|
typedef Eigen::MatrixXcd CMatBase;
|
|
|
|
typedef Eigen::VectorXd DVecBase;
|
|
|
|
typedef Eigen::VectorXcd CVecBase;
|
|
|
|
|
2014-01-22 15:57:47 +00:00
|
|
|
class DMat: public DMatBase, public IoObject
|
2013-05-21 18:02:42 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
// constructors
|
|
|
|
DMat(void);
|
2014-02-10 11:19:56 +00:00
|
|
|
DMat(const DMatBase &m);
|
|
|
|
DMat(const DMat &m);
|
2014-01-22 15:57:47 +00:00
|
|
|
DMat(const unsigned int nRow, const unsigned int nCol);
|
2013-05-21 18:02:42 +01:00
|
|
|
// IO
|
2014-02-06 18:08:46 +00:00
|
|
|
virtual unsigned int getType(void) const;
|
2013-05-21 18:02:42 +01:00
|
|
|
};
|
|
|
|
|
2014-02-06 18:52:13 +00:00
|
|
|
END_NAMESPACE
|
2013-05-21 18:02:42 +01:00
|
|
|
|
2014-02-06 18:52:13 +00:00
|
|
|
#endif // Latan_Mat_hpp_
|