<!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_impl.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_impl.h</div> </div> </div> <div class="contents"> <a href="dsdpdualmat__impl_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_DUALMATRIXOPS_H) </span> <a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __DSDP_DUALMATRIXOPS_H</span> <a name="l00003"></a>00003 <span class="preprocessor"></span> <a name="l00013"></a><a class="code" href="structDSDPDualMat__Ops.html">00013</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>{ <a name="l00014"></a>00014 <span class="keywordtype">int</span> id; <a name="l00015"></a>00015 int (*matseturmat)(<span class="keywordtype">void</span>*,<span class="keywordtype">double</span>[],int,int); <span class="comment">/* Set full array of values into matrix */</span> <a name="l00016"></a>00016 int (*matgetarray)(<span class="keywordtype">void</span>*,<span class="keywordtype">double</span>*[],<span class="keywordtype">int</span>*); <span class="comment">/* Set pointers to a dense array and its dimension */</span> <a name="l00017"></a>00017 int (*matcholesky)(<span class="keywordtype">void</span>*,<span class="keywordtype">int</span>*); <span class="comment">/* Cholesky second argument is 0 for success, 1 otherwise */</span> <a name="l00018"></a>00018 int (*matsolveforward)(<span class="keywordtype">void</span>*,<span class="keywordtype">double</span>[],<span class="keywordtype">double</span>[],int); <span class="comment">/* Called after Cholesky */</span> <a name="l00019"></a>00019 int (*matsolvebackward)(<span class="keywordtype">void</span>*,<span class="keywordtype">double</span>[],<span class="keywordtype">double</span>[],int); <span class="comment">/* Called after Cholesky */</span> <a name="l00020"></a>00020 int (*matinvert)(<span class="keywordtype">void</span>*); <span class="comment">/* Called after Cholesky factorization */</span> <a name="l00021"></a>00021 int (*matinverseadd)(<span class="keywordtype">void</span>*,double,<span class="keywordtype">double</span>[],int,int); <span class="comment">/* Add multiple of the inverse to array */</span> <a name="l00022"></a>00022 int (*matinversemultiply)(<span class="keywordtype">void</span>*,<span class="keywordtype">int</span>[],int,<span class="keywordtype">double</span>[],<span class="keywordtype">double</span>[],int); <span class="comment">/* Called after invert */</span> <a name="l00023"></a>00023 int (*matforwardmultiply)(<span class="keywordtype">void</span>*,<span class="keywordtype">double</span>[],<span class="keywordtype">double</span>[],int); <span class="comment">/* Called after invert */</span> <a name="l00024"></a>00024 int (*matbackwardmultiply)(<span class="keywordtype">void</span>*,<span class="keywordtype">double</span>[],<span class="keywordtype">double</span>[],int); <span class="comment">/* Called after invert */</span> <a name="l00025"></a>00025 int (*matlogdet)(<span class="keywordtype">void</span>*,<span class="keywordtype">double</span>*); <span class="comment">/* Called after Cholesky */</span> <a name="l00026"></a>00026 int (*matfull)(<span class="keywordtype">void</span>*,<span class="keywordtype">int</span>*); <span class="comment">/* Is fully dense or not? */</span> <a name="l00027"></a>00027 int (*mattest)(<span class="keywordtype">void</span>*); <a name="l00028"></a>00028 int (*matgetsize)(<span class="keywordtype">void</span>*,<span class="keywordtype">int</span>*); <a name="l00029"></a>00029 int (*matdestroy)(<span class="keywordtype">void</span>*); <a name="l00030"></a>00030 int (*matview)(<span class="keywordtype">void</span>*); <a name="l00031"></a>00031 <span class="keyword">const</span> <span class="keywordtype">char</span> *matname; <a name="l00032"></a>00032 }; <a name="l00033"></a>00033 <a name="l00034"></a>00034 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00035"></a>00035 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { <a name="l00036"></a>00036 <span class="preprocessor">#endif</span> <a name="l00037"></a>00037 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="dsdpdualmat_8c.html#a80e8f72d7a1720fbe7563b2f57acd5c6" title="Set pointers to null.">DSDPDualMatOpsInitialize</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>*); <a name="l00038"></a>00038 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00039"></a>00039 <span class="preprocessor"></span>} <a name="l00040"></a>00040 <span class="preprocessor">#endif</span> <a name="l00041"></a>00041 <span class="preprocessor"></span> <a name="l00042"></a>00042 <span class="preprocessor">#endif</span> <a name="l00043"></a>00043 <span class="preprocessor"></span> <a name="l00044"></a>00044 </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>