Skip to content

Commit

Permalink
Remove one more unused transpose impl
Browse files Browse the repository at this point in the history
  • Loading branch information
andyleiserson committed Apr 4, 2024
1 parent b4f5f65 commit a082a24
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions ipa-core/src/secret_sharing/vector/transpose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,28 +475,6 @@ macro_rules! impl_transpose_shares_ba_to_bool {
dst.transpose_from(src)
}
}

impl TransposeFrom<Vec<AdditiveShare<$src_row>>>
for BitDecomposed<AdditiveShare<Boolean, $src_rows>>
{
type Error = LengthError;
fn transpose_from(
&mut self,
src: Vec<AdditiveShare<$src_row>>,
) -> Result<(), LengthError> {
self.resize($src_cols, AdditiveShare::<Boolean, $src_rows>::ZERO);
let src = <&[AdditiveShare<$src_row>; $src_rows]>::try_from(src.as_slice())
.map_err(|_| LengthError {
expected: $src_rows,
actual: src.len(),
})?;
let dst =
<&mut [AdditiveShare<Boolean, $src_rows>; $src_cols]>::try_from(&mut **self)
.unwrap();
dst.transpose_from(src).unwrap_infallible();
Ok(())
}
}
};
}

Expand Down

0 comments on commit a082a24

Please sign in to comment.