Appearance
cellpack::scans::map_parts_at
Module contract · All interfaces
At a glance
pub fn map_parts_at<S: CastInto<T>, T: Element>(
parts: &Parts<'_>,
positions: &[u32],
map: &[u32],
dict: &[T],
modes: &[T],
cols: &mut [u32],
vals: &mut [T],
) -> Result<()>Mapping decoded rows onto a caller column panel, and the element types its conversions take. Maps the elements of a decoded row at positions (each below the row’s nnz, in any order, repeats allowed): cols[i] = map[id] and vals[i] the value of element positions[i], with dict and modes as in map_parts. Nothing is dropped: an UNMAPPED column is written as it is. For callers that need only some elements of a row, such as a sampler choosing positions first. A position at or beyond the row’s nnz is Error::InvalidInput.
Contract reference
See the module reference for semantic input/output rules, units, allocation, mutation, failure behavior, and lifetime requirements. Declarations and documented members are synchronized from the crate source.