Skip to main content

write_mtx

Function write_mtx 

Source
pub fn write_mtx(m: &CountMatrix, out: impl Write) -> Result<()>
Expand description

Write the matrix back in genes×cells MatrixMarket real coordinate layout, preserving the input entry order. A big buffer plus ryu float formatting keeps the matrix-sized write I/O-bound rather than format-bound.