11use std:: marker:: PhantomData ;
22use group:: { Group , GroupEncoding } ;
33
4- pub struct LinearCombinaison {
4+ pub struct LinearCombination {
55 pub scalar_indices : Vec < usize > ,
66 pub element_indices : Vec < usize > ,
77}
88
99pub struct Morphism < G : Group > {
10- pub linear_combinaison : Vec < LinearCombinaison > ,
10+ pub linear_combinaison : Vec < LinearCombination > ,
1111 pub group_elements : Vec < G > ,
1212 pub num_scalars : usize ,
1313 pub num_elements : usize ,
@@ -31,7 +31,7 @@ impl<G: Group> Morphism<G> {
3131 }
3232 }
3333
34- pub fn append ( & mut self , lc : LinearCombinaison ) {
34+ pub fn append ( & mut self , lc : LinearCombination ) {
3535 self . linear_combinaison . push ( lc) ;
3636 }
3737
5858}
5959
6060impl < G > GroupMorphismPreimage < G >
61- where
61+ where
6262 G : Group + GroupEncoding ,
6363{
6464 pub fn new ( ) -> Self {
7777 }
7878
7979 pub fn append_equation ( & mut self , lhs : usize , rhs : & [ ( usize , usize ) ] ) {
80- let lc = LinearCombinaison {
80+ let lc = LinearCombination {
8181 scalar_indices : rhs. iter ( ) . map ( |& ( s, _) | s) . collect ( ) ,
8282 element_indices : rhs. iter ( ) . map ( |& ( _, e) | e) . collect ( ) ,
8383 } ;
0 commit comments