mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 05:06:44 +01:00
added from_bytes to vec_znx_[dft/big]
This commit is contained in:
@@ -32,16 +32,15 @@ fn main() {
|
||||
a.print_limbs(a.limbs(), n);
|
||||
println!();
|
||||
|
||||
let mut vecznx: Vec<VecZnx>= Vec::new();
|
||||
(0..rows).for_each(|_|{
|
||||
let mut vecznx: Vec<VecZnx> = Vec::new();
|
||||
(0..rows).for_each(|_| {
|
||||
vecznx.push(module.new_vec_znx(cols));
|
||||
});
|
||||
|
||||
(0..rows).for_each(|i|{
|
||||
vecznx[i].data[i*n+1] = 1 as i64;
|
||||
(0..rows).for_each(|i| {
|
||||
vecznx[i].data[i * n + 1] = 1 as i64;
|
||||
});
|
||||
|
||||
|
||||
let mut vmp_pmat: VmpPMat = module.new_vmp_pmat(rows, cols);
|
||||
module.vmp_prepare_dblptr(&mut vmp_pmat, &vecznx, &mut buf);
|
||||
|
||||
@@ -57,7 +56,6 @@ fn main() {
|
||||
let mut values_res: Vec<i64> = vec![i64::default(); n];
|
||||
res.decode_vec_i64(log_base2k, log_k, &mut values_res);
|
||||
|
||||
|
||||
res.print_limbs(res.limbs(), n);
|
||||
|
||||
module.free();
|
||||
@@ -67,7 +65,6 @@ fn main() {
|
||||
//println!("{:?}", values_res)
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
use base2k::{
|
||||
@@ -110,4 +107,4 @@ fn main() {
|
||||
module.free();
|
||||
}
|
||||
|
||||
*/
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user