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

Turn vector of matrices into a tuple? #33

Open
dkarrasch opened this issue Dec 16, 2019 · 0 comments
Open

Turn vector of matrices into a tuple? #33

dkarrasch opened this issue Dec 16, 2019 · 0 comments

Comments

@dkarrasch
Copy link
Contributor

Have you considered making the type of the blocks field a Tuple{Vararg{AbstractMatrix}}? This would allow you to store the individual matrix types and make information available to the compiler.

julia> using LinearAlgebra, BlockDiagonals

julia> BlockDiagonal([rand(10,10), UpperTriangular(rand(10,10))])
20×20 BlockDiagonal{Float64,AbstractArray{Float64,2}}:

Note the AbstractArray type!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant