Commit f74ae87f authored by David Frank's avatar David Frank
Browse files

Avoid #157 for now

parent 3554361d
...@@ -139,10 +139,10 @@ namespace elsa ...@@ -139,10 +139,10 @@ namespace elsa
template <typename data_t> template <typename data_t>
data_t& DataContainer<data_t>::operator()(IndexVector_t coordinate) data_t& DataContainer<data_t>::operator()(IndexVector_t coordinate)
{ {
const auto arr = coordinate.array(); // const auto arr = coordinate.array();
const auto shape = _dataDescriptor->getNumberOfCoefficientsPerDimension().array(); // const auto shape = _dataDescriptor->getNumberOfCoefficientsPerDimension().array();
ELSA_VERIFY((arr >= 0).all()); // ELSA_VERIFY((arr >= 0).all());
ELSA_VERIFY((arr < shape).all()); // ELSA_VERIFY((arr < shape).all());
return (*this)[_dataDescriptor->getIndexFromCoordinate(std::move(coordinate))]; return (*this)[_dataDescriptor->getIndexFromCoordinate(std::move(coordinate))];
} }
...@@ -150,10 +150,10 @@ namespace elsa ...@@ -150,10 +150,10 @@ namespace elsa
template <typename data_t> template <typename data_t>
const data_t& DataContainer<data_t>::operator()(IndexVector_t coordinate) const const data_t& DataContainer<data_t>::operator()(IndexVector_t coordinate) const
{ {
const auto arr = coordinate.array(); // const auto arr = coordinate.array();
const auto shape = _dataDescriptor->getNumberOfCoefficientsPerDimension().array(); // const auto shape = _dataDescriptor->getNumberOfCoefficientsPerDimension().array();
ELSA_VERIFY((arr >= 0).all()); // ELSA_VERIFY((arr >= 0).all());
ELSA_VERIFY((arr < shape).all()); // ELSA_VERIFY((arr < shape).all());
return (*this)[_dataDescriptor->getIndexFromCoordinate(coordinate)]; return (*this)[_dataDescriptor->getIndexFromCoordinate(coordinate)];
} }
......
Supports Markdown
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