pub fn from_r1cs_instance(
    gens: &R1CSGens<G>,
    S: &R1CSShape<G>,
    instance: &R1CSInstance<G>,
  ) -> RelaxedR1CSInstance<G> {
    let mut r_instance = RelaxedR1CSInstance::default(gens, S);
    r_instance.comm_W = instance.comm_W;
    r_instance.u = G::Scalar::one();
    r_instance.X = instance.X.clone();
    r_instance
  }
/// Initializes a new RelaxedR1CSInstance from an R1CSInstance
Initializes a new RelaxedR1CSInstance from an R1CSInstance
Initializes a new RelaxedR1CSInstance from an R1CSInstance
pub fn from_r1cs_instance(
    gens: &R1CSGens<G>,
    S: &R1CSShape<G>,
    instance: &R1CSInstance<G>,
  ) -> RelaxedR1CSInstance<G> {
    let mut r_instance = RelaxedR1CSInstance::default(gens, S);
    r_instance.comm_W = instance.comm_W;
    r_instance.u = G::Scalar::one();
    r_instance.X = instance.X.clone();
    r_instance
  }
pub fn from_r1cs_instance ( gens : & R1CSGens < G > , S : & R1CSShape < G > , instance : & R1CSInstance < G > , ) -> RelaxedR1CSInstance < G > { let mut r_instance = RelaxedR1CSInstance :: default ( gens , S ) ; r_instance . comm_W = instance . comm_W ; r_instance . u = G :: Scalar :: one ( ) ; r_instance . X = instance . X . clone ( ) ; r_instance }
Initializes a new RelaxedR1CSInstance from an R1CSInstance
Initializes a new RelaxedR1CSInstance from an R1CSInstance
gens
&R1CSGens<G>
S
&R1CSShape<G>
instance
&R1CSInstance<G>
gens
&R1CSGens<G>
S
&R1CSShape<G>
instance
&R1CSInstance<G>