Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Vectors

rustebra provides two vector types: StaticVector<T, N>, stack-allocated with a compile-time length, and DynamicVector<T>, heap-allocated behind the alloc feature with a runtime length. This section covers how to construct them, the arithmetic and dot-product operations they support, and how to compute their norm.