Skip to content

Commit a6a9417

Browse files
committed
core: remote std::cerr
1 parent 4bdac86 commit a6a9417

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

include/eigenpy/eigen-from-python.hpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -175,21 +175,12 @@ namespace eigenpy
175175

176176
if(PyArray_DIMS(pyArray)[0] > 1 && PyArray_DIMS(pyArray)[1] > 1)
177177
{
178-
#ifndef NDEBUG
179-
std::cerr << "The number of dimension of the object does not correspond to a vector" << std::endl;
180-
#endif
181178
return 0;
182179
}
183180

184181
if(((PyArray_DIMS(pyArray)[0] == 1) && (MatType::ColsAtCompileTime == 1))
185182
|| ((PyArray_DIMS(pyArray)[1] == 1) && (MatType::RowsAtCompileTime == 1)))
186183
{
187-
#ifndef NDEBUG
188-
if(MatType::ColsAtCompileTime == 1)
189-
std::cerr << "The object is not a column vector" << std::endl;
190-
else
191-
std::cerr << "The object is not a row vector" << std::endl;
192-
#endif
193184
return 0;
194185
}
195186

@@ -217,9 +208,6 @@ namespace eigenpy
217208

218209
if(PyArray_NDIM(pyArray) != 2)
219210
{
220-
#ifndef NDEBUG
221-
std::cerr << "The number of dimension of the object is not correct." << std::endl;
222-
#endif
223211
return 0;
224212
}
225213

@@ -243,9 +231,6 @@ namespace eigenpy
243231
if(!(PyArray_FLAGS(pyArray) & NPY_ALIGNED))
244232
#endif
245233
{
246-
#ifndef NDEBUG
247-
std::cerr << "NPY non-aligned matrices are not implemented." << std::endl;
248-
#endif
249234
return 0;
250235
}
251236

0 commit comments

Comments
 (0)