Developer Documentation
|
The matrix type Vector is mapped to python to handle Vector operations.
The integrated conversion can map the C++ Vector type to and from a tuple, a list or a numpy array. The preferred choice is the numpy array. Tuple and list have to contain 3 elements. A numpy array has to have a dimension of 1, with 3 elements.
Creating a matrix in python is the done like in the following example:
The conversion from C++ to python will always create a numpy array on the python side.