7 for (
int i=0;
i<v.size();
i++){
8 l.append(boost::python::object(v[
i]));
14 for (
int i=0;
i<3;
i++){
15 for (
int j=0;
j<3;
j++){
16 l.append(boost::python::object(M(
i,
j)));
24 for (
int i=0;
i<PySequence_Size(pyo);
i++) {
25 v[
i] = boost::python::extract<double>(PySequence_GetItem(pyo,
i));
31 for (
int i=0;
i<9;
i++) {
32 M(
i/3,
i%3) = boost::python::extract<double>(PySequence_GetItem(pyo,
i));
static void Matrix33ToPyList(const hrp::Matrix33 &M, boost::python::list &l)
static void PyListToMatrix33(PyObject *pyo, hrp::Matrix33 &M)
def j(str, encoding="cp932")
void VectorToPyList(const T &v, boost::python::list &l)
void PyListToVector(PyObject *pyo, T &v)