strata::Aligned¶
Part of Memory.
A memory policy for tensors: memory aligned to N bytes, which strata places itself.
Small static tensors keep their elements inside the object, aligned to at most N; everything else comes from AlignedAllocator<T, N>. The policy names no element type, as layout policies name no shape.
Template parameters
| Name | Description |
|---|---|
N | A power of two. |
Members¶
allocator¶
The allocator for elements of type T.
alignment¶
The alignment of the memory, in bytes.