Discussion:
[Pyublas] no slice?
Neal Becker
2010-05-27 15:01:06 UTC
Permalink
Tried subrange and project on a pyublas::matrix. Got:
[subrange]
cpm.cc:973: error: no matching function for call to
'subrange(pyublas::numpy_matrix<double,
boost::numeric::ublas::basic_row_major<long unsigned int, long int> >&, int,
size_t, int, size_t)'
[project]
cpm.cc:973: error: no matching function for call to
'project(pyublas::numpy_matrix<double,
boost::numeric::ublas::basic_row_major<long unsigned int, long int> >&,
boost::numeric::ublas::range, boost::numeric::ublas::range)'

I thought pyublas::numpy_matrix was a ublas::matrix and subrange should work.
No?
Andreas Kloeckner
2010-05-27 16:16:53 UTC
Permalink
Post by Neal Becker
[subrange]
cpm.cc:973: error: no matching function for call to
'subrange(pyublas::numpy_matrix<double,
boost::numeric::ublas::basic_row_major<long unsigned int, long int> >&, int,
size_t, int, size_t)'
[project]
cpm.cc:973: error: no matching function for call to
'project(pyublas::numpy_matrix<double,
boost::numeric::ublas::basic_row_major<long unsigned int, long int> >&,
boost::numeric::ublas::range, boost::numeric::ublas::range)'
I thought pyublas::numpy_matrix was a ublas::matrix and subrange should work.
No?
I'm pretty sure I've done this exact thing--not sure what could be
wrong. If you can't figure it out, send a reduced example to the list,
and I'll help.

Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.tiker.net/pipermail/pyublas/attachments/20100527/f4b63168/attachment.pgp>
Neal Becker
2010-05-27 17:59:55 UTC
Permalink
Post by Andreas Kloeckner
Post by Neal Becker
[subrange]
cpm.cc:973: error: no matching function for call to
'subrange(pyublas::numpy_matrix<double,
boost::numeric::ublas::basic_row_major<long unsigned int, long int> >&,
int, size_t, int, size_t)'
[project]
cpm.cc:973: error: no matching function for call to
'project(pyublas::numpy_matrix<double,
boost::numeric::ublas::basic_row_major<long unsigned int, long int> >&,
boost::numeric::ublas::range, boost::numeric::ublas::range)'
I thought pyublas::numpy_matrix was a ublas::matrix and subrange should
work. No?
I'm pretty sure I've done this exact thing--not sure what could be
wrong. If you can't figure it out, send a reduced example to the list,
and I'll help.
Andreas
Forgot #include <boost/numeric/ublas/matrix_proxy.hpp>

Loading...