-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathio.cc
More file actions
63 lines (50 loc) · 1.08 KB
/
Copy pathio.cc
File metadata and controls
63 lines (50 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include <stdlib.h>
#include <assert.h>
#include <math.h>
#include <complex.h>
#include <time.h>
#include <NTL/ZZ.h>
#include <NTL/ZZX.h>
#include <NTL/mat_ZZ.h>
#include <gmp.h>
#include "io.h"
#include "params.h"
using namespace std;
using namespace NTL;
void PrintDoubleTab(const unsigned int N, RR_t const * const Tab)
{
cout << "[";
for(unsigned int j = 0; j < N; j++)
{
cout << ((long double)Tab[j]) << " ";
}
cout << "]" << endl;
}
void PrintDoubleMatrix(const unsigned int N, const RR_t Tab[3 * N0][3 * N0])
{
for(unsigned int j = 0; j < N; j++)
{
PrintDoubleTab(N, Tab[j]);
}
cout << endl;
}
void PrintIntTab(const unsigned int N, long int const * const Tab)
{
cout << "[";
for(unsigned int j = 0; j < N; j++)
{
cout << Tab[j] << " ";
}
cout << "]" << endl;
cout << endl;
}
void PrintFFT(CC_t const * const f_fft)
{
unsigned int i;
cout << "[";
for(i = 0; i < N0; i++)
{
cout << (f_fft[i]).real() << "+ I*" << (f_fft[i]).imag() << " ";
}
cout << "]" << endl;
}