
Description
vectorization is an agent skill for SIMD code in .NET. It helps design, implement, optimise and review code that uses TensorPrimitives, Vector64, Vector128, Vector256, Vector512 or platform hardware intrinsics to speed up scalar loops. The skill is strict about correctness: an optimised version must keep the same contract as the scalar code and stay memory-safe at every input length. It asks the agent to follow the official .NET SIMD and hardware-intrinsics guidance and its implementation templates, including per-width dispatch, separate handling for small inputs, and proper loop and remainder shapes instead of a chain of width checks. It also asks for measured results, so a vector version is kept only when it earns its extra complexity. Before it starts, the skill looks at the repository for what it needs instead of asking the user first.…
Highlights
- Vectorises scalar loops with TensorPrimitives or Vector types
- Keeps results identical to the scalar version
- Handles small inputs and loop remainders safely
- Keeps a change only when measured results justify it
Ratings & Reviews
No ratings yet
Be the first to rate vectorization.
People also visit
vectorization FAQ
What is vectorization in .NET?
Processing several values in one CPU instruction using SIMD types such as Vector128 and TensorPrimitives, which can speed up tight numeric loops.
Does it keep the same results?
It requires the optimised code to preserve the scalar contract and stay memory-safe at every length, and it asks for measured results before keeping a change.
Which hardware widths does it cover?
Vector64, Vector128, Vector256 and Vector512, plus platform hardware intrinsics, with per-width dispatch in the code.
How do I install it?
Run npx skills add https://github.com/dotnet/skills --skill vectorization in a terminal.
Which security audits has it passed?
Gen Agent Trust Hub Pass, Socket Pass, Snyk Pass.
What are the best vectorization alternatives?
Popular alternatives to vectorization include dotnet-skills, modern-csharp-coding-standards and tilegym-cutile-python. See all vectorization alternatives







