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

Function sub

src/eval.rs:47–53  ·  view source on GitHub ↗
(lhs: &[f64], rhs: f64)

Source from the content-addressed store, hash-verified

45}
46
47pub fn sub(lhs: &[f64], rhs: f64) -> Vec<f64> {
48 let mut out = Vec::with_capacity(lhs.len());
49 for val in lhs.iter() {
50 out.push(val - rhs);
51 }
52 out
53}
54
55pub fn get_font_size_x(max: f64) -> f32 {
56 let a = if max >= 3. {

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected