tataratat / splinepy

Library for prototyping spline geometries of arbitrary dimensions and degrees, and IGA
https://tataratat.github.io/splinepy
Other
47 stars 13 forks source link

Basis function matrices #312

Closed jzwar closed 1 year ago

jzwar commented 1 year ago

This has been implemented many times in different spots, Leading to redundant code.

Overview

Create basis function matrices directly using either scipy or numpy depending on availability.

Addressed issues

Showcase

spline = some_spline()

matrix = splinepy.utils.data.make_matrix(
  *spline.basis_function_matrix(queries),
  spline.cps.shape[0]
)
assert np.allclose(matrix @ spline.cps, spline.evaluate(queries))

Checklists