ChebyshevSharp 0.1.0
See the version list below for details.
dotnet add package ChebyshevSharp --version 0.1.0
NuGet\Install-Package ChebyshevSharp -Version 0.1.0
<PackageReference Include="ChebyshevSharp" Version="0.1.0" />
<PackageVersion Include="ChebyshevSharp" Version="0.1.0" />
<PackageReference Include="ChebyshevSharp" />
paket add ChebyshevSharp --version 0.1.0
#r "nuget: ChebyshevSharp, 0.1.0"
#:package ChebyshevSharp@0.1.0
#addin nuget:?package=ChebyshevSharp&version=0.1.0
#tool nuget:?package=ChebyshevSharp&version=0.1.0
ChebyshevSharp
Multi-dimensional Chebyshev tensor interpolation with analytical derivatives for .NET.
ChebyshevSharp is a C# port of PyChebyshev, providing fast evaluation of smooth multi-dimensional functions via barycentric interpolation with pre-computed weights.
Features
- Multi-dimensional Chebyshev interpolation with spectral convergence
- Analytical derivatives via spectral differentiation matrices
- Vectorized evaluation routing N-D tensor contractions through BLAS (via BlasSharp.OpenBlas)
- Piecewise Chebyshev splines with user-specified knots at singularities
- Sliding technique for high-dimensional approximation
- Tensor Train decomposition for 5+ dimensional functions
- Chebyshev algebra — combine interpolants via
+,-,*,/ - Extrusion and slicing — add/fix dimensions for portfolio aggregation
- Spectral calculus — integration, rootfinding, and optimization
- Targets .NET 8 and .NET 10
Installation
dotnet add package ChebyshevSharp
Quick Start
using ChebyshevSharp;
// Define a function to interpolate
double MyFunction(double[] x, object? data) => Math.Sin(x[0]) + Math.Sin(x[1]);
// Build a 2D Chebyshev interpolant
var cheb = new ChebyshevApproximation(
function: MyFunction,
numDimensions: 2,
domain: new[] { new[] { -1.0, 1.0 }, new[] { -1.0, 1.0 } },
nNodes: new[] { 11, 11 }
);
cheb.Build();
// Evaluate at a point
double value = cheb.VectorizedEval(new[] { 0.5, 0.3 }, new[] { 0, 0 });
// Compute partial derivative ∂f/∂x₁
double dfdx = cheb.VectorizedEval(new[] { 0.5, 0.3 }, new[] { 1, 0 });
Status
Phase 1 complete — ChebyshevApproximation with 212 passing tests covering construction, evaluation, derivatives, algebra, extrusion/slicing, calculus, and serialization.
Phases 2-4 (ChebyshevSpline, ChebyshevSlider, ChebyshevTT) are not yet implemented. See skip_csharp.txt for current feature parity with PyChebyshev.
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- BlasSharp.OpenBlas (>= 0.3.0)
- MathNet.Numerics (>= 5.0.0)
-
net8.0
- BlasSharp.OpenBlas (>= 0.3.0)
- MathNet.Numerics (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.