mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-21 20:47:10 +08:00
Fix sphinx/build_docs warnings for linear_algebra (#12483)
* Fix sphinx/build_docs warnings for linear_algebra/ * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -8,11 +8,15 @@ See: https://en.wikipedia.org/wiki/Rank_(linear_algebra)
|
||||
def rank_of_matrix(matrix: list[list[int | float]]) -> int:
|
||||
"""
|
||||
Finds the rank of a matrix.
|
||||
|
||||
Args:
|
||||
matrix: The matrix as a list of lists.
|
||||
`matrix`: The matrix as a list of lists.
|
||||
|
||||
Returns:
|
||||
The rank of the matrix.
|
||||
|
||||
Example:
|
||||
|
||||
>>> matrix1 = [[1, 2, 3],
|
||||
... [4, 5, 6],
|
||||
... [7, 8, 9]]
|
||||
|
Reference in New Issue
Block a user