mirror of https://github.com/zcash/halo2.git
Merge pull request #284 from zcash/doc-batch-invert-zero
Document that batch inversion in arithmetic.rs leaves zero as zero
This commit is contained in:
commit
32cdcfa66f
|
@ -11,7 +11,8 @@ pub use pasta_curves::arithmetic::*;
|
|||
/// field elements to be inverted in a batch.
|
||||
pub trait BatchInvert<F: Field> {
|
||||
/// Consume this iterator and invert each field element (when nonzero),
|
||||
/// returning the inverse of all nonzero field elements.
|
||||
/// returning the inverse of all nonzero field elements. Zero elements
|
||||
/// are left as zero.
|
||||
fn batch_invert(self) -> F;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue