You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Converts a CudaIntegerRadixCiphertext with num_blocks * num_ciphertexts LWEs into a
76
+
// Vec<CudaIntegerRadixCiphertext> of length num_radix_ciphertexts, where each ciphertext has
77
+
// num_blocks LWEs
78
+
fnto_integer_radix_ciphertext_vec(
79
+
&self,
80
+
num_radix_ciphertexts:u32,
81
+
streams:&CudaStreams,
82
+
) -> Vec<Self>{
83
+
let total_blocks = self.as_ref().d_blocks.0.lwe_ciphertext_count.0;
84
+
assert_eq!(total_blocks % num_radix_ciphertexts asusize,0,"Total number of blocks ({total_blocks}) is not divisible by number of radix ciphertexts ({num_radix_ciphertexts})");
85
+
86
+
let num_blocks = total_blocks / num_radix_ciphertexts asusize;
87
+
88
+
letmut result = Vec::with_capacity(num_radix_ciphertexts asusize);
89
+
let lwe_dimension = self.as_ref().d_blocks.lwe_dimension();
0 commit comments