Neal Becker
2010-02-03 16:06:59 UTC
class csm { ...
pyublas::numpy_vector<int> pdlut;
};
class_<csm> ...
.def (pyublas::by_value_ro_member ("pdlut", &csm::pdlut))
*Python*
csm.pdlut
Out[5]: <property object at 0x2203890>
? I expected to see the numpy_vector, not 'property object'. What's wrong?
pyublas::numpy_vector<int> pdlut;
};
class_<csm> ...
.def (pyublas::by_value_ro_member ("pdlut", &csm::pdlut))
*Python*
csm.pdlut
Out[5]: <property object at 0x2203890>
? I expected to see the numpy_vector, not 'property object'. What's wrong?