Sophie

Sophie

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

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: src/sdp/dsdpxmat.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&#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 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&#160;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">dsdpxmat.h</div>  </div>
</div>
<div class="contents">
<a href="dsdpxmat_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_VSYMMETRICMATRIX_H) </span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __DSDP_VSYMMETRICMATRIX_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;<a class="code" href="sdpconevec_8h.html" title="Each block of the SDPCone has two vectors of appropriate size.">sdpconevec.h</a>&quot;</span>
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="comment">/* DSDP V Matrix Structure */</span>
<a name="l00017"></a><a class="code" href="structDSDPVMat__C.html">00017</a> <span class="keyword">struct </span><a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat_C</a>{
<a name="l00018"></a>00018   <span class="keywordtype">void</span>  *matdata;
<a name="l00019"></a>00019   <span class="keyword">struct </span><a class="code" href="structDSDPVMat__Ops.html" title="Table of function pointers that operate on the dense matrix.">DSDPVMat_Ops</a>* dsdpops;
<a name="l00020"></a>00020 };
<a name="l00021"></a>00021 
<a name="l00026"></a><a class="code" href="dsdpxmat_8h.html#afbb59d3eed31c27871b626c56c35586a">00026</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat_C</a> <a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>;
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00030"></a>00030 <span class="preprocessor">#endif</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span>
<a name="l00032"></a>00032 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVMatGetType(<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>, <span class="keywordtype">int</span> *);
<a name="l00033"></a>00033 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpxmat_8c.html#a2db9226fa07b55d2ec6d04ce1cd6b43a" title="Set opaque pointer an function pointers.">DSDPVMatSetData</a>(<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a> *, <span class="keyword">struct</span> <a class="code" href="structDSDPVMat__Ops.html" title="Table of function pointers that operate on the dense matrix.">DSDPVMat_Ops</a>*,  <span class="keywordtype">void</span>*);
<a name="l00034"></a>00034 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpxmat_8c.html#a0088d6c397591c98f9e52a019c385304" title="Set pointers to null.">DSDPVMatInitialize</a>(<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>*);
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpxmat_8c.html#a3a78806350cbbb37f85e899d88a3c28a" title="Test validity of matrix.">DSDPVMatTest</a>(<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>);
<a name="l00037"></a>00037 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpxmat_8c.html#a41e9d8b32dd9a96f4b9480f831edfb3d" title="Get number of rows and columns.">DSDPVMatGetSize</a>(<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>,<span class="keywordtype">int</span>*);
<a name="l00038"></a>00038 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpxmat_8c.html#afa0b2c0d0c9ec7c7f9842d1db778a5b3" title="Print matrix.">DSDPVMatView</a>(<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>);
<a name="l00039"></a>00039 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpxmat_8c.html#acb23f3beb4969a6d69d1e3af7ccba034" title="Deallocate matrix.">DSDPVMatDestroy</a>(<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>*);
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpxmat_8c.html#aae8cc5530449adc05a8f13d7ee56d00a" title="Answer whether the array has been allocated or not.">DSDPVMatExist</a>(<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>,<span class="keywordtype">int</span>*);
<a name="l00042"></a>00042 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpxmat_8c.html#a9bf5b99c68ebd39086408bcdc430caa6" title="Zero matrix.">DSDPVMatZeroEntries</a>(<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>);
<a name="l00043"></a>00043 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpxmat_8c.html#aaa8cdde5690e6a567cf6a9ea82bc90f2" title="Add outer product of a vector to the matrix.">DSDPVMatAddOuterProduct</a>(<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>, <span class="keywordtype">double</span>, <a class="code" href="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec</a>);
<a name="l00044"></a>00044 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpxmat_8c.html#aaeb6e1bdb3b88f647f81e2319d614543" title="Multiply X by a vector.">DSDPVMatMult</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 class="code" href="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec</a>);
<a name="l00045"></a>00045 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpxmat_8c.html#ad8fc8d36269ab08a81f4c55d21fd1663" title="Scaling diagonal is useful for inner products and norms.">DSDPVMatScaleDiagonal</a>(<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>,<span class="keywordtype">double</span>);
<a name="l00046"></a>00046 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpxmat_8c.html#a5d9a41fd2b127f8662e73d068d1ce99d" title="Add something to diagonal elements.">DSDPVMatShiftDiagonal</a>(<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>,<span class="keywordtype">double</span>);
<a name="l00047"></a>00047 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpxmat_8c.html#a26bd5f85f0e340f7c89215efc22f0e57" title="Compute square of Frobenius norm of matrix.">DSDPVMatNormF2</a>(<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>, <span class="keywordtype">double</span>*);
<a name="l00048"></a>00048 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpxmat_8c.html#a3601c3a4974f85d70476152aeebb8a6d" title="Get the array that stores the matrix.">DSDPVMatGetArray</a>(<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>,<span class="keywordtype">double</span>**,<span class="keywordtype">int</span>*);
<a name="l00049"></a>00049 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpxmat_8c.html#a45cd417f498392df8fe1f8afca6cff8b" title="Restore the array that stores the matrix.">DSDPVMatRestoreArray</a>(<a class="code" href="structDSDPVMat__C.html" title="Dense symmetric matrix for one block in the semidefinite cone.">DSDPVMat</a>,<span class="keywordtype">double</span>**,<span class="keywordtype">int</span>*);
<a name="l00050"></a>00050 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVMatMinEigenvalue(<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 class="code" href="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec</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="dsdpxmat_8c.html#ac754c2e4d97bfe8c7245ccb8be67d5d3" title="Test correctness of operations.">DSDPVMatCheck</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 class="code" href="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec</a>);
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span>}
<a name="l00055"></a>00055 <span class="preprocessor">#endif</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span>
<a name="l00057"></a>00057 <span class="preprocessor">#endif</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span>
<a name="l00059"></a>00059 
</pre></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>