FastMatrixEngine 1.0.1

dotnet add package FastMatrixEngine --version 1.0.1
                    
NuGet\Install-Package FastMatrixEngine -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FastMatrixEngine" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FastMatrixEngine" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="FastMatrixEngine" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FastMatrixEngine --version 1.0.1
                    
#r "nuget: FastMatrixEngine, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FastMatrixEngine@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FastMatrixEngine&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=FastMatrixEngine&version=1.0.1
                    
Install as a Cake Tool

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[,] or double[,] 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last Updated
1.0.1 135 6/24/2026
1.0.0 109 6/24/2026