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

Handling wrapped arrays #47

Open
ChrisRackauckas opened this issue Apr 8, 2020 · 1 comment
Open

Handling wrapped arrays #47

ChrisRackauckas opened this issue Apr 8, 2020 · 1 comment

Comments

@ChrisRackauckas
Copy link
Member

Today I gave up on something...

    function DiffEqBase.get_tmp(dc::DiffEqBase.DiffCache, u::LabelledArrays.LArray{T,N,D,Syms}) where {T,N,D,Syms}
      x = reinterpret(T, dc.dual_du.__x)
      LArray{T,N,D,Syms}(x)
    end

we need a better way to handle things like reinterpret and reshape on array types that are actually just wrapping another array type.

@Tokazama
Copy link
Member

I think in general we need better support for getting at wrapped parameters. For example, parent_type would be helpful for these sorts of methods because we don't know for sure that x will be of the type D.

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