NDOSolver / FiOracle
Interfaces and Solvers for NonDifferentiable Optimization
Loading...
Searching...
No Matches
OPTtypes.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/*--------------------------- File OPTtypes.h ------------------------------*/
3/*--------------------------------------------------------------------------*/
19/*--------------------------------------------------------------------------*/
20/*--------------------------------------------------------------------------*/
21/*--------------------------------------------------------------------------*/
22
23#ifndef __OPTtypes
24 #define __OPTtypes /* self-identification: #endif at the end of the file */
25
26/*--------------------------------------------------------------------------*/
27/*------------------------------ INCLUDES ----------------------------------*/
28/*--------------------------------------------------------------------------*/
29
30#include "OPTUtils.h"
31
32/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
33
34#include <limits.h>
35
36/*--------------------------------------------------------------------------*/
37/*--------------------------- NAMESPACE ------------------------------------*/
38/*--------------------------------------------------------------------------*/
39
41{
46/*--------------------------------------------------------------------------*/
47/*---------------------------- TYPES ---------------------------------------*/
48/*--------------------------------------------------------------------------*/
52typedef bool *Bool_Vec;
54
55typedef const bool cBOOL;
56typedef cBOOL *cBool_Vec;
57
58/*--------------------------------------------------------------------------*/
59
60typedef unsigned int Index;
61typedef Index *Index_Set;
63
64typedef const Index cIndex;
66
67/*--------------------------------------------------------------------------*/
68
69typedef int SIndex;
73
74typedef const SIndex cSIndex;
76
77/*--------------------------------------------------------------------------*/
78
79typedef long int INum;
80typedef INum *IRow;
81typedef IRow *IMat;
83
84typedef const INum cINum;
85typedef cINum *cIRow;
86
87/*--------------------------------------------------------------------------*/
88
89typedef double Number;
90typedef Number *Row;
91typedef Row *Mat;
92
93typedef const Number cNumber;
94typedef cNumber *cRow;
95
96/*--------------------------------------------------------------------------*/
97
98typedef double HpNum;
99typedef HpNum *HpRow;
100typedef HpRow *HpMat;
101
102typedef const HpNum cHpNum;
103typedef cHpNum *cHpRow;
104
106/*----------- Type definitions for subgradient-based algorithms ------------*/
107/*--------------------------------------------------------------------------*/
111typedef double SgNum;
112typedef SgNum *SgRow;
113typedef SgRow *SgMat;
114
115typedef const SgNum cSgNum;
116typedef cSgNum *cSgRow;
117
118/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
119
120typedef double QuNum;
121typedef QuNum *QuRow;
122typedef QuRow *QuMat;
123
124typedef const QuNum cQuNum;
125typedef cQuNum *cQuRow;
126
127/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
128
129typedef double LMNum;
130typedef LMNum *LMRow;
131typedef LMRow *LMMat;
132
133typedef const LMNum cLMNum;
134typedef cLMNum *cLMRow;
135
137/*--------------------------------------------------------------------------*/
138
139}; // end( namespace OPTtypes_di_unipi_it )
140
141/*--------------------------------------------------------------------------*/
142/*--------------------------------------------------------------------------*/
143
144#endif /* OPTtypes.h included */
145
146/*--------------------------------------------------------------------------*/
147/*---------------------- End File OPTtypes.h -------------------------------*/
148/*--------------------------------------------------------------------------*/
Bool_Vec * Bool_Mat
matrix of booleans
Definition OPTtypes.h:53
cINum * cIRow
read-only array
Definition OPTtypes.h:85
HpRow * HpMat
"finer" (fp) matrix
Definition OPTtypes.h:100
const bool cBOOL
a read-only boolean
Definition OPTtypes.h:55
double Number
"normal" floating point numbers
Definition OPTtypes.h:89
INum * IRow
vectors of integers
Definition OPTtypes.h:80
int SIndex
Definition OPTtypes.h:69
HpNum * HpRow
"finer" (fp) array
Definition OPTtypes.h:99
const INum cINum
a read-only integer
Definition OPTtypes.h:84
const HpNum cHpNum
a read-only HpNum
Definition OPTtypes.h:102
IRow * IMat
Definition OPTtypes.h:81
double HpNum
"finer" floating point numbers
Definition OPTtypes.h:98
const Number cNumber
a read-only Number
Definition OPTtypes.h:93
SIndex_Set * SIndex_Mat
set of set (matrix) of s. indices
Definition OPTtypes.h:72
const Index cIndex
a read-only Index
Definition OPTtypes.h:64
cBOOL * cBool_Vec
read-only array
Definition OPTtypes.h:56
cIndex * cIndex_Set
read-only array
Definition OPTtypes.h:65
SIndex * SIndex_Set
set (array) of s. indices
Definition OPTtypes.h:71
const SIndex cSIndex
a read-only Signed Index
Definition OPTtypes.h:74
cNumber * cRow
read-only array
Definition OPTtypes.h:94
Number * Row
"normal" (fp) array
Definition OPTtypes.h:90
Row * Mat
"normal" (fp) matrix
Definition OPTtypes.h:91
long int INum
integer numbers
Definition OPTtypes.h:79
Index * Index_Set
set (array) of indices
Definition OPTtypes.h:61
bool * Bool_Vec
vector of booleans
Definition OPTtypes.h:52
unsigned int Index
Index in a vector ( >= 0 )
Definition OPTtypes.h:60
Index_Set * Index_Mat
set of set of indices
Definition OPTtypes.h:62
cHpNum * cHpRow
read-only array
Definition OPTtypes.h:103
cSIndex * cSIndex_Set
read-only array
Definition OPTtypes.h:75
cQuNum * cQuRow
a read-only row of Q
Definition OPTtypes.h:125
const SgNum cSgNum
a read-only subgradient entry
Definition OPTtypes.h:115
SgRow * SgMat
a bundle (set of subgradients)
Definition OPTtypes.h:113
SgNum * SgRow
a subgradient
Definition OPTtypes.h:112
QuRow * QuMat
Q (itself)
Definition OPTtypes.h:122
LMNum * LMRow
a vector of Lagrangean Multipliers
Definition OPTtypes.h:130
double LMNum
a Lagrangean Multiplier
Definition OPTtypes.h:129
cLMNum * cLMRow
a read-only vector of LMs
Definition OPTtypes.h:134
const QuNum cQuNum
a read-only number in Q
Definition OPTtypes.h:124
double QuNum
numbers in Q ( G{i}{T} * G{j} )
Definition OPTtypes.h:120
const LMNum cLMNum
a read-only Lagrangean Multiplier
Definition OPTtypes.h:133
double SgNum
subgradient entries
Definition OPTtypes.h:111
QuNum * QuRow
row of Q
Definition OPTtypes.h:121
LMRow * LMMat
a matrix of Lagrangean Multipliers
Definition OPTtypes.h:131
cSgNum * cSgRow
a read-only subgradient
Definition OPTtypes.h:116
Definition OPTtypes.h:41