FastMatrixEngine 1.0.1
dotnet add package FastMatrixEngine --version 1.0.1
NuGet\Install-Package FastMatrixEngine -Version 1.0.1
<PackageReference Include="FastMatrixEngine" Version="1.0.1" />
<PackageVersion Include="FastMatrixEngine" Version="1.0.1" />
<PackageReference Include="FastMatrixEngine" />
paket add FastMatrixEngine --version 1.0.1
#r "nuget: FastMatrixEngine, 1.0.1"
#:package FastMatrixEngine@1.0.1
#addin nuget:?package=FastMatrixEngine&version=1.0.1
#tool nuget:?package=FastMatrixEngine&version=1.0.1
FastMatrixEngine
FastMatrixEngine is a high-performance, GPU-accelerated Matrix Multiplication library for .NET
Built on top of ILGPU, this open-source package takes the heavy lifting out of Nยณ matrix mathematics. It completely abstracts away complex CUDA/VRAM memory management and provides a dead-simple, crash-proof C# API.
โจ Features
- ๐๏ธ Insanely Fast: Offloads multi-dimensional array mathematics to thousands of GPU cores.
- ๐ก๏ธ Smart Hardware Fallback: Automatically detects the best hardware on the user's machine:
Dedicated GPU(NVIDIA CUDA / AMD HIP) โIntegrated GPU(OpenCL) โCPU Fallback(Ensures it never crashes!).
- ๐ง Zero Configuration: No need to manage VRAM pointers or write C++ kernels. Just pass in standard C#
float[,]ordouble[,]arrays. - ๐งน Memory Safe: Strict resource disposal prevents memory leaks in your GPU's VRAM.
๐ฆ Installation
Since this is a standard .NET library, you can install it via the NuGet Package Manager:
dotnet add package FastMatrixEngine
๐ป Quick Start
Using FastMatrixEngine is as simple as calling a single method. The library handles the CPU โ GPU โ CPU memory transfers automatically.
using FastMatrixEngine;
using System;
class Program
{
static void Main()
{
// 1. Define your matrices (e.g., 1000x1000)
float[,] matrixA = new float[1000, 1000];
float[,] matrixB = new float[1000, 1000];
// ... fill your matrices with data ...
// 2. Multiply! The engine automatically detects your GPU and processes the math.
float[,] result = GpuMatrixMultiplier.Multiply(matrixA, matrixB);
Console.WriteLine("Matrix multiplication completed successfully on the GPU!");
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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
- ILGPU (>= 1.5.3)
- ILGPU.Algorithms (>= 1.5.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on FastMatrixEngine:
| Package | Downloads |
|---|---|
|
UltimateCameraCuller
Fastest GPU Frustum Culling using Clip Space math and Smart Precision. |
GitHub repositories
This package is not used by any popular GitHub repositories.