chiark
/
gitweb
/
~ianmdlvl
/
nlopt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Allow to modify Python & octave site dir
[nlopt.git]
/
test
/
testfuncs.h
1
#ifndef TESTFUNCS_H
2
#define TESTFUNCS_H
3
4
#ifdef __cplusplus
5
extern "C"
6
{
7
#endif /* __cplusplus */
8
9
#include "nlopt.h"
10
11
typedef struct {
12
nlopt_func f;
13
void *f_data;
14
int has_gradient;
15
int n;
16
const double *lb, *ub, *xmin;
17
double minf;
18
const char *name;
19
} testfunc;
20
21
#define NTESTFUNCS 22
22
extern const testfunc testfuncs[NTESTFUNCS];
23
24
extern int testfuncs_verbose;
25
extern int testfuncs_counter;
26
27
#ifdef __cplusplus
28
} /* extern "C" */
29
#endif /* __cplusplus */
30
31
#endif