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
Fix copy for partly initialized unit triangular (#1350)
Currently, we forward copy for unit triangular matrices to the parents.
This also copies the diagonal, which may not be initialized in the
parent. This PR fixes this.
After this, the following works again
```julia
julia> M = Matrix{BigFloat}(undef,2,2);
julia> M[2,1] = 3;
julia> M'
2×2 adjoint(::Matrix{BigFloat}) with eltype BigFloat:
#undef 3.0
#undef #undef
julia> U = UnitUpperTriangular(M')
2×2 UnitUpperTriangular{BigFloat, Adjoint{BigFloat, Matrix{BigFloat}}}:
1.0 3.0
⋅ 1.0
julia> copyto!(similar(M), U)
2×2 Matrix{BigFloat}:
1.0 3.0
0.0 1.0
```
0 commit comments