Sophie

Sophie

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

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/solver/dsdpvec.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_03c647d51c93e018646ff83aa2eeb169.html">solver</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">dsdpvec.h</div>  </div>
</div>
<div class="contents">
<a href="dsdpvec_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_VECTORS_H) </span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __DSDP_VECTORS_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;math.h&gt;</span>
<a name="l00009"></a>00009 <span class="comment">/* Define DSDP Vector Structure */</span>
<a name="l00010"></a>00010 
<a name="l00020"></a>00020 <span class="keyword">struct  </span>DSDPVec_C{
<a name="l00021"></a>00021   <span class="keywordtype">int</span>    dim;
<a name="l00022"></a>00022   <span class="keywordtype">double</span> *val;
<a name="l00023"></a>00023 };
<a name="l00024"></a>00024 
<a name="l00025"></a><a class="code" href="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9">00025</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>DSDPVec_C <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="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="preprocessor">#define DSDPVecGetArray(a,b)              0;{ *(b)=((a).val); }</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#define DSDPVecRestoreArray(a,b)          0;{ *(b)=0; }</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define DSDPVecGetSize(a,b)               0;{ *(b)=((a).dim); }</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#define DSDPVecAddElement(a,b,c)          0;{ if (c){((a).val[b])+=(c);}  }</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define DSDPVecSetElement(a,b,c)          0;{  {((a).val[b])=(c); } }</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define DSDPVecGetElement(a,b,c)          0;{ *(c)=((a).val[b]); }</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define DSDPVecSetR(a,b)                  0;{  {((a).val[(a).dim-1])=(b); } }</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#define DSDPVecAddR(a,b)                  0;{  if(b){((a).val[(a).dim-1])+=(b); } }</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span><span class="preprocessor">#define DSDPVecGetR(a,b)                  0;{ *(b)=((a).val[(a).dim-1]); }</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#define DSDPVecSetC(a,b)                  0;{  {((a).val[0])=(b); } }</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#define DSDPVecAddC(a,b)                  0;{  if(b){((a).val[0])+=(b); } }</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#define DSDPVecGetC(a,b)                  0;{ *(b)=((a).val[0]); }</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define DSDPVecCreateWArray(a,b,c)        0;{ (*(a)).val=(b); (*(a)).dim=(c);}</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="comment">/*</span>
<a name="l00041"></a>00041 <span class="comment">extern int DSDPVecGetArray(DSDPVec, double **);</span>
<a name="l00042"></a>00042 <span class="comment">extern int DSDPVecRestoreArray(DSDPVec, double **);</span>
<a name="l00043"></a>00043 <span class="comment">extern int DSDPVecGetSize(DSDPVec, int *);</span>
<a name="l00044"></a>00044 <span class="comment">extern int DSDPVecAddElement(DSDPVec, int, double);</span>
<a name="l00045"></a>00045 <span class="comment">extern int DSDPVecSetElement(DSDPVec, int, double);</span>
<a name="l00046"></a>00046 <span class="comment">extern int DSDPVecGetElement(DSDPVec, int, double*);</span>
<a name="l00047"></a>00047 <span class="comment">extern int DSDPVecCreateWArray(DSDPVec*, double*, int);</span>
<a name="l00048"></a>00048 <span class="comment">*/</span>
<a name="l00049"></a>00049 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00051"></a>00051 <span class="preprocessor">#endif</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span>
<a name="l00053"></a>00053 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecCreateSeq(<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 name="l00054"></a>00054 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecDuplicate(<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="l00055"></a>00055 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecSet(<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 name="l00056"></a>00056 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecISet(<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 name="l00057"></a>00057 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecZero(<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="l00058"></a>00058 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecNormalize(<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="l00059"></a>00059 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecSetValue(<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>,<span class="keywordtype">double</span>);
<a name="l00060"></a>00060 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecSetBasis(<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="l00061"></a>00061 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecCopy( <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="l00062"></a>00062 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecScale(<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 name="l00063"></a>00063 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecScaleCopy(<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="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>);
<a name="l00064"></a>00064 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecAXPY(<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 name="l00065"></a>00065 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecAYPX(<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 name="l00066"></a>00066 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecWAXPY(<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="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="l00067"></a>00067 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecWAXPBY(<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="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="dsdpvec_8h.html#a421243d35437ad44ded3c1e34198e8e9" title="This object hold m+2 variables: a scaling of C, the y variables, and r.">DSDPVec</a>);
<a name="l00068"></a>00068 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecPointwiseMin( <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="l00069"></a>00069 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecPointwiseMax( <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="l00070"></a>00070 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecPointwiseMult( <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="l00071"></a>00071 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecPointwiseDivide( <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="l00072"></a>00072 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecReciprocalSqrt(<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="l00073"></a>00073 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecDot(<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>, <span class="keywordtype">double</span> *);
<a name="l00074"></a>00074 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecSum( <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 name="l00075"></a>00075 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecNorm1( <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 name="l00076"></a>00076 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecNorm2( <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 name="l00077"></a>00077 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecNorm22( <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 name="l00078"></a>00078 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecNormInfinity( <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 name="l00079"></a>00079 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecAbsoluteValue( <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="l00080"></a>00080 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecShift(<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 name="l00081"></a>00081 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecView( <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="l00082"></a>00082 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPVecDestroy(<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="l00083"></a>00083 
<a name="l00084"></a>00084 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00085"></a>00085 <span class="preprocessor"></span>}
<a name="l00086"></a>00086 <span class="preprocessor">#endif</span>
<a name="l00087"></a>00087 <span class="preprocessor"></span>
<a name="l00088"></a>00088 <span class="preprocessor">#endif</span>
<a name="l00089"></a>00089 <span class="preprocessor"></span>
</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>