-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFarrayTypes.h
More file actions
39 lines (35 loc) · 843 Bytes
/
Copy pathFarrayTypes.h
File metadata and controls
39 lines (35 loc) · 843 Bytes
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
# ifndef FARRAYTYPES_H
# define FARRAYTYPES_H
# include "numOp.h"
# include "Timer.h"
# include "FileOp.h"
# include "Distribution.h"
// A class that sets floating point array test cases
class Rfarray
{
int N;
float g;
fstream fout;
vector <int> dist;
public:
Rfarray();
void generate(int, int, Timer&, float, float);
void setCase(string&, int, int, int, float, float, int, bool, int, string&);
vector <int> setCaseDist(int, int, bool);
};
// A class that generates sorted floating point array test cases
class Rsfarray
{
int N;
float rn;
vector <float> g;
fstream fout;
vector <int> dist;
default_random_engine generator;
public:
Rsfarray();
void generate(int, int, Timer&, float, float);
void setCase(string&, int, int, int, float, float, int, bool, int, string&);
vector <int> setCaseDist(int, int, bool);
};
# endif