What it takes to transpose a matrix

·Hacker News··

What it takes to transpose a matrix Table of Contents Introduction Setting Naive implementation [3.90] Read stream Write stream Combining read and write streams together Dealing with cache aliasing Reversing the order [2.61] Exploring block structure [1.46] Software prefetching [1.35] 64-bit SIMD [0.74] 256-bit SIMD [0.49] Buffering output [0.35] Conclusion Andrei Gudkov <gudokk@gmail.com> Introduction Classical CPU architecture is a poor choice for performing matrix-oriented computations.

Read full article →

Related Articles

Measuring the sloppiness of code
doppp · Hacker News · 14h ago
Google will buy half the electricity from one of Finland's nuclear power plants
lukaspetersson · Hacker News · 1d ago
HuggingFace: Security.txt
yarapavan · Hacker News · 13h ago
Rune is now open source
ernestrc · Hacker News · 12h ago
The Deathray: A simple way for an untrusted site to freeze a Mac
auberonedu · Hacker News · 1d ago