Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > df736a3bc446df5b16150bebb7296274 > files > 253

DSDP-devel-5.8-2.fc14.i686.rpm

<!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: Semidefinite Blocks (Basics)</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&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Semidefinite Blocks (Basics)</div>  </div>
</div>
<div class="contents">
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SDPBasic.html#ga9e7744a5c7fbe87642979e2b41bc2c00">SDPConeGetXArray</a> (<a class="el" href="structSDPCone__C.html">SDPCone</a> sdpcone, int blockj, double *xx[], int *nn)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">After applying the solver, set a pointer to the array in the object with the solution X.  <a href="#ga9e7744a5c7fbe87642979e2b41bc2c00"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SDPBasic.html#ga9e2cd5d5922b5e45c48ec58c7345def0">SDPConeSetADenseVecMat</a> (<a class="el" href="structSDPCone__C.html">SDPCone</a> sdpcone, int blockj, int vari, int n, double alpha, double val[], int nnz)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set a matrix <img class="formulaInl" alt="$A_{i,j}$" src="form_2.png"/> in a dense format.  <a href="#ga9e2cd5d5922b5e45c48ec58c7345def0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SDPBasic.html#gaa6ed45b2539266f04bd4b8401aa89c06">SDPConeSetASparseVecMat</a> (<a class="el" href="structSDPCone__C.html">SDPCone</a> sdpcone, int blockj, int vari, int n, double alpha, int ishift, const int ind[], const double val[], int nnz)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set data matrix <img class="formulaInl" alt="$A_{i,j}$" src="form_2.png"/> in a sparse format.  <a href="#gaa6ed45b2539266f04bd4b8401aa89c06"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SDPBasic.html#ga66567faeecc4cb75f7ae3a3eed966bd4">SDPConeViewDataMatrix</a> (<a class="el" href="structSDPCone__C.html">SDPCone</a> sdpcone, int blockj, int vari)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Print a data matrix to the screen.  <a href="#ga66567faeecc4cb75f7ae3a3eed966bd4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SDPBasic.html#ga86f9566781cbb0468984b6486ff36ea1">SDPConeViewX</a> (<a class="el" href="structSDPCone__C.html">SDPCone</a> sdpcone, int blockj, int n, double x[], int nn)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Print a dense array X to the screen.  <a href="#ga86f9566781cbb0468984b6486ff36ea1"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<p>Routines that create the SDPCone object, set the data, and get the solution for problems.</p>
<div class="fragment"><pre class="fragment"><span class="preprocessor">#include dsdp5.h </span>
</pre></div><p>In <a class="el" href="PDForm.html">DSDP Standard Form</a>, a semidefinite program is given by the pair of problems </p>
<p class="formulaDsp">
<img class="formulaDsp" alt="\[ \begin{array}{llllllllll} (P) \ \ \ &amp; \mbox{minimize} &amp; {\displaystyle \sum_{j=0}^{n_b-1} C_j \bullet X_j } &amp;\mbox{subject to}&amp; {\displaystyle \sum_{j=0}^{n_b-1} A_{i,j} \bullet X_{j} = b_i } ,&amp; i=1,\ldots, m, &amp; &amp; X_j \succeq 0, \\ \end{array} \]" src="form_52.png"/>
</p>
 <p class="formulaDsp">
<img class="formulaDsp" alt="\[ \begin{array}{lllllllll} (D) \ \ \ &amp; \mbox{maximize} &amp; {\displaystyle \sum_{i=1}^m b_i \ y_i } &amp;\mbox{subject to}&amp;{\displaystyle \sum_{i=1}^m A_{i,j}y_i + S_{j} } = C_{j}, &amp; j=0, \ldots, n_b-1, &amp; S_j \succeq 0 \\ \end{array} \]" src="form_53.png"/>
</p>
<p> where the data <img class="formulaInl" alt="$A_{i,j}$" src="form_2.png"/> and <img class="formulaInl" alt="$C_j$" src="form_28.png"/> are symmetric matrices of the same dimension and the inner product of two <img class="formulaInl" alt="$n \times n$" src="form_3.png"/> matrices <img class="formulaInl" alt="$C=(c_{k,l})$" src="form_29.png"/> and <img class="formulaInl" alt="$X=(x_{k,l})$" src="form_30.png"/> is defined by <img class="formulaInl" alt="$ C \bullet X := trace (C^T X) = \sum_{k,l}c_{k,l} x_{k,l} $" src="form_54.png"/>.</p>
<p>Blocks are labelled from 0 to <em>nblocks</em>, where <em>nblocks</em> is the total number of blocks in the SDPCone object.</p>
<p>Variables y are numbered 1 through m. Variable 0 designates the C matrices, which are also denoted <img class="formulaInl" alt="$ A_{0,j}$" src="form_55.png"/>.</p>
<p>By default, this cone represents symmetric <img class="formulaInl" alt="$ n \times n$" src="form_56.png"/> matrices in packed symmetric format. This format uses an array of length <img class="formulaInl" alt="$ n(n+1)/2 $" src="form_57.png"/> and orders the the elements of the matrix as follows: </p>
<p class="formulaDsp">
<img class="formulaDsp" alt="\[ \begin{array}{llllllll} [ a_{1,1} &amp; a_{2,1} &amp; a_{2,2} &amp; a_{3,1} &amp; a_{3,2} &amp; a_{3,3} &amp; \ldots &amp; a_{n,n} ] \\ \end{array}. \]" src="form_58.png"/>
</p>
<dl><dt><b>Return values:</b></dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>if successful </td></tr>
  </table>
  </dd>
</dl>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ga9e7744a5c7fbe87642979e2b41bc2c00"></a><!-- doxytag: member="dsdpadddata.c::SDPConeGetXArray" ref="ga9e7744a5c7fbe87642979e2b41bc2c00" args="(SDPCone sdpcone, int blockj, double *xx[], int *nn)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SDPConeGetXArray </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structSDPCone__C.html">SDPCone</a>&#160;</td>
          <td class="paramname"><em>sdpcone</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>blockj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>xx</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>nn</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>After applying the solver, set a pointer to the array in the object with the solution X. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">sdpcone</td><td>semidefinite cone object </td></tr>
    <tr><td class="paramname">blockj</td><td>block number </td></tr>
    <tr><td class="paramname">xx</td><td>address of an array for dense matrices </td></tr>
    <tr><td class="paramname">*nn</td><td>the length of the array </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="group__DSDPBasic.html#gabf7f1440bad5dd2a609288912743c8e9" title="Apply DSDP to the problem.">DSDPSolve()</a> </dd>
<dd>
<a class="el" href="group__DSDPBasic.html#gacd271769549030ce365597101946220b" title="Compute the X variables.">DSDPComputeX()</a> </dd>
<dd>
<a class="el" href="group__SDPBasic.html#ga86f9566781cbb0468984b6486ff36ea1" title="Print a dense array X to the screen.">SDPConeViewX()</a></dd></dl>
<div class="fragment"><pre class="fragment"><a class="code" href="structDSDP__C.html" title="Internal structures for the DSDP solver.">DSDP</a> dsdp;
<a class="code" href="structSDPCone__C.html" title="Internal structure for semidefinite cone.">SDPCone</a> sdpcone;
<span class="keywordtype">double</span> *xx;
<span class="keywordtype">int</span> nn;

<a class="code" href="group__DSDPBasic.html#gabf7f1440bad5dd2a609288912743c8e9" title="Apply DSDP to the problem.">DSDPSolve</a>(dsdp);
<a class="code" href="group__DSDPBasic.html#gacd271769549030ce365597101946220b" title="Compute the X variables.">DSDPComputeX</a>(dsdp);
<a class="code" href="group__SDPBasic.html#ga9e7744a5c7fbe87642979e2b41bc2c00" title="After applying the solver, set a pointer to the array in the object with the solution X...">SDPConeGetXArray</a>(sdpcone,0,&amp;xx,&amp;nn);
<a class="code" href="group__SDPBasic.html#ga86f9566781cbb0468984b6486ff36ea1" title="Print a dense array X to the screen.">SDPConeViewX</a>(sdpcone,0,xx,nn);
<a class="code" href="group__SDPRoutines.html#gafd7a739bd01013be7e96f4069d526524" title="Restore the dense array and set these pointers to null.">SDPConeRestoreXArray</a>(sdpcone,0,&amp;xx,&amp;nn);
</pre></div><p>DSDP uses a single dense array to add data matrices, compute the matrix X, and take the inner product of X with the data matrices. Therefore, the ordering of elements in this array must also be used in the data matrices. </p>

<p>Definition at line <a class="el" href="dsdpadddata_8c_source.html#l00328">328</a> of file <a class="el" href="dsdpadddata_8c_source.html">dsdpadddata.c</a>.</p>

<p>Referenced by <a class="el" href="printsdpa_8c_source.html#l00164">DSDPPrintData()</a>, <a class="el" href="printsdpa_8c_source.html#l00094">DSDPPrintSolution()</a>, <a class="el" href="theta_8c_source.html#l00056">LovaszTheta()</a>, <a class="el" href="maxcut_8c_source.html#l00051">MaxCut()</a>, and <a class="el" href="stable_8c_source.html#l00040">StableSet()</a>.</p>

</div>
</div>
<a class="anchor" id="ga9e2cd5d5922b5e45c48ec58c7345def0"></a><!-- doxytag: member="dsdpadddatamat.c::SDPConeSetADenseVecMat" ref="ga9e2cd5d5922b5e45c48ec58c7345def0" args="(SDPCone sdpcone, int blockj, int vari, int n, double alpha, double val[], int nnz)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SDPConeSetADenseVecMat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structSDPCone__C.html">SDPCone</a>&#160;</td>
          <td class="paramname"><em>sdpcone</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>blockj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vari</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>val</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nnz</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set a matrix <img class="formulaInl" alt="$A_{i,j}$" src="form_2.png"/> in a dense format. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">sdpcone</td><td>SDP cone </td></tr>
    <tr><td class="paramname">blockj</td><td>block number j from 0 to nblocks </td></tr>
    <tr><td class="paramname">vari</td><td>variable i from 0 through m </td></tr>
    <tr><td class="paramname">n</td><td>dimension of the matrix </td></tr>
    <tr><td class="paramname">alpha</td><td>multiple of the data (usually 1.0) </td></tr>
    <tr><td class="paramname">val</td><td>array of elements in the matrix </td></tr>
    <tr><td class="paramname">nnz</td><td>length of the array</td></tr>
  </table>
  </dd>
</dl>
<p>For example, the matrix </p>
<div class="image">
<img src="img208.gif" alt="img208.gif"/>
</div>
<p> can be inserted into the cone in packed symmetric format as follows </p>
<div class="fragment"><pre class="fragment"><span class="keywordtype">double</span> val[]={3,2,0,0,6,0};
SDPConeSetDenseAVecMat(sdpcone,j,i,3,1.0,val,6);
</pre></div><dl class="note"><dt><b>Note:</b></dt><dd>DSDP will use the <code>val</code> array in many routines, but it will not modify or delete it.</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="group__SDPBasic.html#ga66567faeecc4cb75f7ae3a3eed966bd4" title="Print a data matrix to the screen.">SDPConeViewDataMatrix()</a> </dd>
<dd>
<a class="el" href="group__SDPBasic.html#gaa6ed45b2539266f04bd4b8401aa89c06" title="Set data matrix  in a sparse format.">SDPConeSetASparseVecMat()</a> </dd></dl>

<p>Definition at line <a class="el" href="dsdpadddatamat_8c_source.html#l00265">265</a> of file <a class="el" href="dsdpadddatamat_8c_source.html">dsdpadddatamat.c</a>.</p>

<p>Referenced by <a class="el" href="dsdp_8c_source.html#l00035">mexFunction()</a>, and <a class="el" href="readsdpa_8c_source.html#l00080">ReadSDPAFile()</a>.</p>

</div>
</div>
<a class="anchor" id="gaa6ed45b2539266f04bd4b8401aa89c06"></a><!-- doxytag: member="dsdpadddatamat.c::SDPConeSetASparseVecMat" ref="gaa6ed45b2539266f04bd4b8401aa89c06" args="(SDPCone sdpcone, int blockj, int vari, int n, double alpha, int ishift, const int ind[], const double val[], int nnz)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SDPConeSetASparseVecMat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structSDPCone__C.html">SDPCone</a>&#160;</td>
          <td class="paramname"><em>sdpcone</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>blockj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vari</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>ishift</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>ind</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double&#160;</td>
          <td class="paramname"><em>val</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nnz</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set data matrix <img class="formulaInl" alt="$A_{i,j}$" src="form_2.png"/> in a sparse format. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">sdpcone</td><td>SDP cone </td></tr>
    <tr><td class="paramname">blockj</td><td>block number j from 0 to nblocks </td></tr>
    <tr><td class="paramname">vari</td><td>variable i from 0 through m </td></tr>
    <tr><td class="paramname">n</td><td>dimension of the matrix </td></tr>
    <tr><td class="paramname">ishift</td><td>index of <img class="formulaInl" alt="$ a_{1,1} $" src="form_9.png"/> (usually 0) </td></tr>
    <tr><td class="paramname">alpha</td><td>multiple of the data (usually 1) </td></tr>
    <tr><td class="paramname">val</td><td>array of elements in the matrix </td></tr>
    <tr><td class="paramname">ind</td><td>array of indices representing the location of the elements </td></tr>
    <tr><td class="paramname">nnz</td><td>length of the previous two arrays</td></tr>
  </table>
  </dd>
</dl>
<p>For example, the matrix </p>
<div class="image">
<img src="img208.gif" alt="img208.gif"/>
</div>
<p> can be inserted into the cone in packed symmetric format in several ways.</p>
<p>Using the ordering of the packed symmetric format, we can index each element of the matrix with an integer between 0 and n(n+1)/2-1 (inclusive). If the first element in the <code>val</code> array is <img class="formulaInl" alt="$a_{1,1}$" src="form_10.png"/>, the first element in the <code>ind</code> array should be 0 . If the second element in the <code>val</code> array is <img class="formulaInl" alt="$a_{2,1}$" src="form_11.png"/>, then the second element in <code>ind</code> array should be 1 (the second element in dense representation). If the third element in the <code>val</code> array is <img class="formulaInl" alt="$a_{3,2}$" src="form_12.png"/>, then the third element in <code>ind</code> array should be 4. Explicitly, </p>
<div class="fragment"><pre class="fragment"><span class="keywordtype">double</span> val1[]={3,2,6};
<span class="keywordtype">int</span> ind1[]={0,1,4};
<a class="code" href="group__SDPBasic.html#gaa6ed45b2539266f04bd4b8401aa89c06" title="Set data matrix  in a sparse format.">SDPConeSetASparseVecMat</a>(sdpcone,j,i,3,1.0,0,ind1,val1,3);
</pre></div><p> If we index the elements from 1 through n(n+1)/2, we can use </p>
<div class="fragment"><pre class="fragment"><span class="keywordtype">double</span> val2[]={3,2,6};
<span class="keywordtype">int</span> ind2[]={1,2,5};
<a class="code" href="group__SDPBasic.html#gaa6ed45b2539266f04bd4b8401aa89c06" title="Set data matrix  in a sparse format.">SDPConeSetASparseVecMat</a>(sdpcone,j,i,3,1.0,1,ind2,val2,3);
</pre></div><p> The ordering of the elements in the array can be changed and zero elements can be included. </p>
<div class="fragment"><pre class="fragment"><span class="keywordtype">double</span> val3[]={6,3,0,2};
<span class="keywordtype">int</span> ind3[]={4,0,2,1};
<a class="code" href="group__SDPBasic.html#gaa6ed45b2539266f04bd4b8401aa89c06" title="Set data matrix  in a sparse format.">SDPConeSetASparseVecMat</a>(sdpcone,j,i,3,1.0,0,ind3,val3,4);
</pre></div><p> The elements can also be scaled. </p>
<div class="fragment"><pre class="fragment"><span class="keywordtype">double</span> val1[]={6,4,12};
<span class="keywordtype">int</span> ind1[]={0,1,4};
<a class="code" href="group__SDPBasic.html#gaa6ed45b2539266f04bd4b8401aa89c06" title="Set data matrix  in a sparse format.">SDPConeSetASparseVecMat</a>(sdpcone,j,i,3,0.5,0,ind1,val1,3);
</pre></div><dl class="note"><dt><b>Note:</b></dt><dd>DSDP will use the two arrays throughout in many routines, but it will not modify or delete them until finished with DSDP.</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd>DSDPCreateSDPCone() </dd>
<dd>
<a class="el" href="group__DSDPBasic.html#ga7e1b78dc7d7407fcf84e05b9c42fc72c" title="Set the objective vector b in (D).">DSDPSetDualObjective()</a> </dd>
<dd>
<a class="el" href="group__SDPBasic.html#ga66567faeecc4cb75f7ae3a3eed966bd4" title="Print a data matrix to the screen.">SDPConeViewDataMatrix()</a> </dd></dl>

<p>Definition at line <a class="el" href="dsdpadddatamat_8c_source.html#l00152">152</a> of file <a class="el" href="dsdpadddatamat_8c_source.html">dsdpadddatamat.c</a>.</p>

<p>Referenced by <a class="el" href="maxcut_8c_source.html#l00051">MaxCut()</a>, <a class="el" href="dsdp_8c_source.html#l00035">mexFunction()</a>, <a class="el" href="color_8c_source.html#l00039">MinColoring()</a>, <a class="el" href="readsdpa_8c_source.html#l00080">ReadSDPAFile()</a>, and <a class="el" href="stable_8c_source.html#l00107">SetStableSetData()</a>.</p>

</div>
</div>
<a class="anchor" id="ga66567faeecc4cb75f7ae3a3eed966bd4"></a><!-- doxytag: member="dsdpadddata.c::SDPConeViewDataMatrix" ref="ga66567faeecc4cb75f7ae3a3eed966bd4" args="(SDPCone sdpcone, int blockj, int vari)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SDPConeViewDataMatrix </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structSDPCone__C.html">SDPCone</a>&#160;</td>
          <td class="paramname"><em>sdpcone</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>blockj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vari</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print a data matrix to the screen. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">sdpcone</td><td>semidefinite cone object </td></tr>
    <tr><td class="paramname">blockj</td><td>block number </td></tr>
    <tr><td class="paramname">vari</td><td>variable number from 0 through m </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="dsdpadddata_8c.html#a090ffcb29e21d85ef1c6fb4effdab4ba" title="Print the SDPCone to the screen;.">SDPConeView()</a> </dd></dl>

<p>Definition at line <a class="el" href="dsdpadddata_8c_source.html#l00205">205</a> of file <a class="el" href="dsdpadddata_8c_source.html">dsdpadddata.c</a>.</p>

<p>Referenced by <a class="el" href="maxcut_8c_source.html#l00051">MaxCut()</a>, <a class="el" href="readsdpa_8c_source.html#l00080">ReadSDPAFile()</a>, and <a class="el" href="stable_8c_source.html#l00107">SetStableSetData()</a>.</p>

</div>
</div>
<a class="anchor" id="ga86f9566781cbb0468984b6486ff36ea1"></a><!-- doxytag: member="sdpcone.c::SDPConeViewX" ref="ga86f9566781cbb0468984b6486ff36ea1" args="(SDPCone sdpcone, int blockj, int n, double x[], int nn)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SDPConeViewX </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structSDPCone__C.html">SDPCone</a>&#160;</td>
          <td class="paramname"><em>sdpcone</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>blockj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nn</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print a dense array X to the screen. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">sdpcone</td><td>semidefinite cone </td></tr>
    <tr><td class="paramname">blockj</td><td>block number </td></tr>
    <tr><td class="paramname">n</td><td>the dimension of the block </td></tr>
    <tr><td class="paramname">x</td><td>dense matrix array. </td></tr>
    <tr><td class="paramname">nn</td><td>length of the array x </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="group__SDPBasic.html#ga9e7744a5c7fbe87642979e2b41bc2c00" title="After applying the solver, set a pointer to the array in the object with the solution X...">SDPConeGetXArray()</a> </dd></dl>

<p>Definition at line <a class="el" href="sdpcone_8c_source.html#l00223">223</a> of file <a class="el" href="sdpcone_8c_source.html">sdpcone.c</a>.</p>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Jun 8 2011 for DSDP by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>