nalgebra::base::allocator - Rust
Description: Abstract definition of a matrix data storage allocator.
Keywords: rust, rustlang, rust-lang, allocator

# Module nalgebra::base::allocator

source ·
Expand description

Abstract definition of a matrix data storage allocator.

## Traits

Allocator
A matrix allocator of a memory buffer that may contain `R::to_usize() * C::to_usize()` elements of type `T`.
Reallocator
A matrix reallocator. Changes the size of the memory buffer that initially contains (`RFrom` × `CFrom`) elements to a smaller or larger size (`RTo`, `CTo`).
SameShapeAllocator
Restricts the given number of rows and columns to be respectively the same.
SameShapeVectorAllocator
Restricts the given number of rows to be equal.

## Type Definitions

SameShapeC
The number of columns of the result of a componentwise operation on two matrices.
SameShapeR
The number of rows of the result of a componentwise operation on two matrices.