<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>division_scs.c File Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.2.15 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> <hr><h1>division_scs.c File Reference</h1>Functions for SCS inverse and division. <a href="#_details">More...</a> <p> <p> <a href="division__scs_8c-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Functions</h2></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="division__scs_8c.html#a0">scs_inv</a> (<a class="el" href="scs_8h.html#a2">scs_ptr</a> result, <a class="el" href="scs_8h.html#a2">scs_ptr</a> x)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="division__scs_8c.html#a1">scs_div</a> (<a class="el" href="scs_8h.html#a2">scs_ptr</a> result, <a class="el" href="scs_8h.html#a2">scs_ptr</a> x, <a class="el" href="scs_8h.html#a2">scs_ptr</a> y)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Functions for SCS inverse and division. <p> <dl compact><dt><b> Author: </b><dd> Defour David <a href="mailto:David.Defour@ens-lyon.fr">David.Defour@ens-lyon.fr</a> , Florent de Dinechin <a href="mailto:Florent.de.Dinechin@ens-lyon.fr">Florent.de.Dinechin@ens-lyon.fr</a></dl>This file is part of the SCS library. <p> <p> Definition in file <a class="el" href="division__scs_8c-source.html">division_scs.c</a>.<hr><h2>Function Documentation</h2> <a name="a0" doxytag="division_scs.c::scs_inv"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void scs_inv </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="scs_8h.html#a2">scs_ptr</a> </td> <td class="mdname" nowrap> <em>result</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="scs_8h.html#a2">scs_ptr</a> </td> <td class="mdname" nowrap> <em>x</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> SCS inverse. <p> Stores 1/x in result. Result is normalised <p> <dl compact><dt><b> Warning: </b><dd> This function is known not to work for most precisions: it performs a fixed number of Newton-Raphson iterations (two), starting with a FP number (53 bits), so provides roughly 210 bits of precision. It should be modified to perform more iterations if more precision is needed. </dl> <p> Definition at line <a class="el" href="division__scs_8c-source.html#l00038">38</a> of file <a class="el" href="division__scs_8c-source.html">division_scs.c</a>. <p> References <a class="el" href="scs_8h-source.html#l00105">scs::index</a>, <a class="el" href="scs2double_8c-source.html#l00050">scs_get_d</a>(), <a class="el" href="multiplication__scs_8c-source.html#l00291">scs_mul</a>(), <a class="el" href="addition__scs_8c-source.html#l00055">scs_set</a>(), <a class="el" href="double2scs_8c-source.html#l00036">scs_set_d</a>(), <a class="el" href="double2scs_8c-source.html#l00148">scs_set_si</a>(), <a class="el" href="addition__scs_8c-source.html#l00539">scs_sub</a>(), and <a class="el" href="scs_8h-source.html#l00125">scs_t</a>. <p> Referenced by <a class="el" href="division__scs_8c-source.html#l00067">scs_div</a>(). </td> </tr> </table> <a name="a1" doxytag="division_scs.c::scs_div"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void scs_div </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="scs_8h.html#a2">scs_ptr</a> </td> <td class="mdname" nowrap> <em>result</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="scs_8h.html#a2">scs_ptr</a> </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="scs_8h.html#a2">scs_ptr</a> </td> <td class="mdname" nowrap> <em>y</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> SCS division. <p> Computes x/y. Result is normalised <dl compact><dt><b> Warning: </b><dd> This function is known not to work for most precisions: it performs a fixed number of Newton-Raphson iterations (two), starting with a FP number (53 bits), so provides roughly 210 bits of precision. It should be modified to perform more iterations if more precision is needed. </dl> <p> Definition at line <a class="el" href="division__scs_8c-source.html#l00067">67</a> of file <a class="el" href="division__scs_8c-source.html">division_scs.c</a>. <p> References <a class="el" href="division__scs_8c-source.html#l00038">scs_inv</a>(), <a class="el" href="multiplication__scs_8c-source.html#l00291">scs_mul</a>(), and <a class="el" href="scs_8h-source.html#l00125">scs_t</a>. </td> </tr> </table> <hr><address align="right"><small>Generated on Tue Jun 17 10:15:52 2003 for SCSLib by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.15 </small></address> </body> </html>