mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-04-10 19:20:44 +01:00
Matrix: improvement to support Eigen expressions
This commit is contained in:
parent
4d25722736
commit
1a0cb2459e
@ -28,19 +28,11 @@ using namespace Latan;
|
|||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
// constructors ////////////////////////////////////////////////////////////////
|
// constructors ////////////////////////////////////////////////////////////////
|
||||||
DMat::DMat(void)
|
DMat::DMat(void)
|
||||||
: DMatBase()
|
: Base()
|
||||||
{}
|
|
||||||
|
|
||||||
DMat::DMat(const DMatBase &m)
|
|
||||||
: DMatBase(m)
|
|
||||||
{}
|
|
||||||
|
|
||||||
DMat::DMat(const DMat &m)
|
|
||||||
: DMatBase(m)
|
|
||||||
{}
|
{}
|
||||||
|
|
||||||
DMat::DMat(const unsigned int nRow, const unsigned int nCol)
|
DMat::DMat(const unsigned int nRow, const unsigned int nCol)
|
||||||
: DMatBase(nRow, nCol)
|
: Base(nRow, nCol)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
unsigned int DMat::getType(void) const
|
unsigned int DMat::getType(void) const
|
||||||
|
@ -26,24 +26,25 @@
|
|||||||
|
|
||||||
BEGIN_NAMESPACE
|
BEGIN_NAMESPACE
|
||||||
|
|
||||||
// Eigen aliases
|
class DMat: public Eigen::MatrixXd, public IoObject
|
||||||
typedef Eigen::MatrixXd DMatBase;
|
|
||||||
typedef Eigen::MatrixXcd CMatBase;
|
|
||||||
typedef Eigen::VectorXd DVecBase;
|
|
||||||
typedef Eigen::VectorXcd CVecBase;
|
|
||||||
|
|
||||||
class DMat: public DMatBase, public IoObject
|
|
||||||
{
|
{
|
||||||
|
private:
|
||||||
|
typedef Eigen::MatrixXd Base;
|
||||||
public:
|
public:
|
||||||
// constructors
|
// constructors
|
||||||
DMat(void);
|
DMat(void);
|
||||||
DMat(const DMatBase &m);
|
|
||||||
DMat(const DMat &m);
|
|
||||||
DMat(const unsigned int nRow, const unsigned int nCol);
|
DMat(const unsigned int nRow, const unsigned int nCol);
|
||||||
|
template <typename Derived>
|
||||||
|
DMat(const Eigen::EigenBase<Derived> &m);
|
||||||
// IO
|
// IO
|
||||||
virtual unsigned int getType(void) const;
|
virtual unsigned int getType(void) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <typename Derived>
|
||||||
|
DMat::DMat(const Eigen::EigenBase<Derived> &m)
|
||||||
|
: Base(m)
|
||||||
|
{}
|
||||||
|
|
||||||
END_NAMESPACE
|
END_NAMESPACE
|
||||||
|
|
||||||
#endif // Latan_Mat_hpp_
|
#endif // Latan_Mat_hpp_
|
||||||
|
Loading…
x
Reference in New Issue
Block a user