Skip to content
Snippets Groups Projects
Commit a7dc546c authored by Andrei Herdt's avatar Andrei Herdt Committed by Olivier Stasse
Browse files

Struct for linear inequality sets

- Compressed matrices x.D and y.D and dense vector dc
- clear() method for zeroing
parent 5651e578
No related merge requests found
......@@ -178,4 +178,11 @@ namespace PatternGeneratorJRL
}
}
void linear_inequality_t::clear()
{
x.D.clear();
y.D.clear();
dc.clear();
}
}
......@@ -31,6 +31,7 @@
#include <jrl/mal/matrixabstractlayer.hh>
#include <boost/numeric/ublas/matrix_sparse.hpp>
#include <boost/numeric/ublas/matrix_proxy.hpp>
namespace PatternGeneratorJRL
{
......@@ -186,6 +187,27 @@ namespace PatternGeneratorJRL
};
typedef struct convex_hull_s convex_hull_t;
/// \brief Linear inequalities set
struct linear_inequality_s
{
struct coordinate_s
{
boost_ublas::compressed_matrix<double, boost_ublas::column_major> D;
};
struct coordinate_s x, y;
boost_ublas::vector<double> dc;
int type;
void clear();
};
typedef struct linear_inequality_s
linear_inequality_t;
}
#endif /* _PATTERN_GENERATOR_INTERNAL_PRIVATE_H_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment