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

Possible `__call__` improvement #51

sixpearls opened this issue Sep 1, 2019 · 0 comments


Copy link

commented Sep 1, 2019

It's possible this approach would provide a marginal speed boost to __call__: perform the spline evaluation values broadcast with a reshape operation, and save the reshape argument which does not change.

In init:
self.interval_workspace_broadcast_shape = (-1,) + (1,)*self.xdim

in second argument to np.add of compute_basis_coefficient_selector:
self.interval_workspace[i][(slice(0,num_points),) + (None,)*self.xdim],
self.interval_workspace[i, :num_points].reshape(self.interval_workspace_broadcast_shape),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.