Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

similar(BlockDiagonal, T) returns a Matrix #92

Closed
mzgubic opened this issue May 12, 2022 · 0 comments · Fixed by #93
Closed

similar(BlockDiagonal, T) returns a Matrix #92

mzgubic opened this issue May 12, 2022 · 0 comments · Fixed by #93
Labels
bug Something isn't working

Comments

@mzgubic
Copy link
Collaborator

mzgubic commented May 12, 2022

julia> similar(BlockDiagonal([rand(2, 2)]))
2×2 BlockDiagonal{Float64, Matrix{Float64}}:
 0.0           2.41293e-314
 2.41314e-314  0.0

julia> similar(BlockDiagonal([rand(2, 2)]), Float32)
2×2 Matrix{Float32}:
 9.16419f-33  9.16123f-33
 1.0f-45      1.0f-45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant