lpinterface
 All Classes Namespaces Files Functions Variables Enumerations Enumerator
lputil_soplex.hpp
1 #ifndef LPINTERFACE_LPUTIL_SOPLEX_H
2 #define LPINTERFACE_LPUTIL_SOPLEX_H
3 
4 #include "soplex.h"
5 
6 namespace lpint {
7 
8 namespace detail {
9 
10 inline const double* begin(const soplex::DVector& v) {
11  return v.get_const_ptr();
12 }
13 
14 inline const double* end(const soplex::DVector& v) {
15  const auto u = v.get_const_ptr();
16  return &u[v.dim()];
17 }
18 
19 } // namespace detail
20 
21 } // namespace lpint
22 
23 #endif // LPINTERFACE_LPUTIL_SOPLEX_H