MatX
AGENTS.md1.4k starsChanged 6 months agoBSD-3-ClauseView on GitHub
When adding or changing accelerated backends such as CUDA, cuBLAS, cuSolver, cuFFT, or MathDx paths, preserve the existing non-accelerated behavior unless the task explicitly calls for a breaking change. Prefer focused tests that compare the new backend against an existing trusted MatX path, and include negative tests for unsupported shape, dtype, rank, or configuration combinations when applicable.
Trending
Quiet since August.about the whole repository
Who's talking about NVIDIA/MatX
- A Hacker News story“MatX: Efficient C++17 GPU numerical computing library with Python-like syntax”Hacker News · Oct 3, 2023 · 103 points
- nv-morpheus/Morpheus“[FEA]: Adopt MatX 0.6”GitHub · Oct 2, 2023 · 1 reactions
- conan-io/conan-center-index“Add matx package version 1.1.0”GitHub · Aug 20, 2026
- conan-io/conan-center-index“[request] MatX/1.1.0”GitHub · Aug 20, 2026
- conan-io/conan-center-index“[request] MatX/1.0.0”GitHub · Jun 23, 2026
The biggest 5 of 16 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 16
Talked about on GitHub and Hacker News (16 times).
On GitHub · 15
- Oct 2, 2023[FEA]: Adopt MatX 0.6 — nv-morpheus/Morpheus1 reaction
- Aug 20, 2026Add matx package version 1.1.0 — conan-io/conan-center-index0 reactions · 1 comment
- Aug 20, 2026[request] MatX/1.1.0 — conan-io/conan-center-index0 reactions
- Jun 23, 2026[request] MatX/1.0.0 — conan-io/conan-center-index0 reactions
- Oct 23, 2025[BUG]: Issues from mixing CCCL CMake package with legacy Thrust/CUB/libcudacxx packages. — NVIDIA/cccl0 reactions
10 more on GitHub
- Sep 21, 2024try swap in matx distances for torch — HugoPhibbs/CUDA-sDBSCAN0 reactions
- Aug 19, 2024[FEA]: Build MatX as part of our third-party CI testing — NVIDIA/ccclsays it tested it0 reactions
- Nov 21, 2023Updated single-repositories/github/NVIDIA/MatX.yml — oss-compass/compass-projects-information0 reactions · 2 comments
- May 17, 2023[BUG]: Update matx ref for cmake build issues — nv-morpheus/utilities0 reactions · 1 comment
- May 10, 2023Adopt updated utilities to pickup MatX 0.4.0 — nv-morpheus/Morpheus0 reactions · 1 comment
- May 1, 2023Adoption MatX fix for Pascal builds — nv-morpheus/utilities0 reactions · 1 comment
- Apr 26, 2023[FEA]: Adopt MatX v0.4.0 — nv-morpheus/Morpheus0 reactions
- Mar 13, 2023Adopt commit 015908f of matx — nv-morpheus/utilities0 reactions · 1 comment
- Mar 9, 2023Use a 32bit build of MatX — nv-morpheus/utilities0 reactions · 1 comment
- Feb 16, 2022NVIDIA/MatX — fffaraz/awesome-cpp0 reactions
On Hacker News · 1
- Oct 3, 2023MatX: Efficient C++17 GPU numerical computing library with Python-like syntax103 points · 79 comments
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Every new public function, operator, transform, or backend path should include accompanying unit tests and documentation updates.
- Distinctive: line 19
When adding or changing accelerated backends such as CUDA, cuBLAS, cuSolver, cuFFT, or MathDx paths, preserve the existing non-accelerated …
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Overview
MatX is a C++20 numerical computing library targeting both CPUs and NVIDIA GPUs. It tries to use syntax familiar to both Python and MATLAB users.
Environment Setup
MatX is a header-only library, but building examples, tests, and benchmarks requires a build environment with CMake, CUDA Toolkit, and a supported C++ host compiler.
The current versions required for each dependency are listed in @docs_input/build.rst. For a reproducible build environment, users can build the Docker container in
the @.devcontainer directory using the create_base_container.sh script. The python library hpccm is required to create the Dockerfile.
Compiling and Running
For use in external projects, MatX simply needs to be included by #include <matx.h>. To build unit tests the use the CMake option MATX_BUILD_TESTS=ON, benchmarks
MATX_BUILD_BENCHMARKS=ON, and examples MATX_BUILD_EXAMPLES=ON. Individual tests can be compiled separately via different targets output from CMake.
Development Expectations
Every new public function, operator, transform, or backend path should include accompanying unit tests and documentation updates. Tests should cover the supported types, ranks, batching behavior, and important error or fallback cases for the new behavior. Documentation should describe how to use the feature, required build options or dependencies, and any limitations that would affect users or future maintainers. Any change to operators should also verify @docs_input/executor_compatibility.rst and update it if executor support, limitations, or backend requirements changed.
When adding or changing accelerated backends such as CUDA, cuBLAS, cuSolver, cuFFT, or MathDx paths, preserve the existing non-accelerated behavior unless the task explicitly calls for a breaking change. Prefer focused tests that compare the new backend against an existing trusted MatX path, and include negative tests for unsupported shape, dtype, rank, or configuration combinations when applicable.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

