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

Method is_empty

poly-commit/src/data_structures.rs:321–323  ·  view source on GitHub ↗

Returns `true` if the linear combination has no terms.

(&self)

Source from the content-addressed store, hash-verified

319
320 /// Returns `true` if the linear combination has no terms.
321 pub fn is_empty(&self) -> bool {
322 self.terms.is_empty()
323 }
324
325 /// Add a term to the linear combination.
326 pub fn push(&mut self, term: (F, LCTerm)) -> &mut Self {

Callers 5

equation_test_templateFunction · 0.80
trimMethod · 0.80
newMethod · 0.80
trimMethod · 0.80
tensor_primeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected