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

Method row_mut_map

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

Source from the content-addressed store, hash-verified

1718 }
1719
1720 fn row_mut_map<F>(&mut self, f: F)
1721 where
1722 F: Fn(Vec<C64>) -> Vec<C64>,
1723 {
1724 for i in 0..self.col {
1725 unsafe {
1726 let mut p = self.row_mut(i);
1727 let fv = f(self.row(i));
1728 for j in 0..p.len() {
1729 *p[j] = fv[j];
1730 }
1731 }
1732 }
1733 }
1734
1735 fn reduce<F, T>(&self, init: T, f: F) -> C64
1736 where

Callers

nothing calls this directly

Calls 4

fFunction · 0.50
row_mutMethod · 0.45
rowMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected