MCPcopy Create free account
hub / github.com/Axect/Peroxide / reduce

Method reduce

src/complex/matrix.rs:1735–1741  ·  view source on GitHub ↗
(&self, init: T, f: F)

Source from the content-addressed store, hash-verified

1733 }
1734
1735 fn reduce<F, T>(&self, init: T, f: F) -> C64
1736 where
1737 F: Fn(C64, C64) -> C64,
1738 T: Into<C64>,
1739 {
1740 self.data.iter().fold(init.into(), |x, y| f(x, *y))
1741 }
1742
1743 fn zip_with<F>(&self, f: F, other: &ComplexMatrix) -> Self
1744 where

Callers 1

detMethod · 0.45

Calls 3

iterMethod · 0.80
intoMethod · 0.80
fFunction · 0.50

Tested by

no test coverage detected