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

Matrix multiplication makes all dimensions dynamic #36

Open
plut opened this issue Jan 12, 2021 · 1 comment
Open

Matrix multiplication makes all dimensions dynamic #36

plut opened this issue Jan 12, 2021 · 1 comment

Comments

@plut
Copy link

plut commented Jan 12, 2021

    using StaticArrays, HybridArrays    
    typeof(SA[1 0;0 1]*HybridArray{Tuple{2,StaticArrays.Dynamic()}}([1 0;0 1]))

Returns Array{Int64,2}. However it can be determined at compile-time that this is actually a 2*n matrix, hence HybridArray{Tuple{2,StaticArrays.Dynamic()}}.

@mateuszbaran
Copy link
Collaborator

Good point, I'm just not sure how to do it right. LoopVectorization.jl has quite a bit of related functionality that can use static dimensions of arrays so just multiplying wrapped arrays and wrapping the result doesn't look like the best solution.

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

No branches or pull requests

2 participants