Skip to content

Commit 914042c

Browse files
committed
Rename "LinearCombinaison" to "LinearCombination".
1 parent 09ac94d commit 914042c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/toolbox/sigma/group_morphism.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
use std::marker::PhantomData;
22
use 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

99
pub 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

@@ -58,7 +58,7 @@ where
5858
}
5959

6060
impl<G> GroupMorphismPreimage<G>
61-
where
61+
where
6262
G: Group + GroupEncoding,
6363
{
6464
pub fn new() -> Self {
@@ -77,7 +77,7 @@ where
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

Comments
 (0)