-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGlobalOptimisationUtils.h
More file actions
48 lines (34 loc) · 1.04 KB
/
GlobalOptimisationUtils.h
File metadata and controls
48 lines (34 loc) · 1.04 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
/*
* OptimisationUtils.h
* zContrast
*
* Created by Andrew Logsdail on 02/06/2011.
* Copyright 2011 University of Birmingham. All rights reserved.
*
*/
#ifndef __OPTIMISATIONUTILS_HPP__
#define __OPTIMISATIONUTILS_HPP__
/**
02/06/2011
- Commented out headers inherited from Utils.h
23/08/2011
- Added in tidy function for Rotation Points
**/
// #include <cstdlib>
#include <iostream>
// #include <vector>
#include "omp.h"
#include "Utils.h"
// #include "Structures.h"
// Random Points
std::vector<RotationPoint> getRandomPoints(const int s, int *idum, LinearStruct ls);
RotationPoint getRandomPoint(int *idum, LinearStruct ls);
// Minima and Maxima of arrays
int getMinimum(const std::vector<RotationPoint> &vec, const RotationPoint rp, std::vector<std::string> *o);
int getMaximum(const std::vector<RotationPoint> &vec, std::vector<std::string> *o);
// Tidy up Rotation Point
RotationPoint tidy(RotationPoint rp);
// Initialise empty rotation
RotationPoint emptyRotationPoint();
void emptyVectorError(std::vector<std::string> *o);
#endif