pub fn dummy_r1cs_stream<F: PrimeField, R: RngCore>(rng: &mut R, n: usize) -> DummyR1CStream<F> {
    let e = F::rand(rng);
    let inv_e = e.inverse().expect("Buy a lottery ticket and retry");
    R1csStream {
        a_colmaj: DiagonalMatrixStreamer::new(inv_e, n),
        b_colmaj: DiagonalMatrixStreamer::new(inv_e, n),
        c_colmaj: DiagonalMatrixStreamer::new(inv_e, n),
        a_rowmaj: DiagonalMatrixStreamer::new(inv_e, n),
        b_rowmaj: DiagonalMatrixStreamer::new(inv_e, n),
        c_rowmaj: DiagonalMatrixStreamer::new(inv_e, n),
        witness: DummyStreamer::new(e, n - 1),
        z: DummyStreamer::new(e, n),
        z_a: DummyStreamer::new(F::one(), n),
        z_b: DummyStreamer::new(F::one(), n),
        z_c: DummyStreamer::new(F::one(), n),
        nonzero: n,
        joint_len: n,
    }
}
/// Output a stream for the dummy R1CS instance.
Output a stream for the dummy R1CS instance.
Output a stream for the dummy R1CS instance .
pub fn dummy_r1cs_stream<F: PrimeField, R: RngCore>(rng: &mut R, n: usize) -> DummyR1CStream<F> {
    let e = F::rand(rng);
    let inv_e = e.inverse().expect("Buy a lottery ticket and retry");
    R1csStream {
        a_colmaj: DiagonalMatrixStreamer::new(inv_e, n),
        b_colmaj: DiagonalMatrixStreamer::new(inv_e, n),
        c_colmaj: DiagonalMatrixStreamer::new(inv_e, n),
        a_rowmaj: DiagonalMatrixStreamer::new(inv_e, n),
        b_rowmaj: DiagonalMatrixStreamer::new(inv_e, n),
        c_rowmaj: DiagonalMatrixStreamer::new(inv_e, n),
        witness: DummyStreamer::new(e, n - 1),
        z: DummyStreamer::new(e, n),
        z_a: DummyStreamer::new(F::one(), n),
        z_b: DummyStreamer::new(F::one(), n),
        z_c: DummyStreamer::new(F::one(), n),
        nonzero: n,
        joint_len: n,
    }
}
pub fn dummy_r1cs_stream < F : PrimeField , R : RngCore > ( rng : & mut R , n : usize ) -> DummyR1CStream < F > { let e = F :: rand ( rng ) ; let inv_e = e . inverse ( ) . expect ( " " ) ; R1csStream { a_colmaj : DiagonalMatrixStreamer :: new ( inv_e , n ) , b_colmaj : DiagonalMatrixStreamer :: new ( inv_e , n ) , c_colmaj : DiagonalMatrixStreamer :: new ( inv_e , n ) , a_rowmaj : DiagonalMatrixStreamer :: new ( inv_e , n ) , b_rowmaj : DiagonalMatrixStreamer :: new ( inv_e , n ) , c_rowmaj : DiagonalMatrixStreamer :: new ( inv_e , n ) , witness : DummyStreamer :: new ( e , n - 1 ) , z : DummyStreamer :: new ( e , n ) , z_a : DummyStreamer :: new ( F :: one ( ) , n ) , z_b : DummyStreamer :: new ( F :: one ( ) , n ) , z_c : DummyStreamer :: new ( F :: one ( ) , n ) , nonzero : n , joint_len : n , } }
Output a stream for the dummy R1CS instance.
Output a stream for the dummy R1CS instance .
rng
&mut R
n
usize