arnaucube
arnaucube/poulpyPublic Self-hosted repository
poulpy/backend/src/implementation/cpu_spqlios/test/vec_znx_fft64.rs
backend/src/implementation/cpu_spqlios/test/vec_znx_fft64.rsRaw
 1use crate::{
 2    hal::{
 3        api::ModuleNew,
 4        layouts::Module,
 5        tests::vec_znx::{
 6            test_vec_znx_add_normal, test_vec_znx_encode_vec_i64_hi_norm, test_vec_znx_encode_vec_i64_lo_norm,
 7            test_vec_znx_fill_uniform,
 8        },
 9    },
10    implementation::cpu_spqlios::FFT64,
11};
12
13#[test]
14fn test_vec_znx_fill_uniform_fft64() {
15    let module: Module<FFT64> = Module::<FFT64>::new(1 << 12);
16    test_vec_znx_fill_uniform(&module);
17}
18
19#[test]
20fn test_vec_znx_add_normal_fft64() {
21    let module: Module<FFT64> = Module::<FFT64>::new(1 << 12);
22    test_vec_znx_add_normal(&module);
23}
24
25#[test]
26fn test_vec_znx_encode_vec_lo_norm_fft64() {
27    let module: Module<FFT64> = Module::<FFT64>::new(1 << 8);
28    test_vec_znx_encode_vec_i64_lo_norm(&module);
29}
30
31#[test]
32fn test_vec_znx_encode_vec_hi_norm_fft64() {
33    let module: Module<FFT64> = Module::<FFT64>::new(1 << 8);
34    test_vec_znx_encode_vec_i64_hi_norm(&module);
35}