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

Support pre-allocated Fun construction #536

Open
dlfivefifty opened this issue Sep 12, 2017 · 0 comments
Open

Support pre-allocated Fun construction #536

dlfivefifty opened this issue Sep 12, 2017 · 0 comments

Comments

@dlfivefifty
Copy link
Member

dlfivefifty commented Sep 12, 2017

The idea is to support, for example:

f = Fun(Chebyshev(), Array{Float64}(1_000_000))
x = Fun()

f .= cos.(1_000_000.*x)  # no allocation

this is useful for time-stepping, for example.

To make this work, we need:

[ ] Non-allocating points #531
[ ] In-place transforms (plan_transform!)
[ ] A good syntax for doing this from an anonymous function. Something like

Fun!(f, x-> cos(1_000_000x))
@pabloferz pabloferz mentioned this issue Jan 20, 2018
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

1 participant