You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`fillstored!` offers a way to fill only the stored indices of a
structured matrix without having to populate the parent. E.g.:
```julia
julia> U = UpperTriangular(zeros(4,4))
4×4 UpperTriangular{Float64, Matrix{Float64}}:
0.0 0.0 0.0 0.0
⋅ 0.0 0.0 0.0
⋅ ⋅ 0.0 0.0
⋅ ⋅ ⋅ 0.0
julia> LinearAlgebra.fillstored!(U, 2)
4×4 UpperTriangular{Float64, Matrix{Float64}}:
2.0 2.0 2.0 2.0
⋅ 2.0 2.0 2.0
⋅ ⋅ 2.0 2.0
⋅ ⋅ ⋅ 2.0
```
This seems like a useful function that should be public. This came up on
discourse:
https://discourse.julialang.org/t/how-to-set-all-elements-in-a-lower-triangular-matrix/128603
0 commit comments