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

ProjectTo is not defined for NamedDimsArray #200

Closed
mzgubic opened this issue Aug 1, 2022 · 0 comments · Fixed by #201
Closed

ProjectTo is not defined for NamedDimsArray #200

mzgubic opened this issue Aug 1, 2022 · 0 comments · Fixed by #201

Comments

@mzgubic
Copy link
Collaborator

mzgubic commented Aug 1, 2022

julia> nda = NamedDimsArray{(:a, :b)}(rand(3, 3))
3×3 NamedDimsArray(::Matrix{Float64}, (:a, :b)):
      b
 a  0.670477  0.9866    0.292266
     0.317949  0.926949  0.76807
     0.99007   0.473338  0.560692

julia> project = ProjectTo(nda)
ProjectTo{AbstractArray}(element = ProjectTo{Float64}(), axes = (Base.OneTo(3), Base.OneTo(3)))

julia> project(rand(3, 3))
3×3 Matrix{Float64}:
 0.0611735  0.684982  0.6573
 0.601941   0.336996  0.782579
 0.477275   0.499212  0.697885

whereas it should return a NamedDimsArray.

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