Skip to content

Commit

Permalink
explicit eltypes in matrix construction
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed May 18, 2023
1 parent d895922 commit cdf4642
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions stdlib/LinearAlgebra/src/generic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ Test whether `A` is upper triangular starting from the `k`th superdiagonal.
# Examples
```jldoctest
julia> a = [1 2; 2 -1]
julia> a = Int64[1 2; 2 -1]
2×2 Matrix{Int64}:
1 2
2 -1
Expand All @@ -1281,7 +1281,7 @@ false
julia> istriu(a, -1)
true
julia> b = [1 1 1; 0 1 1; 0 0 1]
julia> b = Int64[1 1 1; 0 1 1; 0 0 1]
3×3 Matrix{Int64}:
1 1 1
0 1 1
Expand All @@ -1296,7 +1296,7 @@ false
julia> istriu(b, -1)
true
julia> c = [1 1 1; 1 1 1; 0 1 1]
julia> c = Int64[1 1 1; 1 1 1; 0 1 1]
3×3 Matrix{Int64}:
1 1 1
1 1 1
Expand Down Expand Up @@ -1330,7 +1330,7 @@ Test whether `A` is lower triangular starting from the `k`th superdiagonal.
# Examples
```jldoctest
julia> a = [1 2; 2 -1]
julia> a = Int64[1 2; 2 -1]
2×2 Matrix{Int64}:
1 2
2 -1
Expand All @@ -1341,7 +1341,7 @@ false
julia> istril(a, 1)
true
julia> b = [1 0 0; 1 1 0; 1 1 1]
julia> b = Int64[1 0 0; 1 1 0; 1 1 1]
3×3 Matrix{Int64}:
1 0 0
1 1 0
Expand All @@ -1356,7 +1356,7 @@ false
julia> istril(b, 1)
true
julia> c = [1 1 0; 1 1 1; 1 1 1]
julia> c = Int64[1 1 0; 1 1 1; 1 1 1]
3×3 Matrix{Int64}:
1 1 0
1 1 1
Expand Down

0 comments on commit cdf4642

Please sign in to comment.