Opened 17 years ago
Closed 17 years ago
#482 closed Bugs (None)
uBLAS::subslice doesn't work
| Reported by: | nobody | Owned by: | mistevens |
|---|---|---|---|
| Milestone: | Component: | None | |
| Version: | None | Severity: | |
| Keywords: | Cc: |
Description
Hello all,
I had a problem with compiling a following code for
testing subslice() on uBLAS:
-- test.cpp
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/vector_proxy.hpp>
#include <boost/numeric/ublas/io.hpp>
int main () {
using namespace boost::numeric::ublas;
vector<double> v (3);
for (int i = 0; i < 3; ++ i)
boost::numeric::ublas::subslice (v, 0, 1, 3) (i) = i;
std::cout << v << std::endl;
}
-- end of test.cpp
% g++ test.cpp
test.cpp: In function `int main()':
test.cpp:9: error: no matching function for call to
`subslice(boost::numeric::ub
las::vector<double, boost::numeric::ublas::
unbounded_array<double, std::allocato
r<double> > >&, int, int, int)'
I guess this is due to some typos on vector_proxy.hpp. I
hope attached patch (from Revision 1.45) helps.
Regards,
Shun Sakuraba
sakuraba {at} cb.k.u-tokyo.ac.jp
Note:
See TracTickets
for help on using tickets.
