vsl
vsl copied to clipboard
Bspline polynomials
Describe the feature
Bsplines can be used to solve a myriad of problems, a tool to create a "complete basis" given a subset of a domain. Think of finite difference methods, but for one dimension. Since vsl already has the submodule poly, I think it would be a great asset.
Use Case
Bsplines can be used to solve a set of problems, such as collocation problems, e.g. Poissons equations, or generalised Eigen value equations, e.g. Generalised Schrödinger equation. I recently had this problem at Uni and was forced to rely on other languages to build the solution methods.
Proposed Solution
There exists loads of Bspline packages, e.g. for fortran, c and python, but a native V solution would most likely be on par for most plausible scenarios. I propose, that after the Uni semester is done, I provide this feature to vsl.poly, if no other would object.
Other Information
No response
Acknowledgements
- [X] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
Version used
Latest
Environment details (OS name and version, etc.)
V full version: V 0.4.6 39e550f.6a550ab OS: macos, macOS, 14.0, 23A344 Processor: 8 cpus, 64bit, little endian, Apple M2
getwd: /Users/andreas vexe: /Users/andreas/v/v vexe mtime: 2024-05-21 14:21:50
vroot: OK, value: /Users/andreas/v VMODULES: OK, value: /Users/andreas/.vmodules VTMP: OK, value: /tmp/v_501
Git version: git version 2.44.0 Git vroot status: weekly.2024.20-37-g6a550ab8 (2 commit(s) behind V master) .git/config present: true
CC version: Apple clang version 15.0.0 (clang-1500.0.40.1) thirdparty/tcc status: thirdparty-macos-arm64 5c1d002f