File tree 1 file changed +20
-0
lines changed
Filter options
doc/release/upcoming_changes 1 file changed +20
-0
lines changed
Original file line number Diff line number Diff line change
1
+ New functions for matrix-vector and vector-matrix products
2
+ ----------------------------------------------------------
3
+
4
+ Two new generalized ``ufunc``s were defined:
5
+
6
+ * `numpy.matvec` - matrix-vector product, treating the arguments as
7
+ stacks of matrices and column vectors, respectively.
8
+
9
+ * `numpy.vecmat` - vector-matrix product, treating the arguments as
10
+ stacks of column vectors and matrices, respectively. For complex
11
+ vectors, the conjugate is taken.
12
+
13
+ These add to the existing `numpy.matmul` as well as to `numpy.vecdot`,
14
+ which is also new in numpy 2.0.
15
+
16
+ Note that `numpy.matmul` never takes a complex conjugate, also not
17
+ when its left input is a vector, while both `numpy.vecdot` and
18
+ `numpy.vecmat` do take the conjugate for complex vectors on the
19
+ left-hand side (which are taken to be the ones that are transposed,
20
+ following the physics convention).
You can’t perform that action at this time.
0 commit comments