mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-10 07:08:03 -05:00
feat(shortint): add pbs_order method to AtomicPatternKind
This commit is contained in:
committed by
Nicolas Sarlin
parent
b87adc22fd
commit
9024c6f4db
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user