MCPcopy Create free account
hub / github.com/PerroEngine/Perro / min_cell

Method min_cell

perro_source/core/perro_structs/src/structs/matrix/mod.rs:799–806  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

797
798 #[inline]
799 pub fn min_cell(&self) -> Option<(usize, usize, T)>
800 where
801 T: Copy + PartialOrd,
802 {
803 self.cells()
804 .filter_map(|(row, col, value)| value.partial_cmp(value).map(|_| (row, col, *value)))
805 .min_by(|(_, _, a), (_, _, b)| a.partial_cmp(b).unwrap_or(std::cmp::Ordering::Equal))
806 }
807
808 #[inline]
809 pub fn max_cell(&self) -> Option<(usize, usize, T)>

Callers

nothing calls this directly

Calls 1

cellsMethod · 0.80

Tested by

no test coverage detected