Skip to content

Commit 841c4b3

Browse files
Warn that inv throws on singular matrices
1 parent a305c67 commit 841c4b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/generic.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,6 +1152,8 @@ Matrix inverse. Computes matrix `N` such that
11521152
Computed by solving the left-division
11531153
`N = M \\ I`.
11541154
1155+
A [`SingularException`](@ref) is thrown if `M` fails to be numerically inverted.
1156+
11551157
# Examples
11561158
```jldoctest
11571159
julia> M = [2 5; 1 3]

0 commit comments

Comments
 (0)