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

Method row_reduce

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

Source from the content-addressed store, hash-verified

1770 }
1771
1772 fn row_reduce<F>(&self, f: F) -> Vec<C64>
1773 where
1774 F: Fn(Vec<C64>) -> C64,
1775 {
1776 let mut v = vec![Complex::zero(); self.row];
1777 for (i, slot) in v.iter_mut().enumerate().take(self.row) {
1778 *slot = f(self.row(i));
1779 }
1780 v
1781 }
1782}
1783
1784pub fn cdiag(n: usize) -> ComplexMatrix {

Callers 1

check_matrixFunction · 0.45

Calls 3

fFunction · 0.50
takeMethod · 0.45
rowMethod · 0.45

Tested by

no test coverage detected