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

accept any number of order-queries for derivatives #337

Closed j042 closed 10 months ago

j042 commented 10 months ago

Overview

Implements #248

Addressed issues

Showcase

A short / one-liner example to highlight the (new) feature

import splinepy
import numpy as np

q = np.random.random((10000, spline.para_dim))

assert np.allclose(
    spline.jacobian(q),
    spline.derivative(q, np.eye(spline.para_dim)).transpose(0, 2, 1)
)

Checklists

jzwar commented 10 months ago

There are no tests for the new feature.