File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -108,3 +108,19 @@ Exceptions
108
108
:nosignatures:
109
109
110
110
dpnp.linalg.LinAlgError
111
+
112
+ Linear algebra on several matrices at once
113
+ ------------------------------------------
114
+
115
+ Several of the linear algebra routines listed above are able to compute results
116
+ for several matrices at once, if they are stacked into the same array.
117
+
118
+ This is indicated in the documentation via input parameter specifications such
119
+ as ``a : (..., M, M) {dpnp.ndarray, usm_ndarray} ``. This means that if for
120
+ instance given an input array ``a.shape == (N, M, M) ``, it is interpreted as a
121
+ "stack" of N matrices, each of size M-by-M. Similar specification applies to
122
+ return values, for instance the determinant has ``det : (...) `` and will in
123
+ this case return an array of shape ``det(a).shape == (N,) ``. This generalizes
124
+ to linear algebra operations on higher-dimensional arrays: the last 1 or 2
125
+ dimensions of a multidimensional array are interpreted as vectors or matrices,
126
+ as appropriate for each operation.
You can’t perform that action at this time.
0 commit comments