Skip to main content

TensorEntry

Type Alias TensorEntry 

Source
pub type TensorEntry<F> = (usize, F);
Expand description

One nonzero of a sparse tensor: a flat index over every axis, and the value carried there.

Axes run lowest first, so the first axis owns the lowest index bits. Entries at a repeated index add, so a caller need not deduplicate them.