<!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/sdpconevec.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">sdpconevec.h</div> </div> </div> <div class="contents"> <a href="sdpconevec_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(__SDPCONE_VECTORS_H) </span> <a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __SDPCONE_VECTORS_H</span> <a name="l00003"></a>00003 <span class="preprocessor"></span> <a name="l00007"></a>00007 <span class="preprocessor">#include <math.h></span> <a name="l00013"></a><a class="code" href="structSDPConeVec__C.html">00013</a> <span class="keyword">struct </span><a class="code" href="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec_C</a>{ <a name="l00014"></a>00014 <span class="keywordtype">int</span> dim; <a name="l00015"></a>00015 <span class="keywordtype">double</span> *val; <a name="l00016"></a>00016 }; <a name="l00017"></a>00017 <a name="l00018"></a>00018 <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00019"></a>00019 <span class="keywordtype">int</span> *indx; <a name="l00020"></a>00020 } DSDPIndex; <a name="l00021"></a>00021 <a name="l00026"></a><a class="code" href="sdpconevec_8h.html#a137206b45c392c1fc01535abcd876706">00026</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec_C</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="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">"C"</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> SDPConeVecCreate(<span class="keywordtype">int</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="l00033"></a>00033 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="sdpconevec_8c.html#a0b5c0b92c582546c95a5d676a3ed06c4" title="Allocate another vector with the same structure as the first.">SDPConeVecDuplicate</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="l00034"></a>00034 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="sdpconevec_8c.html#aaf2acb6a6221592957980b795972776f" title="Inner product of two vectors.">SDPConeVecDot</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="l00035"></a>00035 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="sdpconevec_8c.html#a4af0096eab7b3da3c9d224884709c137" title="Print the elements of the vector.">SDPConeVecView</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="l00036"></a>00036 <span class="keyword">extern</span> <span class="keywordtype">int</span> SDPConeVecDestroy(<a class="code" href="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec</a>*); <a name="l00037"></a>00037 <span class="preprocessor">#define SDPConeVecCreateWArray(a,b,c) 0;{ (*(a)).val=(b); (*(a)).dim=(c);}</span> <a name="l00038"></a>00038 <span class="preprocessor"></span> <a name="l00039"></a>00039 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="sdpconevec_8c.html#aecbde49bc8a9f21a21f8910ee3605753" title="Set each element of vector to this number.">SDPConeVecSet</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="l00040"></a>00040 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="sdpconevec_8c.html#aabe353b42ee6b9c2f4db24b3996d2baf" title="Zero the elements of the vector.">SDPConeVecZero</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="l00041"></a>00041 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="sdpconevec_8c.html#ad4e291595a68e1f476f047a1983eb9d5" title="Scale the vector to norm of 1.">SDPConeVecNormalize</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="l00042"></a>00042 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="sdpconevec_8c.html#a09b3931fbac3a916e530016400213d71" title="Add a multiple of X to Y.">SDPConeVecAXPY</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 class="code" href="structSDPConeVec__C.html" title="Vector whose length corresponds to dimension of a block in a cone.">SDPConeVec</a>); <a name="l00043"></a>00043 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="sdpconevec_8c.html#a0f0dc0f70e8bd7cbdde3dbcf4c925f06" title="Compute the Euclidean norm.">SDPConeVecNorm2</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="l00044"></a>00044 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="sdpconevec_8c.html#a1e15e8a3438013cc83b22e3d09df5adc" title="Copy v1 to v2.">SDPConeVecCopy</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="sdpconevec_8c.html#aa96c836f6ec003af73fd3fc9d24db24e" title="Compute the Euclidean norm.">SDPConeVecScale</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="l00046"></a>00046 <a name="l00047"></a>00047 <span class="preprocessor">#define SDPConeVecGetArray(a,b) 0;{ *(b)=((a).val); }</span> <a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#define SDPConeVecRestoreArray(a,b) 0;{ *(b)=0;}</span> <a name="l00049"></a>00049 <span class="preprocessor"></span><span class="preprocessor">#define SDPConeVecGetSize(a,b) 0;{ *(b)=((a).dim); }</span> <a name="l00050"></a>00050 <span class="preprocessor"></span> <a name="l00057"></a>00057 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="sdpconevec_8c.html#aece9ed7b85bae935bfb13788aa0de60c" title="Set structure pointers to 0.">DSDPIndexInitialize</a>(DSDPIndex*); <a name="l00058"></a>00058 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="sdpconevec_8c.html#a21a43b855d553444080b135912c2227d" title="Deallocate memory.">DSDPIndexDestroy</a>(DSDPIndex*); <a name="l00059"></a>00059 <span class="keyword">extern</span> <span class="keywordtype">int</span> DSDPIndexSetBasis(DSDPIndex, <span class="keywordtype">int</span>); <a name="l00060"></a>00060 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="sdpconevec_8c.html#a53a8408afb7550464ba8e0c5ff84f949" title="Allocate array for indices.">DSDPIndexCreate</a>(<span class="keywordtype">int</span>,DSDPIndex*); <a name="l00061"></a>00061 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="sdpconevec_8c.html#a5b1f22e11b9655d118a25e5af93415e7" title="Print indices.">DSDPIndexView</a>(DSDPIndex); <a name="l00062"></a>00062 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00063"></a>00063 <span class="preprocessor"></span>} <a name="l00064"></a>00064 <span class="preprocessor">#endif</span> <a name="l00065"></a>00065 <span class="preprocessor"></span> <a name="l00066"></a>00066 <a name="l00067"></a>00067 <span class="preprocessor">#endif</span> </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>