Discussion:
[Pyublas] array element access efficiency
Neal Becker
2010-05-07 17:55:04 UTC
Permalink
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_)];
}

Loading...