1 from __future__
import print_function
6 eigenpy.switchToNumpyMatrix()
7 quat = eigenpy.Quaternion()
9 coeffs_vector = quat.coeffs()
10 print(type(coeffs_vector))
12 assert isinstance(coeffs_vector,np.matrixlib.defmatrix.matrix)
13 assert eigenpy.getNumpyType() == np.matrix
16 eigenpy.switchToNumpyArray()
17 coeffs_array = quat.coeffs()
18 print(type(coeffs_array))
20 assert isinstance(coeffs_vector,np.ndarray)
21 assert eigenpy.getNumpyType() == np.ndarray