Skip to content

Commit

Permalink
DOC: Update diags param descr in spdiags fn.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbar committed Oct 21, 2021
1 parent 597a2ef commit d4c4047
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scipy/sparse/construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ def spdiags(data, diags, m, n, format=None):
----------
data : array_like
matrix diagonals stored row-wise
diags : diagonals to set
- k = 0 the main diagonal
- k > 0 the k-th upper diagonal
- k < 0 the k-th lower diagonal
diags : sequence of int or an int
Diagonals to set:
- k = 0 the main diagonal
- k > 0 the kth upper diagonal
- k < 0 the kth lower diagonal
m, n : int
shape of the result
format : str, optional
Expand Down

0 comments on commit d4c4047

Please sign in to comment.