8000 allow premultiplication of SE(n) by numpy array, have to tell numpy t… · kh11kim/spatialmath-python@d7a1c8f · GitHub
[go: up one dir, main page]

Skip to content

Commit d7a1c8f

Browse files
committed
allow premultiplication of SE(n) by numpy array, have to tell numpy to let us have the __rmul__
1 parent 8dd9a78 commit d7a1c8f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spatialmath/baseposematrix.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ class BasePoseMatrix(BasePoseList):
109109
_ansimatrix = False
110110
_ansiformatter = None
111111

112+
__array_ufunc__ = None # allow pose matrices operators with NumPy values
113+
112114
def __new__(cls, *args, **kwargs):
113115
"""
114116
Create the subclass instance (superclass method)
316D

0 commit comments

Comments
 (0)
0