mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-08-05 07:17:11 +01:00
first experimental IO that read matrices from a bison/flex parser
This commit is contained in:
29
latan/Mat.hpp
Normal file
29
latan/Mat.hpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef LATAN_MAT_HPP_
|
||||
#define LATAN_MAT_HPP_
|
||||
|
||||
#include <latan/Eigen/Dense>
|
||||
#include <latan/Global.hpp>
|
||||
#include <latan/IOObject.hpp>
|
||||
|
||||
LATAN_BEGIN_CPPDECL
|
||||
|
||||
// Eigen aliases
|
||||
typedef Eigen::MatrixXd DMatBase;
|
||||
typedef Eigen::MatrixXcd CMatBase;
|
||||
typedef Eigen::VectorXd DVecBase;
|
||||
typedef Eigen::VectorXcd CVecBase;
|
||||
|
||||
class DMat: public DMatBase, public IOObject
|
||||
{
|
||||
public:
|
||||
// constructors
|
||||
DMat(void);
|
||||
DMat(const DMat& M);
|
||||
DMat(unsigned int nrow, unsigned int ncol);
|
||||
// IO
|
||||
virtual IOTypes::Type IOType(void);
|
||||
};
|
||||
|
||||
LATAN_END_CPPDECL
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user