Skip to content

Commit 78597f9

Browse files
authored
Fix typo in docstring of matvec and vecmat (#2503)
The PR updates maths in summary of `dpnp.matvec` and `dpnp.vecmat` to fix the typo.
1 parent bad9474 commit 78597f9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2929
### Fixed
3030

3131
* Updated `pre-commit` GitHub workflow to pass `no-commit-to-branch` check [#2501](https://github.com/IntelPython/dpnp/pull/2501)
32+
* Updated the math formulas in summary of `dpnp.matvec` and `dpnp.vecmat` to correct a typo [#2503](https://github.com/IntelPython/dpnp/pull/2503)
3233

3334
### Security
3435

dpnp/dpnp_iface_linearalgebra.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ def matvec(
956956
matrix-vector product is defined as:
957957
958958
.. math::
959-
\mathbf{A} \cdot \mathbf{b} = \sum_{i=0}^{n-1} A_{ij}v_j
959+
\mathbf{A} \cdot \mathbf{v} = \sum_{j=0}^{n-1} A_{ij} v_j
960960
961961
where the sum is over the last dimensions in `x1` and `x2` (unless `axes`
962962
is specified). (For a matrix-vector product with the vector conjugated,
@@ -1457,7 +1457,7 @@ def vecmat(
14571457
is defined as:
14581458
14591459
.. math::
1460-
\mathbf{b} \cdot \mathbf{A} = \sum_{i=0}^{n-1} \overline{v_i}A_{ij}
1460+
\mathbf{v} \cdot \mathbf{A} = \sum_{i=0}^{n-1} \overline{v_i}A_{ij}
14611461
14621462
where the sum is over the last dimension of `x1` and the one-but-last
14631463
dimensions in `x2` (unless `axes` is specified) and where

0 commit comments

Comments
 (0)