Skip to content

Commit bde6e71

Browse files
committed
allow SEn * SE(n), result is an SE(m) array
update comments
1 parent 85b983c commit bde6e71

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spatialmath/baseposematrix.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ def printline(self, **kwargs):
608608
:param file: file to write formatted string to. [default, stdout]
609609
:type file: file object
610610
611+
611612
Print pose in a compact single line format. If ``X`` has multiple
612613
values, print one per line.
613614
@@ -1121,12 +1122,15 @@ def __mul__(
11211122
else:
11221123
# SO(n) x vector
11231124
return left.A @ v
1125+
elif left.isSE and right.shape == left.shape:
1126+
# SE x conforming matrix
1127+
return left.A @ right
11241128
else:
11251129
if left.isSE:
1126-
# SE(n) x array
1130+
# SE(n) x [set of vectors]
11271131
return base.h2e(left.A @ base.e2h(right))
11281132
else:
1129-
# SO(n) x array
1133+
# SO(n) x [set of vectors]
11301134
return left.A @ right
11311135

11321136
elif len(left) > 1 and base.isvector(right, left.N):

0 commit comments

Comments
 (0)