MCPcopy Create free account
hub / github.com/arkworks-rs/poly-commit / cols

Method cols

poly-commit/src/utils.rs:117–121  ·  view source on GitHub ↗

Returns self as a list of columns

(&self)

Source from the content-addressed store, hash-verified

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.

Callers 2

commitMethod · 0.80
generate_proofFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected