Returns self as a list of columns
(&self)
| 115 | |
| 116 | /// Returns self as a list of columns |
| 117 | pub(crate) fn cols(&self) -> Vec<Vec<F>> { |
| 118 | (0..self.m) |
| 119 | .map(|col| (0..self.n).map(|row| self.entries[row][col]).collect()) |
| 120 | .collect() |
| 121 | } |
| 122 | |
| 123 | /// Returns the product v * self, where v is interpreted as a row vector. In other words, |
| 124 | /// it returns a linear combination of the rows of self with coefficients given by v. |
no outgoing calls
no test coverage detected