Variables | |
list | a = [0., 0., 0.] |
a_matrix = np.matrix(a); | |
string | cmd1 = "timeit np.array(a)" |
string | cmd2 = "timeit np.matrix(a)" |
string | cmd3 = "timeit quat.coeffs()" |
string | cmd4 = "timeit quat.coeffs()" |
string | cmd5 = "timeit np.asmatrix(quat.coeffs())" |
string | cmd6 = "timeit np.asarray(a_matrix)" |
ipython = get_ipython() | |
quat = eigenpy.Quaternion() | |
list bench-switch.a = [0., 0., 0.] |
Definition at line 13 of file bench-switch.py.
Definition at line 53 of file bench-switch.py.
Definition at line 15 of file bench-switch.py.
Definition at line 21 of file bench-switch.py.
string bench-switch.cmd3 = "timeit quat.coeffs()" |
Definition at line 32 of file bench-switch.py.
string bench-switch.cmd4 = "timeit quat.coeffs()" |
Definition at line 43 of file bench-switch.py.
string bench-switch.cmd5 = "timeit np.asmatrix(quat.coeffs())" |
Definition at line 48 of file bench-switch.py.
string bench-switch.cmd6 = "timeit np.asarray(a_matrix)" |
Definition at line 54 of file bench-switch.py.
bench-switch.ipython = get_ipython() |
Definition at line 10 of file bench-switch.py.
bench-switch.quat = eigenpy.Quaternion() |
Definition at line 12 of file bench-switch.py.