Skip to content

Possible __call__ improvement #51

Description

@sixpearls

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:
replace:
self.interval_workspace[i][(slice(0,num_points),) + (None,)*self.xdim],
with:
self.interval_workspace[i, :num_points].reshape(self.interval_workspace_broadcast_shape),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions