This file is indexed.

/usr/include/dsdp/dsdp5.h is in libdsdp-dev 5.8-9.1ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
#if !defined(__DSDP_INTERFACE_H) 
#define __DSDP_INTERFACE_H
/*!
  \file dsdp5.h
  \brief The API to DSDP for those applications using DSDP as a subroutine library
*/

#include "dsdpbasictypes.h"
#include "dsdpsys.h"

/*! 
\typedef struct SDPCone_C* SDPCone;
\brief The SDPCone object points to blocks of data that specify
semidefinite matrix inequalities.
*/
/*! 
\typedef struct LPCone_C* LPCone;
\brief The LPCone object points to blocks of data that specify
linear scalar inequality constraints.
*/
/*! 
\typedef struct BCone_C* BCone;
\brief The BCone object points to lower and upper bounds on 
the variable y in (D).
*/
typedef struct SDPCone_C* SDPCone;
typedef struct LPCone_C* LPCone;
typedef struct BCone_C* BCone;
extern FILE *dsdpoutputfile;

#ifdef __cplusplus
extern "C" {
#endif


extern int DSDPCreate(int, DSDP *);
extern int DSDPSetup(DSDP);
extern int DSDPSolve(DSDP);
extern int DSDPComputeX(DSDP);
extern int DSDPComputeAndFactorS(DSDP,DSDPTruth*);
extern int DSDPDestroy(DSDP);

extern int DSDPCreateBCone(DSDP, BCone*);
extern int BConeAllocateBounds(BCone,int);
extern int BConeSetLowerBound(BCone,int, double);
extern int BConeSetUpperBound(BCone,int, double);
extern int BConeSetPSlackVariable(BCone,int);
extern int BConeSetPSurplusVariable(BCone,int);
extern int BConeScaleBarrier(BCone,double);
extern int BConeView(BCone);
extern int BConeSetXArray(BCone,double[], int);
extern int BConeCopyX(BCone,double[],double[],int);

extern int DSDPBoundDualVariables(DSDP,double, double);
extern int DSDPSetYBounds(DSDP,double,double);
extern int DSDPGetYBounds(DSDP,double*,double*);

extern int DSDPCreateLPCone(DSDP,LPCone*);
extern int LPConeSetData(LPCone,int,const int[],const int[],const double[]);
extern int LPConeSetData2(LPCone,int,const int[],const int[],const double[]);
extern int LPConeGetData(LPCone,int,double[],int);
extern int LPConeScaleBarrier(LPCone,double);
extern int LPConeGetXArray(LPCone,double*[], int*);
extern int LPConeGetSArray(LPCone,double*[], int*);
extern int LPConeGetDimension(LPCone,int*);
extern int LPConeView(LPCone lpcone);
extern int LPConeView2(LPCone lpcone);
extern int LPConeCopyS(LPCone,double[],int);

extern int DSDPCreateSDPCone(DSDP, int, SDPCone*);
extern int SDPConeSetBlockSize(SDPCone, int, int);
extern int SDPConeGetBlockSize(SDPCone, int, int*);
extern int SDPConeSetStorageFormat(SDPCone, int, char);
extern int SDPConeGetStorageFormat(SDPCone, int, char*);
extern int SDPConeCheckStorageFormat(SDPCone, int, char);
extern int SDPConeSetSparsity(SDPCone, int, int);
extern int SDPConeView(SDPCone);
extern int SDPConeView2(SDPCone);
extern int SDPConeView3(SDPCone);

extern int SDPConeSetASparseVecMat(SDPCone,int,int,int,double,int,const int[],const double[],int);
extern int SDPConeSetADenseVecMat(SDPCone,int,int,int,double,double[],int);
/* extern int SDPConeSetDenseMatWSparseData(SDPCone,int, int, int, double*, int*, int*); */
extern int SDPConeSetARankOneMat(SDPCone,int,int,int,double,int,const int[],const double[],int);
extern int SDPConeSetConstantMat(SDPCone,int,int,int,double); 
extern int SDPConeSetZeroMat(SDPCone,int,int,int);
extern int SDPConeSetIdentity(SDPCone,int,int,int,double);
extern int SDPConeViewDataMatrix(SDPCone,int,int);
extern int SDPConeMatrixView(SDPCone,int);

extern int SDPConeAddASparseVecMat(SDPCone,int,int,int,double,int,const int[],const double[],int);
extern int SDPConeAddADenseVecMat(SDPCone,int,int,int,double,double[],int);
extern int SDPConeAddConstantMat(SDPCone,int,int,int,double); 
extern int SDPConeAddIdentity(SDPCone,int,int,int,double);
extern int SDPConeAddARankOneMat(SDPCone,int,int,int,double,int,const int[],const double[],int);

/* For backward compatibility */
extern int SDPConeAddSparseVecMat(SDPCone,int,int,int,int,const int[],const double[],int);
extern int SDPConeAddDenseVecMat(SDPCone,int,int,int,double[],int);
extern int SDPConeSetSparseVecMat(SDPCone,int,int,int,int,const int[],const double[],int);
extern int SDPConeSetDenseVecMat(SDPCone,int,int,int,double[],int);

extern int SDPConeSetXMat(SDPCone,int,int);
extern int SDPConeSetXArray(SDPCone,int,int,double[], int);
extern int SDPConeGetXArray(SDPCone,int,double*[],int*);
extern int SDPConeRestoreXArray(SDPCone,int,double*[],int*);
extern int SDPConeCheckData(SDPCone);
extern int SDPConeRemoveDataMatrix(SDPCone,int,int);
extern int SDPConeGetNumberOfBlocks(SDPCone, int*);
extern int SDPConeComputeS(SDPCone, int, double,double[], int, double,int,double[],int);
extern int SDPConeComputeX(SDPCone,int,int,double[],int);
extern int SDPConeAddADotX(SDPCone,int,double,double[],int,double[],int);
extern int SDPConeViewX(SDPCone,int,int,double[],int);
extern int SDPConeSetLanczosIterations(SDPCone,int);
extern int SDPConeScaleBarrier(SDPCone,int,double); 
extern int SDPConeXVMultiply(SDPCone,int,double[],double[],int);
extern int SDPConeComputeXV(SDPCone,int,int*);
extern int SDPConeAddXVAV(SDPCone,int,double[],int,double[],int);
extern int SDPConeUseLAPACKForDualMatrix(SDPCone,int);

extern int DSDPSetDualObjective(DSDP,int,double);
extern int DSDPAddObjectiveConstant(DSDP,double);
extern int DSDPGetDObjective(DSDP,double*);
extern int DSDPGetDDObjective(DSDP,double*);
extern int DSDPGetPObjective(DSDP,double*);
extern int DSDPGetPPObjective(DSDP,double*);
/*
extern int DSDPGetDualObjective(DSDP,double*); 
extern int DSDPGetPrimalObjective(DSDP,double*); 
*/
#define DSDPGetDualObjective   DSDPGetDDObj
#define DSDPGetPrimalObjective DSDPGetPPObj
extern int DSDPGetDualityGap(DSDP,double*); 
extern int DSDPGetScale(DSDP,double*);
extern int DSDPSetScale(DSDP,double);
extern int DSDPGetPenaltyParameter(DSDP,double*);
extern int DSDPGetPenalty(DSDP,double*);
extern int DSDPCopyB(DSDP,double[], int);

extern int DSDPSetR0(DSDP,double);
extern int DSDPGetR(DSDP, double *);
extern int DSDPSetRTolerance(DSDP,double);
extern int DSDPGetRTolerance(DSDP,double*);

extern int DSDPSetY0(DSDP,int, double);
extern int DSDPGetY(DSDP, double[], int);
extern int DSDPGetYMakeX(DSDP, double[], int);
extern int DSDPGetDYMakeX(DSDP, double[], int);
extern int DSDPGetMuMakeX(DSDP, double*);

#define DSDPSetInitialBarrierParameter DSDPSetBarrierParameter
#define DSDPGetInitialBarrierParameter DSDPGetBarrierParameter
extern int DSDPGetBarrierParameter(DSDP, double *);
extern int DSDPSetBarrierParameter(DSDP, double);
extern int DSDPReuseMatrix(DSDP,int);
extern int DSDPGetReuseMatrix(DSDP,int*);
extern int DSDPGetDimension(DSDP, double*);

extern int DSDPSetMaxIts(DSDP,int); 
extern int DSDPGetMaxIts(DSDP,int*); 
extern int DSDPSetStepTolerance(DSDP,double);
extern int DSDPGetStepTolerance(DSDP,double*);
extern int DSDPSetGapTolerance(DSDP,double);
extern int DSDPGetGapTolerance(DSDP,double*);
extern int DSDPSetPNormTolerance(DSDP,double);
extern int DSDPGetPNormTolerance(DSDP,double*);
extern int DSDPSetDualBound(DSDP,double);
extern int DSDPGetDualBound(DSDP,double*);
extern int DSDPSetPTolerance(DSDP,double);
extern int DSDPGetPTolerance(DSDP,double*);
extern int DSDPGetPInfeasibility(DSDP,double*);
extern int DSDPSetMaxTrustRadius(DSDP,double);
extern int DSDPGetMaxTrustRadius(DSDP,double*);
extern int DSDPStopReason(DSDP,DSDPTerminationReason *); 
extern int DSDPGetSolutionType(DSDP,DSDPSolutionType*);
extern int DSDPSetPotentialParameter(DSDP, double);
extern int DSDPGetPotentialParameter(DSDP, double*);
extern int DSDPUseDynamicRho(DSDP, int);
extern int DSDPGetPotential(DSDP,double*);
extern int DSDPUseLAPACKForSchur(DSDP,int);
extern int DSDPGetNumberOfVariables(DSDP,int*);
extern int DSDPGetFinalErrors(DSDP,double[6]);
extern int DSDPGetGapHistory(DSDP, double[], int); 
extern int DSDPGetRHistory(DSDP, double[], int); 
extern int DSDPGetIts(DSDP,int *); 
extern int DSDPGetPnorm(DSDP, double *);
extern int DSDPGetStepLengths(DSDP, double*,double*);
extern int DSDPSetMonitor(DSDP, int (*)(DSDP,void*),void*);
extern int DSDPSetStandardMonitor(DSDP,int);
extern int DSDPSetFileMonitor(DSDP,int);
extern int DSDPSetPenaltyParameter(DSDP,double);
extern int DSDPUsePenalty(DSDP,int);
extern int DSDPPrintLogInfo(int);
extern int DSDPComputeMinimumXEigenvalue(DSDP, double*);
extern int DSDPGetTraceX(DSDP dsdp, double*);
extern int DSDPSetZBar(DSDP,double); 
extern int DSDPSetDualLowerBound(DSDP, double);
extern int DSDPGetDataNorms(DSDP, double[3]);
extern int DSDPGetYMaxNorm(DSDP, double*);
extern int SDPConeUseFullSymmetricFormat(SDPCone, int);
extern int SDPConeUsePackedFormat(SDPCone, int);
extern int DSDPSetFixedVariable(DSDP,int,double);
extern int DSDPSetFixedVariables(DSDP,double[],double[],double[],int);
extern int DSDPGetFixedYX(DSDP,int,double*);
extern int DSDPView(DSDP);
extern int DSDPPrintOptions();
extern int DSDPPrintData(DSDP,SDPCone,LPCone);
extern int DSDPPrintSolution(FILE*,DSDP,SDPCone, LPCone);
extern int DSDPSetOptions(DSDP,char*[], int);
extern int DSDPReadOptions(DSDP, char[]);
extern int DSDPSetDestroyRoutine(DSDP, int (*)(void*), void*);

#ifdef __cplusplus
}
#endif

#endif