Dew.Math
6.3.8
dotnet add package Dew.Math --version 6.3.8
NuGet\Install-Package Dew.Math -Version 6.3.8
<PackageReference Include="Dew.Math" Version="6.3.8" />
<PackageVersion Include="Dew.Math" Version="6.3.8" />
<PackageReference Include="Dew.Math" />
paket add Dew.Math --version 6.3.8
#r "nuget: Dew.Math, 6.3.8"
#:package Dew.Math@6.3.8
#addin nuget:?package=Dew.Math&version=6.3.8
#tool nuget:?package=Dew.Math&version=6.3.8
Dew.Math
High-performance vectorized numerical computation library for .NET
Dew.Math is a high-performance numerical math library for .NET, providing a vectorized matrix and vector computation environment with native runtime acceleration on modern CPUs. It is designed for scientific computing, engineering, signal and system modeling, optimization, simulation, financial modeling, and data analysis applications that require deterministic performance and high throughput.
Core Numerical Capabilities
Linear Algebra and Matrix Computation
- Dense linear algebra (BLAS/LAPACK): SVD, QR, LQ, LU, eigenvalue problems, least-squares, rank-revealing decompositions
- Sparse matrix support: direct solvers (Pardiso, UMFPACK), iterative solvers (CG, BiCG, GMRES), and preconditioners
- Support for complex arithmetic and vectorized complex math operations
- Toeplitz and banded matrix solvers
- Polynomial operations, interpolation, splines, rational approximations, Chebyshev transforms
Optimization and Modeling
- Non-linear curve fitting using Levenberg-Marquardt and trust-region methods
- Linear and constrained optimization: Nelder-Mead, BFGS, Conjugate Gradient, Simplex, Dual Simplex, Gomory cutting plane
- Numerical root solving and non-linear system solution
Probability and Special Functions
- Random number generators and probability distributions (over 30 families)
- Statistical functions, CDF/PDF evaluation, and sampling
- Special functions including: Airy, Bessel, Gamma-related families, elliptic integrals, Legendre polynomials
Vectorized Expression Parsing
- Built-in expression parser for dynamic evaluation of mathematical formulas
- Vectorized execution allows formula-based pipelines without manual loop control
Performance Architecture
- Native-accelerated BLAS/LAPACK kernels with automatic CPU dispatch for:
- AVX2
- AVX-512 (when hardware-supported)
- Scalable multithreading using thread-local memory pools to reduce GC pressure
- Vector/Matrix "Capacity" and subrange memory model reduces allocation frequency
- Lock-free memory allocator designed for multi-core workloads
- Optional OpenCL GPU offloading where supported
Typical real-world performance improvement over pure C# implementations ranges 5x to 50x, depending on workload characteristics.
Platform Model and Edition Compatibility
| Package | Purpose / Platform | Acceleration Model |
|---|---|---|
| Dew.Math | Windows | Native acceleration (AVX2 / AVX-512) |
| Dew.Math.Linux | Linux | Native acceleration (AVX2 / AVX-512) |
| Dew.Math.Core | Cross-platform (portable) | Managed-only (no native runtime) |
Important notes:
- 64-bit only. 32-bit execution is no longer supported.
- Supports .NET Framework 4.8 and .NET 8.0/9.0 on Windows.
Drop-in Replaceable Across Platforms (Important)
All three variants share:
- The same namespaces
- The same class names
- The same method signatures
This allows platform switching with no code changes.
Typical workflow:
- Develop on Windows using Dew.Math (maximum performance)
- Before Linux deployment: Uninstall: Dew.Math Install: Dew.Math.Linux
- Rebuild and deploy
Or:
- Use Dew.Math.Core when compiling portable libraries, plugins, MAUI/Android/iOS/WASM apps
- Later switch to Dew.Math or Dew.Math.Linux only at deployment time to enable hardware acceleration
No conditional compilation, no API branching, no code rewrite.
Charting and Visualization Options
| Package | UI Toolkit | Platform | TeeChart Edition Used | Purpose |
|---|---|---|---|---|
| Dew.Math.Tee | WinForms | .NET Framework 4.8 only | TeeChart Lite (free, bundled) | Basic high-speed visualization |
| Dew.Math.TeePro | WinForms | .NET Framework 4.8, .NET 8/9 Win. | TeeChart.NET (commercial license) | Advanced full-featured visualization |
Examples
Dew Research GitHub Home: https://github.com/Dew-Research
WinForms / WPF / ASP.NET (.NET Framework) examples: https://github.com/Dew-Research/DewLabStudio-NETFramework-Samples
WinForms (.NET Core / .NET 6-9) examples: https://github.com/Dew-Research/DewLabStudio-NETCore-Samples
Documentation
API Reference: https://www.dewresearch.com/Help/VSNET/MtxVec/contents.html
User Guide (PDF): http://downloads.dewresearch.com/downloads/MtxVecV6-CSharp.pdf
Product Page: https://www.dewresearch.com/products/mtxvec
NuGet Publisher Profile: https://www.nuget.org/profiles/DewResearch
License: https://www.dewresearch.com/downloads/LicenseNET.pdf
License
Commercial license. See DewMathLicense.txt included in this package. All Dew.* NuGet packages on nuget.org are trial versions and work only inside Visual Studio IDE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net9.0-windows7.0 is compatible. net10.0-windows was computed. |
| .NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- No dependencies.
-
net8.0-windows7.0
- Microsoft.WinForms.Designer.SDK (>= 1.6.0 && < 1.7.0)
-
net9.0-windows7.0
- Microsoft.WinForms.Designer.SDK (>= 1.6.0 && < 1.7.0)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Dew.Math:
| Package | Downloads |
|---|---|
|
Dew.Signal
Dew.Signal is a high-performance digital signal processing library built on top of Dew.Math, providing a comprehensive suite of optimized algorithms for real-time signal analysis, filtering, spectral estimation, modeling, and streaming signal workflows. The library is designed for scientific, engineering, audio, RF, vibration, instrumentation, control, and monitoring applications requiring both numerical accuracy and hardware-level performance on multi-core CPUs with AVX2/AVX512 support. Filter Design and Processing: - IIR filter design (Butterworth, Chebyshev I/II, Elliptic, Bessel), analog and digital domains - Order estimation, frequency transformations, bilinear and matched-Z transforms - State-space and zero-pole-numerator-domain modeling with group delay and stability analysis - FIR filter design using window methods and Remez exchange algorithm - FIR/Hilbert/differentiator/integrator design, Savitzky–Golay filtering, envelope detectors - Multi-rate filtering: half-band polyphase filters, decimation, interpolation, zoom-spectrum analysis Nonlinear and Adaptive Filters: - Sample-and-hold, sample-and-decay, and median filtering - High-quality rate conversion with 160dB stopband attenuation at high speed Spectral and Frequency-Domain Analysis: - FFT-based spectrum analyzer components with real-time UI integration support - Parametric spectral estimation: Yule–Walker, Burg, Covariance, Modified Covariance - Chirp-Z transform, bispectrum, bicoherence, transfer function, coherence estimation - Peak interpolation and peak-tracking enhancements, phase unwrapping - Real and complex cepstrum, inverse cepstrum - Spectral statistics: noise floor, SFDR, THD, THDN, SINAD, RMS, SNR measurements Signal Synthesis, Streaming, and Measurement: - Signal generators with stack-based vectorized function evaluation - Audio capture/playback with monitoring and triggering support - Data streaming and file format components for continuous acquisition and logging Forecasting and Time-Series Modeling: - Spectral forecasting based on controlled peak selection, enabling clear component-based prediction Integration and Extensions: - Works seamlessly with Dew.Math numeric structures (vectors/matrices) - Optional high-performance charting available via a separate Dew.Signal.Tee package (Windows visualization) - Part of the Dew Lab Studio ecosystem for unified math, DSP, and statistical analysis workflows Designed for reproducibility, determinism, and stable numerical behavior in long-running or real-time environments. |
|
|
Dew.Lab.Studio
Dew Lab Studio bundles the Dew.Math, Dew.Signal, and Dew.Stats libraries into a unified package suitable for scientific, engineering, financial, and real-time signal-processing applications. It includes full numerical computation, vectorized signal analysis and filtering, statistical modeling, probability distributions, spectral transforms, optimization, and advanced data workflows. This package also integrates visualization via Dew.Math.TeePro, Dew.Signal.Tee, and Dew.Stats.Tee, which extend TeeChart for high-performance plotting of large datasets, spectrograms, signal traces, matrices, probability distributions, and live streaming data. No hard WinForms linking is introduced into your own code; the visualization libraries depend on WinForms internally while allowing you to use WinForms, WPF, Avalonia, or custom UI frameworks. Included Components: - Dew.Math (Windows native-accelerated numerical computation) - Dew.Signal (real-time DSP, filtering, transforms, spectral and streaming signal analysis) - Dew.Stats (probability distributions, statistical modeling, hypothesis testing, inference) - Dew.Math.TeePro (high-speed charting extensions for numerical data) - Dew.Signal.Tee (spectral / time-frequency / oscilloscope plotting extensions) - Dew.Stats.Tee (statistical visualization and histogramming helpers) Usage Model: - Use Dew Lab Studio for Windows desktop and server applications requiring interactive visualization, scientific and engineering debugging workflows, data interpretation, or real-time signal monitoring. - For Linux HPC systems: use Dew.Lab.Studio.Linux (accelerated native Linux builds). - For maximum cross-platform portability: use Dew.Lab.Studio.Core (managed-only .Core builds). Platform Notes: - Dew.*.Tee packages depend on WinForms internally. Therefore, projects targeting net8.0-windows or net9.0-windows must enable the Windows Desktop framework (WinForms). |
|
|
Dew.Stats
Dew.Stats provides a complete high-performance statistical and data analysis library built on the vectorized numerical engine of Dew.Math. It is designed for scientific analytics, quantitative finance, machine learning preprocessing, laboratory data processing, industrial measurement evaluation, and real-time statistical diagnostics. Probability and Random Distributions: - PDF, CDF and inverse CDF for 36+ continuous and discrete probability distributions - Random number generators, parameter estimation, Monte-Carlo sampling, bootstrap methods Descriptive and Exploratory Statistics: - Central moments, percentiles, quantiles, ranks, trimmed means, variance and covariance analysis - Histograms, ogives, cumulative series, outlier detection, normalization, scaling transforms Hypothesis Testing and Inference: - Parametric tests: t-test, Z-test, F-test, Chi-Squared, Bartlett, Hotelling T² - Non-parametric tests: Wilcoxon, Mann-Whitney, Sign, Anderson–Darling, Shapiro–Wilk, KS - Confidence intervals, p-values, power analysis Regression and Statistical Modeling: - Linear, multiple, ridge, logistic, Poisson, and nonlinear regression - ANOVA and ANCOVA models, principal component regression - Robust regression and regularization options Multivariate and Structure Analysis: - PCA (Principal Component Analysis), MDS (Multidimensional Scaling), item analysis, factor modes Time Series Analysis and Forecasting: - Autocorrelation (ACF), partial autocorrelation (PACF), smoothing, ARMA/ARIMA/ARAR models - Rolling statistics, forecasting diagnostics, Box-Ljung significance tests High-Level Components: - TMtxANOVA, TMtxMulLinReg, TMtxNonLinReg, TMtxPCA, TMtxHypothesisTest, TMtxBinaryTest, TMtxMDScaling — encapsulated workflow components for rapid application development Integration: - Uses Dew.Math for optimized vector/matrix operations with AVX2/AVX512 hardware acceleration - Optional charting and statistical visualization available through **Dew.Stats.Tee** (separate package) Dew.Stats is designed for reproducible, numerically stable computation in research, industrial, and engineering applications. |
|
|
Dew.Math.TeePro
Add-on package for Dew.Math that provides enhanced TeeChart features: • High-speed GridSeries with comprehensive color palette management. • MtxFastLine series for rendering millions of points efficiently. • Fast helpers for pushing data into TeeChart series. • Supports .NET Framework 4.8 and modern .NET (8/9) on Windows. • 64-bit native mode supported. • XML documentation for modern .NET targets. Note: Prior to Dew.Math 6.3.8 this assembly shipped inside the Dew.Math package. From 6.3.8 onward it is a separate, optional package to keep TeeChart integration opt-in. |
|
|
Dew.Math.Tee
Dew.Math.Tee adds high-performance WinForms charting to Dew.Math by bundling the free TeeChart Lite assembly directly in this package (no external NuGet dependency). It enables fast visualization of vectors, matrices, and signal/statistical data on .NET Framework 4.8. Included visualization enhancements: - MtxFastLine: fast line plotting optimized for millions of points - MtxGridSeries: accelerated heatmap/matrix rendering with palette management - High-throughput helpers for streaming data into TeeChart series - Optional use with Dew.Signal and Dew.Stats components Platform model: - .NET Framework 4.8 (WinForms) only - TeeChart Lite DLL is included inside this package - No WPF, and no .NET (Core/5+/8/9) support in this package Use Dew.Math.Tee when building WinForms desktop tools that require fast plotting and visualization on top of Dew.Math. |
GitHub repositories
This package is not used by any popular GitHub repositories.