---
title: "AoS and SoA"
summary: "AoS and SoA: a page of the HPC note."
date: 2026-09-11
author: hpcnotes
kind: note
parent: hpc-cpu-cache
order: 13
tags: hpc
draft: false
---

The loop dictates the layout. Gather is the cost of getting it wrong.
