MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/Imath / register_M33Array

Function register_M33Array

src/python/PyImath/PyImathMatrix33.cpp:1220–1237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1218
1219template <class T>
1220class_<FixedArray<IMATH_NAMESPACE::Matrix33<T> > >
1221register_M33Array()
1222{
1223 class_<FixedArray<IMATH_NAMESPACE::Matrix33<T> > > matrixArray_class = FixedArray<IMATH_NAMESPACE::Matrix33<T> >::register_("Fixed length array of IMATH_NAMESPACE::Matrix33");
1224 matrixArray_class
1225 .def("__init__", make_constructor(M33Array_constructor<T>))
1226 .def("__setitem__", &setM33ArrayItem<T>)
1227 .def("inverse", &M33Array_inverse<T>,
1228 "Return M^-1 for each element M.",
1229 (args("vector")))
1230 .def("__rmul__", &M33Array_rmulVec3<T>)
1231 .def("__rmul__", &M33Array_rmulVec3Array<T>)
1232 ;
1233
1234 add_comparison_functions(matrixArray_class);
1235
1236 return matrixArray_class;
1237}
1238
1239template PYIMATH_EXPORT class_<IMATH_NAMESPACE::Matrix33<float> > register_Matrix33<float>();
1240template PYIMATH_EXPORT class_<IMATH_NAMESPACE::Matrix33<double> > register_Matrix33<double>();

Callers

nothing calls this directly

Calls 1

add_comparison_functionsFunction · 0.70

Tested by

no test coverage detected