Expand description
Owned, fixed-capacity inline tensor (no_std, no_alloc).
Tensor<T, N, R> stores up to N elements of scalar type T with
a compile-time rank R. Data is held inline (stack / static storage),
so no heap allocation is required. A live-element count (len) tracks
how many of the N slots are in use; the shape array [usize; R] records
the logical dimensions.
Use &Tensor<T, N, R> for a borrowed, zero-copy view into an existing
buffer (e.g. a frame from a DMA ring).
Structs§
- Tensor
- Owned, fixed-capacity tensor stored inline.
Constants§
- TEST_
TENSOR_ BYTE_ COUNT - Total live payload byte count of
TestTensor. - TEST_
TENSOR_ ELEMENT_ COUNT - Total live element count of
TestTensor. - TEST_
TENSOR_ SHAPE - Canonical shape used by shared test and benchmark tensor fixtures.
Functions§
- create_
test_ tensor_ filled_ with - Create a shared test tensor with every element set to the same value.
- create_
test_ tensor_ from_ array - Create a shared test tensor from explicit
3 × 3element values.
Type Aliases§
- Test
Tensor - Shared rank-2 tensor payload used by tests and benchmarks.