Closed andrea-iob closed 1 year ago
This will allow to re-use the weights and thus will reduce re-allocations.
There is now a separate class for discrete stencils that want to use a memory pool. In this way, if memory pool is not needed, we don't need to store an extra pointer.
This will allow to re-use the weights and thus will reduce re-allocations.