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

Function max_matrix

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

Source from the content-addressed store, hash-verified

157
158
159pub fn max_matrix(mat: &Matrix) -> f64 {
160 let mut max = mat[0][0].abs();
161 for x in mat {
162 for x in x {
163 let x = x.abs();
164 if x > max {
165 max = x;
166 }
167 }
168 }
169 max
170}
171
172pub fn min_matrix(mat: &Matrix) -> f64 {
173 let mut min = mat[0][0].abs();

Callers 2

runFunction · 0.85
runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected