<!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/dsdpdualmat.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">dsdpdualmat.h</div> </div> </div> <div class="contents"> <a href="dsdpdualmat_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#if !defined(__DSDP_DUALMATRIX_H) </span> <a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __DSDP_DUALMATRIX_H</span> <a name="l00003"></a>00003 <span class="preprocessor"></span> <a name="l00004"></a>00004 <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="l00005"></a>00005 <span class="preprocessor">#include "<a class="code" href="dsdpbasictypes_8h.html" title="Solver, solution types, termination codes,.">dsdpbasictypes.h</a>"</span> <a name="l00006"></a>00006 <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="l00018"></a><a class="code" href="structDSDPDualMat__C.html">00018</a> <span class="keyword">struct </span><a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat_C</a>{ <a name="l00019"></a>00019 <span class="keywordtype">void</span>* matdata; <a name="l00020"></a>00020 <span class="keyword">struct </span><a class="code" href="structDSDPDualMat__Ops.html" title="Table of function pointers that operate on the S matrix.">DSDPDualMat_Ops</a>* dsdpops; <a name="l00021"></a>00021 }; <a name="l00022"></a>00022 <a name="l00027"></a><a class="code" href="dsdpdualmat_8h.html#a5fa45437881b3d9fc4178c826fa79a7a">00027</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat_C</a> <a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat</a>; <a name="l00028"></a>00028 <a name="l00029"></a>00029 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00030"></a>00030 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { <a name="l00031"></a>00031 <span class="preprocessor">#endif</span> <a name="l00032"></a>00032 <span class="preprocessor"></span> <a name="l00033"></a>00033 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpdualmat_8c.html#a23fcb33f75e4ba4aa70cf519123745c4" title="Set pointers to null.">DSDPDualMatInitialize</a>(<a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat</a>*); <a name="l00034"></a>00034 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpdualmat_8c.html#abed50bfcc211bee6e8b9a070f909f0cf" title="Set the opaque pointer and function pointers to the matrix.">DSDPDualMatSetData</a>(<a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat</a>*,<span class="keyword">struct</span> <a class="code" href="structDSDPDualMat__Ops.html" title="Table of function pointers that operate on the S matrix.">DSDPDualMat_Ops</a>*,<span class="keywordtype">void</span>*); <a name="l00035"></a>00035 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPDualMatGetType(<a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat</a>, <span class="keywordtype">int</span> *); <a name="l00036"></a>00036 <a name="l00037"></a>00037 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpdualmat_8c.html#ad8b6b5f859b5795f489c1e740b98080f" title="Free the matrix structure.">DSDPDualMatGetSize</a>(<a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat</a>, <span class="keywordtype">int</span>*); <a name="l00038"></a>00038 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPDualMatTest(<a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat</a>); <a name="l00039"></a>00039 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpdualmat_8c.html#aa27a146654de21980c02f192660550ab" title="Free the matrix structure.">DSDPDualMatDestroy</a>(<a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat</a> *); <a name="l00040"></a>00040 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpdualmat_8c.html#a3e7aa8602d81a1767b70c70270941177" title="Print the matrix.">DSDPDualMatView</a>(<a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat</a>); <a name="l00041"></a>00041 <a name="l00042"></a>00042 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpdualmat_8c.html#a45b26d8bf109509648dd87b42305ee0c" title="Factor the matrix.">DSDPDualMatCholeskyFactor</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="dsdpbasictypes_8h.html#ae667f2bff3ab5ab0bc109fa76dc4ed65" title="Boolean variables.">DSDPTruth</a> *); <a name="l00043"></a>00043 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpdualmat_8c.html#afc103268b635e313f90431f9eca7c85f" title="Invert the matrix.">DSDPDualMatInvert</a>(<a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat</a>); <a name="l00044"></a>00044 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpdualmat_8c.html#a3dc27b759db28929d92bd3a63b632681" title="Add a multiple of the inverse to T.">DSDPDualMatInverseAdd</a>(<a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat</a>,<span class="keywordtype">double</span>,<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>); <a name="l00045"></a>00045 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpdualmat_8c.html#ae31b03506a9c2aa5ebd33f1e0a00308c" title="Multiply the inverse by a vector or solve the system of equations.">DSDPDualMatInverseMultiply</a>(<a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat</a>, DSDPIndex, <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="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec</a>); <a name="l00046"></a>00046 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpdualmat_8c.html#aa64bc6161dd47646962c7226982f6d62" title="Forward triangular solve.">DSDPDualMatCholeskySolveForward</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="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec</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="l00047"></a>00047 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpdualmat_8c.html#a853fa8c51c83aa5f2e0c6923f76e0ee4" title="Backward triangular solve.">DSDPDualMatCholeskySolveBackward</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="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec</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="l00048"></a>00048 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpdualmat_8c.html#a54f20cca5ca8bf569944da1ae3ab4c80" title="Multiply by triangular matrix.">DSDPDualMatCholeskyForwardMultiply</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="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec</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="l00049"></a>00049 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpdualmat_8c.html#a530c6baf5c27b0d240c92e5541e17866" title="Multiply by triangular matrix.">DSDPDualMatCholeskyBackwardMultiply</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="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec</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="l00050"></a>00050 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpdualmat_8c.html#a6238e9e98563c36da6392d3581184cd1" title="Free the matrix structure.">DSDPDualMatLogDeterminant</a>(<a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat</a>, <span class="keywordtype">double</span>*); <a name="l00051"></a>00051 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpdualmat_8c.html#aca0745e1337928a255ee3906acd69fa3" title="Factor the matrix.">DSDPDualMatIsFull</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="dsdpbasictypes_8h.html#ae667f2bff3ab5ab0bc109fa76dc4ed65" title="Boolean variables.">DSDPTruth</a>*); <a name="l00052"></a>00052 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpdualmat_8c.html#af90a72f8db701ea0462ce8068d826fab" title="Print the matrix.">DSDPDualMatSetArray</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="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>); <a name="l00053"></a>00053 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPDualMatCheck(<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="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec</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="l00054"></a>00054 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPDualMatGetArray(<a class="code" href="structDSDPDualMat__C.html" title="Represents an S matrix for one block in the semidefinite cone.">DSDPDualMat</a>,<span class="keywordtype">double</span>*[],<span class="keywordtype">int</span>*); <a name="l00055"></a>00055 <a name="l00056"></a>00056 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00057"></a>00057 <span class="preprocessor"></span>} <a name="l00058"></a>00058 <span class="preprocessor">#endif</span> <a name="l00059"></a>00059 <span class="preprocessor"></span> <a name="l00060"></a>00060 <span class="preprocessor">#endif</span> <a name="l00061"></a>00061 <span class="preprocessor"></span> <a name="l00062"></a>00062 </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>