Skip to content

Commit 2b82738

Browse files
authored
Use Julia highlighting in code blocks
1 parent e720b31 commit 2b82738

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ julia> A = reshape(1:36, (6, 6))
2323
6 12 18 24 30 36
2424
```
2525
the lower triangular matrix `AL` is constructed by replacing the elements above the diagonal with zero.
26-
```
26+
```julia
2727
julia> AL = tril!(collect(A))
2828
6×6 Matrix{Int64}:
2929
1 0 0 0 0 0
@@ -35,7 +35,7 @@ julia> AL = tril!(collect(A))
3535
```
3636
`AL` requires the same amount of storage as does `A` even though there are only 21 potential non-zeros in `AL`.
3737
The RFP version of the lower triangular matrix
38-
```
38+
```julia
3939
julia> ArfpL = Int.(TriangularRFP(float.(A), :L))
4040
6×6 Matrix{Int64}:
4141
1 0 0 0 0 0
@@ -46,7 +46,7 @@ julia> AL = tril!(collect(A))
4646
6 12 18 24 30 36
4747
```
4848
provides the same displayed form but the underlying, "parent" array is 7 by 3
49-
```
49+
```julia
5050
julia> ALparent = Int.(ArfpL.data)
5151
7×3 Matrix{Int64}:
5252
22 23 24

0 commit comments

Comments
 (0)