8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54061e2 commit 9b7ef66Copy full SHA for 9b7ef66
spatialmath/baseposematrix.py
@@ -560,6 +560,19 @@ def simplify(self):
560
vf = np.vectorize(sym.simplify)
561
return self.__class__([vf(x) for x in self.data], check=False)
562
563
+ def stack(self):
564
+ """
565
+ Convert to 3-dimensional matrix
566
+
567
+ :return: 3-dimensional NumPy array
568
+ :rtype: ndarray(n,n,m)
569
570
+ Converts the value to a 3-dimensional NumPy array where the values are
571
+ stacked along the third axis. The first two dimensions are given by
572
+ ``self.shape``.
573
574
+ return np.dstack(self.data)
575
576
# ----------------------- i/o stuff
577
578
def printline(self, *args, **kwargs):
0 commit comments