File tree Expand file tree Collapse file tree 1 file changed +18
-16
lines changed
Expand file tree Collapse file tree 1 file changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -1284,16 +1284,17 @@ false
12841284julia> istriu(a, -1)
12851285true
12861286
1287- julia> b = [1 im; 0 -1]
1288- 2×2 Matrix{Complex{Int64}}:
1289- 1+0im 0+1im
1290- 0+0im -1+0im
1291-
1292- julia> istriu(b)
1293- true
1287+ julia> c = [1 1 1; 1 1 1; 0 1 1]
1288+ 3×3 Matrix{Int64}:
1289+ 1 1 1
1290+ 1 1 1
1291+ 0 1 1
12941292
1295- julia> istriu(b, 1 )
1293+ julia> istriu(c )
12961294false
1295+
1296+ julia> istriu(c, -1)
1297+ true
12971298```
12981299"""
12991300function istriu (A:: AbstractMatrix , k:: Integer = 0 )
@@ -1328,16 +1329,17 @@ false
13281329julia> istril(a, 1)
13291330true
13301331
1331- julia> b = [1 0; -im -1]
1332- 2×2 Matrix{Complex{Int64}}:
1333- 1+0im 0+0im
1334- 0-1im -1+0im
1335-
1336- julia> istril(b)
1337- true
1332+ julia> c = [1 1 0; 1 1 1; 1 1 1]
1333+ 3×3 Matrix{Int64}:
1334+ 1 1 0
1335+ 1 1 1
1336+ 1 1 1
13381337
1339- julia> istril(b, -1 )
1338+ julia> istril(c )
13401339false
1340+
1341+ julia> istril(c, 1)
1342+ true
13411343```
13421344"""
13431345function istril (A:: AbstractMatrix , k:: Integer = 0 )
You can’t perform that action at this time.
0 commit comments