Skip to content

Commit

Permalink
Merge pull request #1008 from andyleiserson/transpose
Browse files Browse the repository at this point in the history
Transposes for vectorized aggregation
  • Loading branch information
andyleiserson authored Apr 17, 2024
2 parents cafca7b + aa1554d commit eaf1b82
Show file tree
Hide file tree
Showing 2 changed files with 472 additions and 230 deletions.
4 changes: 4 additions & 0 deletions ipa-core/src/secret_sharing/decomposed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ impl<S: Clone> BitDecomposed<S> {
pub fn resize(&mut self, new_len: usize, value: S) {
self.bits.resize(new_len, value);
}

pub fn truncate(&mut self, len: usize) {
self.bits.truncate(len);
}
}

impl<A, const N: usize> FromPrss<usize> for BitDecomposed<AdditiveShare<Boolean, N>>
Expand Down
Loading

0 comments on commit eaf1b82

Please sign in to comment.