From 3716621fe4ccbb9107e7aec9b17463253178e111 Mon Sep 17 00:00:00 2001 From: Vaibhav Thakkar Date: Tue, 17 Mar 2020 15:57:15 +0530 Subject: [PATCH] Fix bug in hpolytope print function (#68) --- include/convex_bodies/hpolytope.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/convex_bodies/hpolytope.h b/include/convex_bodies/hpolytope.h index 18e8ddabe..e883a6e10 100644 --- a/include/convex_bodies/hpolytope.h +++ b/include/convex_bodies/hpolytope.h @@ -168,12 +168,12 @@ class HPolytope{ // print polytope in input format void print() { #ifdef VOLESTI_DEBUG - std::cout << " " << A.rows() << " " << _d + 1 << " float" << std::endl; + std::cout << " " << A.rows() << " " << _d << " float" << std::endl; #endif for (unsigned int i = 0; i < A.rows(); i++) { for (unsigned int j = 0; j < _d; j++) { #ifdef VOLESTI_DEBUG - std::cout << -A(i, j) << " "; + std::cout << A(i, j) << " "; #endif } #ifdef VOLESTI_DEBUG