Skip to main content

inline_ndarray

Function inline_ndarray 

Source
pub fn inline_ndarray(
    doc: &mut Document,
    id: NodeId,
    elements: &[Element],
    shape: &[u64],
) -> Result<()>
Expand description

Replace an ndarray’s source with the inline data it stands for.

This is the transformation the reference corpus prescribes. The array’s byteorder, offset and strides describe how bytes sit in a block and become meaningless once the data is inline, so they are removed too.