<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>DSDP: src/sdp/dsdpsdp.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.4 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">DSDP</div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_23046874d7fed141927c769a66d8e3a5.html">src</a> </li> <li class="navelem"><a class="el" href="dir_2c21778722bc8593635d5ebd154ac3f7.html">sdp</a> </li> </ul> </div> </div> <div class="header"> <div class="headertitle"> <div class="title">dsdpsdp.h</div> </div> </div> <div class="contents"> <a href="dsdpsdp_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __TAO_DSDPSDP_H</span> <a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __TAO_DSDPSDP_H</span> <a name="l00003"></a>00003 <span class="preprocessor"></span> <a name="l00008"></a>00008 <span class="preprocessor">#include "<a class="code" href="dsdpschurmat_8h.html" title="Methods of a Schur Matrix.">dsdpschurmat.h</a>"</span> <a name="l00009"></a>00009 <span class="preprocessor">#include "<a class="code" href="dsdpbasictypes_8h.html" title="Solver, solution types, termination codes,.">dsdpbasictypes.h</a>"</span> <a name="l00010"></a>00010 <span class="preprocessor">#include "<a class="code" href="dsdpvec_8h.html" title="Vector operations used by the solver.">dsdpvec.h</a>"</span> <a name="l00011"></a>00011 <a name="l00012"></a>00012 <span class="preprocessor">#include "<a class="code" href="sdpconevec_8h.html" title="Each block of the SDPCone has two vectors of appropriate size.">sdpconevec.h</a>"</span> <a name="l00013"></a>00013 <span class="preprocessor">#include "<a class="code" href="dsdpdatamat_8h.html" title="The interface between the SDPCone and the data matrices.">dsdpdatamat.h</a>"</span> <a name="l00014"></a>00014 <span class="preprocessor">#include "<a class="code" href="dsdpdualmat_8h.html" title="The interface between the SDPCone and the matrix S.">dsdpdualmat.h</a>"</span> <a name="l00015"></a>00015 <span class="preprocessor">#include "<a class="code" href="dsdpxmat_8h.html" title="The interface between the SDPCone and the dense matrix array.">dsdpxmat.h</a>"</span> <a name="l00016"></a>00016 <span class="preprocessor">#include "<a class="code" href="dsdpdsmat_8h.html" title="The interface between the SDPCone and the Delta S matrix.">dsdpdsmat.h</a>"</span> <a name="l00017"></a>00017 <span class="preprocessor">#include "<a class="code" href="dsdplanczos_8h.html" title="Lanczos procedure determines the maximum step length.">dsdplanczos.h</a>"</span> <a name="l00018"></a>00018 <a name="l00019"></a>00019 <span class="keyword">typedef</span> <span class="keyword">enum</span> { SDPCONEEXIST=1, SDPCONESETUP1=2 } SDPConeStatus; <a name="l00020"></a>00020 <a name="l00025"></a><a class="code" href="structDSDPDataTranspose.html">00025</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>{ <a name="l00026"></a>00026 <span class="keywordtype">int</span> m; <a name="l00027"></a>00027 <span class="keywordtype">int</span> *nnzblocks; <a name="l00028"></a>00028 <span class="keywordtype">int</span> **nzblocks; <a name="l00029"></a>00029 <span class="keywordtype">int</span> *ttnzmat; <a name="l00030"></a>00030 <span class="keywordtype">int</span> **nnzmats; <a name="l00031"></a>00031 <span class="keywordtype">int</span> **idA; <a name="l00032"></a>00032 <span class="keywordtype">int</span> *idAP; <a name="l00033"></a>00033 } <a class="code" href="structDSDPDataTranspose.html" title="Internal structure for transpose of data.">DSDPDataTranspose</a>; <a name="l00034"></a>00034 <a name="l00039"></a><a class="code" href="structDSDPBlockData.html">00039</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>{ <a name="l00040"></a>00040 <span class="keywordtype">int</span> maxnnzmats; <a name="l00041"></a>00041 <span class="keywordtype">int</span> nnzmats; <a name="l00042"></a>00042 <span class="keywordtype">int</span> *nzmat; <a name="l00043"></a>00043 <a class="code" href="structDSDPDataMat__C.html" title="Symmetric data matrix for one block in the semidefinite cone.">DSDPDataMat</a> *A; <a name="l00044"></a>00044 <span class="keywordtype">double</span> r; <span class="comment">/* Multiple of Identity added to S to make it psd */</span> <a name="l00045"></a>00045 <span class="keywordtype">double</span> scl; <a name="l00046"></a>00046 } <a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>; <a name="l00047"></a>00047 <a name="l00052"></a><a class="code" href="structSDPblk.html">00052</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>{ <a name="l00053"></a>00053 <a name="l00054"></a>00054 <a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a> ADATA; <a name="l00055"></a>00055 <a class="code" href="structDSDPLanczosStepLength.html" title="Apply Lanczos prodedure to find distance to boundary.">DSDPLanczosStepLength</a> Lanczos; <span class="comment">/* For Lanczos steplength routine */</span> <a name="l00056"></a>00056 <a name="l00057"></a>00057 <span class="keywordtype">int</span> n; <span class="comment">/* Dimensions */</span> <a name="l00058"></a>00058 <span class="keywordtype">double</span> gammamu; <span class="comment">/* Scale Barrier, used only by user option */</span> <a name="l00059"></a>00059 <span class="keywordtype">double</span> bmu; <span class="comment">/* For LMI, not used */</span> <a name="l00060"></a>00060 <span class="keywordtype">char</span> format; <span class="comment">/* Packed Symmetric, Full Symmetric, Lower,Upper */</span> <a name="l00061"></a>00061 <span class="keywordtype">int</span> nnz; <a name="l00062"></a>00062 SDPConeStatus status; <a name="l00063"></a>00063 <a name="l00064"></a>00064 <a class="code" href="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec</a> W; <a name="l00065"></a>00065 <a class="code" href="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec</a> W2; <a name="l00066"></a>00066 DSDPIndex IS; <a name="l00067"></a>00067 <a name="l00068"></a>00068 <a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat</a> S; <span class="comment">/* Dual variable matrices */</span> <a name="l00069"></a>00069 <a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat</a> SS; <span class="comment">/* Compute primal variable matrices */</span> <a name="l00070"></a>00070 <a class="code" href="structDSDPDSMat__C.html" title="Symmetric Delta S matrix for one block in the semidefinite cone.">DSDPDSMat</a> DS; <span class="comment">/* Dual variable step matrices */</span> <a name="l00071"></a>00071 <a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a> T; <span class="comment">/* Work Array and Primal variable matrice X */</span> <a name="l00072"></a>00072 <a name="l00073"></a>00073 } <a class="code" href="structSDPblk.html" title="Internal structure for block of semidefinite cone.">SDPblk</a>; <a name="l00074"></a>00074 <a name="l00080"></a><a class="code" href="structSDPCone__C.html">00080</a> <span class="keyword">struct </span><a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone_C</a> { <a name="l00081"></a>00081 <span class="keywordtype">int</span> keyid; <a name="l00082"></a>00082 <a name="l00083"></a>00083 <span class="comment">/* Dimensions */</span> <a name="l00084"></a>00084 <span class="keywordtype">int</span> m, nn; <a name="l00085"></a>00085 <a name="l00086"></a>00086 <span class="comment">/* Data in block format */</span> <a name="l00087"></a>00087 <span class="keywordtype">int</span> nblocks; <a name="l00088"></a>00088 <a class="code" href="structSDPblk.html" title="Internal structure for block of semidefinite cone.">SDPblk</a> *blk; <a name="l00089"></a>00089 <a name="l00090"></a>00090 <span class="comment">/* Transpose of Data */</span> <a name="l00091"></a>00091 <a class="code" href="structDSDPDataTranspose.html" title="Internal structure for transpose of data.">DSDPDataTranspose</a> ATR; <a name="l00092"></a>00092 <a name="l00093"></a>00093 <span class="comment">/* Work space */</span> <a name="l00094"></a>00094 <a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a> Work, Work2; <a name="l00095"></a>00095 <a name="l00096"></a>00096 <span class="comment">/* Current Solution */</span> <a name="l00097"></a>00097 <a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a> YY,YX,DYX; <a name="l00098"></a>00098 <span class="keywordtype">double</span> xmakermu; <a name="l00099"></a>00099 <a name="l00100"></a>00100 <span class="keywordtype">int</span> optype; <a name="l00101"></a>00101 <a class="code" href="structDSDP__C.html" title="Internal structures for the DSDP solver.">DSDP</a> dsdp; <a name="l00102"></a>00102 }; <a name="l00103"></a>00103 <a name="l00104"></a>00104 <span class="preprocessor">#define SDPCONEKEY 5438</span> <a name="l00105"></a>00105 <span class="preprocessor"></span><span class="preprocessor">#define SDPConeValid(a) {if (!(a)||((a)->keyid!=SDPCONEKEY)){ DSDPSETERR(101,"DSDPERROR: Invalid SDPCone object\n");}}</span> <a name="l00106"></a>00106 <span class="preprocessor"></span> <a name="l00107"></a>00107 <span class="preprocessor">#define DSDPCHKBLOCKERR(a,b); { if (b){ DSDPSETERR1(b,"Block Number: %d,\n",a);} }</span> <a name="l00108"></a>00108 <span class="preprocessor"></span><span class="preprocessor">#define DSDPCHKVARERR(a,b); { if (b){ DSDPSETERR1(b,"Variable Number: %d,\n",a);} }</span> <a name="l00109"></a>00109 <span class="preprocessor"></span> <a name="l00110"></a>00110 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpadddatamat_8c.html#a6ddbf7fda16763eb7654fa849523dfd1" title="Make a data matrix a zero matrix.">DSDPSetDataMatZero</a>(<a class="code" href="structDSDPDataMat__C.html" title="Symmetric data matrix for one block in the semidefinite cone.">DSDPDataMat</a>*); <a name="l00111"></a>00111 <a name="l00112"></a>00112 <span class="preprocessor">#include "<a class="code" href="dsdp5_8h.html" title="The API to DSDP for those applications using DSDP as a subroutine library.">dsdp5.h</a>"</span> <a name="l00113"></a>00113 <a name="l00114"></a>00114 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00115"></a>00115 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { <a name="l00116"></a>00116 <span class="preprocessor">#endif</span> <a name="l00117"></a>00117 <span class="preprocessor"></span> <a name="l00118"></a>00118 <span class="comment">/* Operations on the Data */</span> <a name="l00119"></a>00119 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpblock_8c.html#a45c16dcc217a9865cbe223bcf7b4d603" title="Set pointers to null.">DSDPBlockDataInitialize</a>(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*); <a name="l00120"></a>00120 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpblock_8c.html#a3736c54bd0e831664e9aa7e2130a0766" title="Allocate some structures.">DSDPBlockDataAllocate</a>(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*, <span class="keywordtype">int</span>); <a name="l00121"></a>00121 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpblock_8c.html#a7126f9cb8f818e6f1e04db14ae2b16e8" title="Add data matrix into SDP block.">DSDPBlockAddDataMatrix</a>(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*,<span class="keywordtype">int</span>, <span class="keyword">struct</span> <a class="code" href="structDSDPDataMat__Ops.html" title="Table of function pointers that operate on the data matrix.">DSDPDataMat_Ops</a>*, <span class="keywordtype">void</span>*); <a name="l00122"></a>00122 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpblock_8c.html#a74777e0932680acbfab564073be288fe" title="Set data matrix into SDP block.">DSDPBlockSetDataMatrix</a>(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*,<span class="keywordtype">int</span>, <span class="keyword">struct</span> <a class="code" href="structDSDPDataMat__Ops.html" title="Table of function pointers that operate on the data matrix.">DSDPDataMat_Ops</a>*, <span class="keywordtype">void</span>*); <a name="l00123"></a>00123 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpblock_8c.html#a94bf6be698a84670ba680739a105657b" title="Remove a data matrix.">DSDPBlockRemoveDataMatrix</a>(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*,<span class="keywordtype">int</span>); <a name="l00124"></a>00124 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpblock_8c.html#a5b2d38845e4f571e1ca58e7c17e9a593" title="Mark which variable in block have a data matrix.">DSDPBlockDataMarkNonzeroMatrices</a>(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*,<span class="keywordtype">int</span>*); <a name="l00125"></a>00125 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpblock_8c.html#abab8c90bad79318ce63becb3b16239ca" title="Determine sparsity pattern of data.">DSDPBlockDataRowSparsity</a>(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>[],<span class="keywordtype">int</span>[],<span class="keywordtype">int</span>); <a name="l00126"></a>00126 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpblock_8c.html#a8142db7eef0f4770bf79e05a81b01401" title="Sum the data matrices.">DSDPBlockASum</a>(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*,<span class="keywordtype">double</span>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>,<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>); <a name="l00127"></a>00127 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpblock_8c.html#ad44dbf8c3e12441b64fb7725fc6be04e" title="Compute inner product of XX with data matrices.">DSDPBlockADot</a>(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*,<span class="keywordtype">double</span>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>,<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>); <a name="l00128"></a>00128 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpblock_8c.html#ac40c42f8b658e8913c9e983443a7f86b" title="Set VAV[i] to aa * Alpha[i] * V' A[i] V.">DSDPBlockvAv</a>(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*,<span class="keywordtype">double</span>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>,<a class="code" href="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec</a>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>); <a name="l00129"></a>00129 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpblock_8c.html#a308bb1d9ec0ec39af374e457934552dd" title="Free the data matrices.">DSDPBlockDataDestroy</a>(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*); <a name="l00130"></a>00130 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPBlockCheck(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*,<a class="code" href="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec</a>,<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>); <a name="l00131"></a>00131 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPBlockANorm2(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*, <a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>, <span class="keywordtype">int</span>); <a name="l00132"></a>00132 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpblock_8c.html#adca5f2068d4515779b89111ef9adf7d4" title="Print the structure of the block.">DSDPBlockView</a>(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*); <a name="l00133"></a>00133 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpblock_8c.html#a2e067fba7b5ec294fff7f3daae5167de" title="Print the data.">DSDPBlockView2</a>(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*); <a name="l00134"></a>00134 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpblock_8c.html#aa48f55168b6780852229dea20c3f1d38" title="Count how many data matrices are in a block of data.">DSDPBlockCountNonzeroMatrices</a>(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a> *,<span class="keywordtype">int</span>*); <a name="l00135"></a>00135 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpblock_8c.html#a4154d7692828019b8f2d0f407310188c" title="Get a data matrix from a block of data.">DSDPBlockGetMatrix</a>(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>*,<span class="keywordtype">double</span>*,<a class="code" href="structDSDPDataMat__C.html" title="Symmetric data matrix for one block in the semidefinite cone.">DSDPDataMat</a>*); <a name="l00136"></a>00136 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpblock_8c.html#acc8cf4482d76bba62bf861f2d2296a78" title="Factor the data matrices.">DSDPBlockFactorData</a>(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*,<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>,<a class="code" href="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec</a>); <a name="l00137"></a>00137 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpblock_8c.html#afe404f36fc31fa861ff1100777171941" title="Free structures in block of data.">DSDPBlockTakeDownData</a>(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*); <a name="l00138"></a>00138 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPBlockDataRank(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*,<span class="keywordtype">int</span>*,<span class="keywordtype">int</span>); <a name="l00139"></a>00139 <a name="l00140"></a>00140 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpsdp_8h.html#ad61e0abe2e4377911e6e75f6bf34a678" title="Free data structures in one block of the cone.">DSDPBlockTakeDown</a>(<a class="code" href="structSDPblk.html" title="Internal structure for block of semidefinite cone.">SDPblk</a>*); <a name="l00141"></a>00141 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpsdp_8h.html#aba330b2531cd72baf655f261bd57973d" title="Initialize data structures in one block of the cone.">DSDPBlockInitialize</a>(<a class="code" href="structSDPblk.html" title="Internal structure for block of semidefinite cone.">SDPblk</a>*); <a name="l00142"></a>00142 <a name="l00143"></a>00143 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPBlockEventInitialize(<span class="keywordtype">void</span>); <a name="l00144"></a>00144 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPBlockEventZero(<span class="keywordtype">void</span>); <a name="l00145"></a>00145 <a name="l00146"></a>00146 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpblock_8c.html#a208f2d363a32877ae6ed1411889d1f13" title="Check correctness of operations on the data.">DSDPDataMatCheck</a>(<a class="code" href="structDSDPDataMat__C.html" title="Symmetric data matrix for one block in the semidefinite cone.">DSDPDataMat</a>,<a class="code" href="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec</a>,DSDPIndex,<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>); <a name="l00147"></a>00147 <a name="l00148"></a>00148 <span class="comment">/* Operations on the Transpose of the Data */</span> <a name="l00149"></a>00149 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpsdp_8h.html#a121e1aef433daad0b3ebd97a45dc022c" title="Initialize transpose structure for data.">DSDPDataTransposeInitialize</a>(<a class="code" href="structDSDPDataTranspose.html" title="Internal structure for transpose of data.">DSDPDataTranspose</a>*); <a name="l00150"></a>00150 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpsdp_8h.html#a686a5277874324e2c056f97f20ba6bb4" title="Free transpose structure for data.">DSDPDataTransposeTakeDown</a>(<a class="code" href="structDSDPDataTranspose.html" title="Internal structure for transpose of data.">DSDPDataTranspose</a>*); <a name="l00151"></a>00151 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpsdp_8h.html#a4286c8cd1fea9d84fd03c1ebd0e75343" title="Set up transpose structure for data.">DSDPDataTransposeSetup</a>(<a class="code" href="structDSDPDataTranspose.html" title="Internal structure for transpose of data.">DSDPDataTranspose</a>*,<a class="code" href="structSDPblk.html" title="Internal structure for block of semidefinite cone.">SDPblk</a>*,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>); <a name="l00152"></a>00152 <a name="l00153"></a>00153 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPUseDefaultDualMatrix(<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a>); <a name="l00154"></a>00154 <a name="l00155"></a>00155 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpsdp_8h.html#aa08e7793b0e39e2280f857a1259f423e" title="Allocate data structure of the cone.">SDPConeSetup</a>(<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>); <a name="l00156"></a>00156 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpsdp_8h.html#a5012d0653a4214916b95fd1548789f0b" title="Allocate data structure of the cone.">SDPConeSetup2</a>(<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>,<a class="code" href="structDSDPSchurMat__C.html" title="Schur complement matrix whose solution is the Newton direction.">DSDPSchurMat</a>); <a name="l00157"></a>00157 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpsdp_8h.html#a3adb86d30c297ad0a4a0aadbcd8ae6ba" title="Compute the Hessian to the barrier term.">SDPConeComputeHessian</a>(<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a>,<span class="keywordtype">double</span>,<a class="code" href="structDSDPSchurMat__C.html" title="Schur complement matrix whose solution is the Newton direction.">DSDPSchurMat</a>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>); <a name="l00158"></a>00158 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpsdp_8h.html#a1f6d75e7c4f9f16ffc5126a6c9faeee1" title="Compute the gradient to the barrier term.">SDPConeMultiply</a>(<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a>,<span class="keywordtype">int</span>,<span class="keywordtype">double</span>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>); <a name="l00159"></a>00159 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpsdp_8h.html#a334c8bff3cbf28a420dbe7f93cbe33ab" title="Compute the gradient to the barrier term.">SDPConeComputeRHS</a>(<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a>, <span class="keywordtype">int</span>, <span class="keywordtype">double</span>, <a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>, <a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>); <a name="l00160"></a>00160 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpsdp_8h.html#a4b077e6275df502022d09162511c4712" title="Compute X.">SDPConeComputeXX</a>(<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a>,<span class="keywordtype">int</span>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>,<span class="keywordtype">double</span>,<a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat</a>, <a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>); <a name="l00161"></a>00161 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpsdp_8h.html#a7dee9dca02543b2809d76d7a6e0493d8" title="Free data structure of the cone.">SDPConeDestroy</a>(<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a>); <a name="l00162"></a>00162 <a name="l00163"></a>00163 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpadddata_8c.html#a8043a5d379af0a18dcd0e5d4fd82387e" title="Check validity of parameter.">SDPConeCheckJ</a>(<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a>,<span class="keywordtype">int</span>); <a name="l00164"></a>00164 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpadddata_8c.html#af1714aaed2783404801235ae8065558d" title="Check validity of parameter.">SDPConeCheckN</a>(<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a>,<span class="keywordtype">int</span>, <span class="keywordtype">int</span>); <a name="l00165"></a>00165 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpadddata_8c.html#af369d5fedbca0d3aca1bfb2acc18adf8" title="Check validity of parameter.">SDPConeCheckM</a>(<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a>,<span class="keywordtype">int</span>); <a name="l00166"></a>00166 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpadddata_8c.html#afa39ba7bb64630c003bf3cb92dc0f640" title="Check validity of parameters.">SDPConeCheckStorageFormat</a>(<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a>,<span class="keywordtype">int</span>, <span class="keywordtype">char</span>); <a name="l00167"></a>00167 <a name="l00168"></a>00168 <a name="l00169"></a>00169 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpsdp_8h.html#ab665b6c59bb4b2bdc1e15f527fdc0728" title="Sum the data matrices.">SDPConeComputeSS</a>(<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a>, <span class="keywordtype">int</span>, <a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>, <a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>); <a name="l00170"></a>00170 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpsdp_8h.html#ae03323fd0c3d79ead3747f856b127a2b" title="Compute inner product of X with the Data, S, and norm of X.">SDPConeComputeXDot</a>(<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a>,<span class="keywordtype">int</span>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>,<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>,<span class="keywordtype">double</span>*,<span class="keywordtype">double</span>*, <span class="keywordtype">double</span> *); <a name="l00171"></a>00171 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpsdp_8h.html#a30d762d0f2c69b414455a577d12305d0" title="Compute the matrix X with the given information.">SDPConeComputeX3</a>(<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a>,<span class="keywordtype">int</span>,<span class="keywordtype">double</span>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>,<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>); <a name="l00172"></a>00172 <a name="l00173"></a>00173 <span class="comment">/* extern int DSDPPrintSDPA(TAO_DSDP *); */</span> <a name="l00174"></a>00174 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpsdp_8h.html#aff1b2849be280d7a70e9480e4089cd74" title="Allocate V matrix.">DSDPMakeVMat</a>(<span class="keywordtype">char</span>, <span class="keywordtype">int</span>, <a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>*); <a name="l00175"></a>00175 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpsdp_8h.html#a17dc8bc3404b674460890974551cab29" title="Allocate V matrix using the given array.">DSDPMakeVMatWithArray</a>(<span class="keywordtype">char</span>, <span class="keywordtype">double</span>[], <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>*); <a name="l00176"></a>00176 <a name="l00177"></a>00177 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPSetDualMatrix(<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a> sdpcone,<span class="keywordtype">int</span> (*createdualmatrix)(<a class="code" href="structDSDPBlockData.html" title="Internal structure for data in one block of semidefintie.">DSDPBlockData</a>*,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>,<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>,<a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>,<a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat</a>*,<a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat</a>*,<a class="code" href="structDSDPDSMat__C.html" title="Symmetric Delta S matrix for one block in the semidefinite cone.">DSDPDSMat</a>*,<span class="keywordtype">void</span>*),<span class="keywordtype">void</span>*); <a name="l00178"></a>00178 <a name="l00179"></a>00179 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpsdp_8h.html#af777a03f652ec0fb5ccc1fc24a193c6b" title="Pass a semidefinite cone to the solver.">DSDPAddSDP</a>(<a class="code" href="structDSDP__C.html" title="Internal structures for the DSDP solver.">DSDP</a>,<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a>); <a name="l00180"></a>00180 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00181"></a>00181 <span class="preprocessor"></span>} <a name="l00182"></a>00182 <span class="preprocessor">#endif</span> <a name="l00183"></a>00183 <span class="preprocessor"></span> <a name="l00184"></a>00184 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpadddatamat_8c.html#a5d965be4615ce48c2b0bd3d88399a40c" title="Add identify matrix to dual matrix.">SDPConeSetRIdentity</a>(<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a>,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>,<span class="keywordtype">double</span>); <a name="l00185"></a>00185 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPDualMatEventInitialize(<span class="keywordtype">void</span>); <a name="l00186"></a>00186 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVMatEventInitialize(<span class="keywordtype">void</span>); <a name="l00187"></a>00187 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPDualMatEventZero(<span class="keywordtype">void</span>); <a name="l00188"></a>00188 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVMatEventZero(<span class="keywordtype">void</span>); <a name="l00189"></a>00189 <a name="l00190"></a>00190 <span class="preprocessor">#endif</span> </pre></div></div> </div> <hr class="footer"/><address class="footer"><small>Generated on Wed Jun 8 2011 for DSDP by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address> </body> </html>