Skip to main content

bytes_per_row

Function bytes_per_row 

Source
pub const fn bytes_per_row(nonzeros: usize) -> usize
Expand description

Bytes a row with nonzeros set features occupies inside a DataMatrix.

A matrix row is a slice of a shared block, so there is no per-row allocation to account for. Note this depends on how many features are set, not on the column count.