feat(shortint): add pbs_order method to AtomicPatternKind

This commit is contained in:
Nicolas Sarlin
2025-07-15 13:54:11 +02:00
committed by Nicolas Sarlin
parent b87adc22fd
commit 9024c6f4db

View File

@@ -56,6 +56,15 @@ pub enum AtomicPatternKind {
KeySwitch32,
}
impl AtomicPatternKind {
pub fn pbs_order(self) -> PBSOrder {
match self {
Self::Standard(pbsorder) => pbsorder,
Self::KeySwitch32 => PBSOrder::KeyswitchBootstrap,
}
}
}
/// The set of operations needed to implement an Atomic Pattern.
///
/// Here the definition of Atomic Pattern is a bit more TFHE-specific and includes the evaluation of