ACEsuit / Polynomials4ML.jl

Polynomials for ML: fast evaluation, batching, differentiation
MIT License
12 stars 5 forks source link

Choose Arrays vs ArrayCache #28

Closed cortner closed 4 months ago

cortner commented 1 year ago

Is it possible to write the _alloc interface in such a way that the user can define whether to use fresh Array allocations or reused CachedArrays? I'm thinking of something like

Polynomials4ML.use_cachedarrays!(true)  # or false  

and that this might trigger and eval into Polynomials4ML that determines which methods are called?

cortner commented 1 year ago

@tjjarvinen -- this is maybe a question for you?

cortner commented 1 year ago

Hm - maybe all this needs is a function

use_cached_arrays() = true

Which can be overwritten with false to switch to standard arrays.

cortner commented 4 months ago

this is made obsolete by #84 because we switched to Bumper