Neal Becker
2010-05-07 17:55:04 UTC
If I have a
pyublas::numpy_matrix<int> M
for example, I think I should expect the efficiency of element access
M(x,y)
to be similar to that of the underlying ublas class, correct?
I think it will simply fall back on
ublas/matrix.hpp:
// Element access
BOOST_UBLAS_INLINE
const_reference operator () (size_type i, size_type j) const {
return data () [layout_type::element (i, size1_, j, size2_)];
}
pyublas::numpy_matrix<int> M
for example, I think I should expect the efficiency of element access
M(x,y)
to be similar to that of the underlying ublas class, correct?
I think it will simply fall back on
ublas/matrix.hpp:
// Element access
BOOST_UBLAS_INLINE
const_reference operator () (size_type i, size_type j) const {
return data () [layout_type::element (i, size1_, j, size2_)];
}