Open markriegler opened 1 month ago
The recent updates enhance the physical_function
in splinepy
for improved spline integration by introducing a spline
parameter for greater clarity and usability. The function's logic is refined to handle various spline types and optimize performance using np.einsum
. Additionally, a new test function validates the integration of a parabolic function over a rectangular domain, ensuring the implementation's correctness and robustness.
Files | Change Summary |
---|---|
splinepy/helpme/integrate.py |
Updated physical_function to include a spline parameter, adding comprehensive parameter documentation and error handling. Enhanced internal logic for better integration handling. |
tests/helpme/test_integrate.py |
Added test_physical_function_integration to validate integration of a parabolic function over a defined rectangular domain, ensuring correctness of the integration logic with B-splines. |
🐰 In a world of splines, oh what a delight,
With functions so clear, they shine ever bright.
Integrate with glee, let the numbers dance,
In the land of math, give new features a chance!
From parabolas bold, to knots that entwine,
Hooray for the changes, all perfectly fine! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Overview
Integration of physical function
Checklists
Summary by CodeRabbit
New Features
Tests