MCPcopy Create free account
hub / github.com/elftausend/graplot / min_matrix

Function min_matrix

src/eval.rs:172–183  ·  view source on GitHub ↗
(mat: &Matrix)

Source from the content-addressed store, hash-verified

170}
171
172pub fn min_matrix(mat: &Matrix) -> f64 {
173 let mut min = mat[0][0].abs();
174 for x in mat {
175 for x in x {
176 let x = x.abs();
177 if x < min {
178 min = x;
179 }
180 }
181 }
182 min
183}
184
185
186pub fn negative(arr: &[f64]) -> bool {

Callers 1

showMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected