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

Method col_mut_map

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

Source from the content-addressed store, hash-verified

1703 }
1704
1705 fn col_mut_map<F>(&mut self, f: F)
1706 where
1707 F: Fn(Vec<C64>) -> Vec<C64>,
1708 {
1709 for i in 0..self.col {
1710 unsafe {
1711 let mut p = self.col_mut(i);
1712 let fv = f(self.col(i));
1713 for j in 0..p.len() {
1714 *p[j] = fv[j];
1715 }
1716 }
1717 }
1718 }
1719
1720 fn row_mut_map<F>(&mut self, f: F)
1721 where

Callers

nothing calls this directly

Calls 4

fFunction · 0.50
col_mutMethod · 0.45
colMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected