Socket
Book a DemoInstallSign in
Socket

Dew.Math

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Dew.Math

Dew.Math is the Windows-optimized high-performance numerical computation library for .NET. It provides a vectorized matrix and vector math environment with native runtime acceleration, multithreaded execution, and extensive algorithm libraries for scientific, engineering, financial, AI/ML and signal processing workloads. Core Numerical Capabilities: - Dense linear algebra (BLAS, LAPACK): SVD, QR, LQ, LU, eigenvalue problems, least-squares, rank reveals - Sparse matrix support: direct solvers (Pardiso, UMFPACK), iterative solvers (CG, BiCG, GMRES), preconditioning strategies, structured sparse formats - Complex number computation with fully vectorized math operations - Polynomial arithmetic, interpolation, splines, rational approximations, Chebyshev basis transforms - Numerical differentiation, root solving, non-linear systems, ODE support for stiff and non-stiff cases - Probability distributions (over 30 families), random number generators, Monte Carlo methods - Special mathematical functions (Airy, Bessel, Gamma-related, elliptic integrals, Legendre, etc.) Optimization and Modeling: - Non-linear curve fitting with Levenberg-Marquardt and trust-region refinements - Direct and constrained optimization (Simplex/Nelder–Mead, BFGS, Conjugate Gradient, LP, dual-phase simplex, Gomory cutting plane) - Vectorized expression parser for dynamic formula construction and symbolic-style evaluation Performance Architecture: - Native accelerated BLAS/LAPACK kernels with automatic CPU dispatch (AVX, AVX2, AVX-512) - Scalable multithreading with a lock-free memory allocator for low-GC overhead - Optional OpenCL GPU offloading for supported device targets Platform Model: - Contains Windows native acceleration binaries - For Linux native acceleration use: Dew.Math.Linux - For a pure managed, portable edition use: Dew.Math.Core Use Dew.Math when you require **maximum numerical performance on Windows** for HPC, simulation, economic modeling, data analytics, or scientific visualization workflows.

nugetNuGet
Version
6.3.8
Version published
Maintainers
1
Created
Source

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

PackagePurpose / PlatformAcceleration Model
Dew.MathWindowsNative acceleration (AVX2 / AVX-512)
Dew.Math.LinuxLinuxNative acceleration (AVX2 / AVX-512)
Dew.Math.CoreCross-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

PackageUI ToolkitPlatformTeeChart Edition UsedPurpose
Dew.Math.TeeWinForms.NET Framework 4.8 onlyTeeChart Lite (free, bundled)Basic high-speed visualization
Dew.Math.TeeProWinForms.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

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.

Keywords

dotnet

FAQs

Package last updated on 16 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts