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

Method col_reduce

src/complex/matrix.rs:1761–1770  ·  view source on GitHub ↗
(&self, f: F)

Source from the content-addressed store, hash-verified

1759 }
1760
1761 fn col_reduce<F>(&self, f: F) -> Vec<C64>
1762 where
1763 F: Fn(Vec<C64>) -> C64,
1764 {
1765 let mut v = vec![Complex::zero(); self.col];
1766 for (i, slot) in v.iter_mut().enumerate().take(self.col) {
1767 *slot = f(self.col(i));
1768 }
1769 v
1770 }
1771
1772 fn row_reduce<F>(&self, f: F) -> Vec<C64>
1773 where

Callers 1

check_matrixFunction · 0.45

Calls 3

fFunction · 0.50
takeMethod · 0.45
colMethod · 0.45

Tested by

no test coverage detected