Commit 6e6e4d9e authored by David Bommes's avatar David Bommes

fixed eigen vector alignment

git-svn-id: http://www.openflipper.org/svnrepo/CoMISo/trunk@113 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent ce22774a
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
#include <CoMISo/Config/CoMISoDefines.hh> #include <CoMISo/Config/CoMISoDefines.hh>
#include "NConstraintInterface.hh" #include "NConstraintInterface.hh"
#include <gmm/gmm.h> #include <Eigen/StdVector>
//== FORWARDDECLARATIONS ====================================================== //== FORWARDDECLARATIONS ======================================================
...@@ -35,8 +36,7 @@ class COMISODLLEXPORT LinearConstraint : public NConstraintInterface ...@@ -35,8 +36,7 @@ class COMISODLLEXPORT LinearConstraint : public NConstraintInterface
{ {
public: public:
// use c-arrays as vectors for gmm // sparse vector type
typedef gmm::array1D_reference<double*> VectorPT;
typedef NConstraintInterface::SVectorNC SVectorNC; typedef NConstraintInterface::SVectorNC SVectorNC;
// different types of constraints // different types of constraints
...@@ -80,12 +80,12 @@ private: ...@@ -80,12 +80,12 @@ private:
}; };
// support std vectors
EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(LinearConstraint);
//============================================================================= //=============================================================================
} // namespace COMISO } // namespace COMISO
//============================================================================= //=============================================================================
// support std vectors
EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(COMISO::LinearConstraint);
//=============================================================================
#endif // ACG_LINEARCONSTRAINT_HH defined #endif // ACG_LINEARCONSTRAINT_HH defined
//============================================================================= //=============================================================================
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment