Commit e7d51df8 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

disable console outputs for non-contiguous arrays

parent 742ea4dc
......@@ -114,12 +114,16 @@ template<typename T, size_t ndim> class mav
{ return d; }
bool last_contiguous() const
{ return (str[ndim-1]==1) || (str[ndim-1]==0); }
void check_storage(const char *name) const
if (!last_contiguous())
cout << "Array '" << name << "': last dimension is not contiguous.\n"
"This may slow down computation significantly!\n";
void check_storage(const char * /*name*/) const {}
bool contiguous() const
ptrdiff_t stride=1;
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