Main Page   Data Structures   File List   Data Fields   Globals  

division_scs.c File Reference

Functions for SCS inverse and division. More...

Go to the source code of this file.

Functions

void scs_inv (scs_ptr result, scs_ptr x)
void scs_div (scs_ptr result, scs_ptr x, scs_ptr y)


Detailed Description

Functions for SCS inverse and division.

Author:
Defour David David.Defour@ens-lyon.fr , Florent de Dinechin Florent.de.Dinechin@ens-lyon.fr
This file is part of the SCS library.

Definition in file division_scs.c.


Function Documentation

void scs_inv scs_ptr    result,
scs_ptr    x
 

SCS inverse.

Stores 1/x in result. Result is normalised

Warning:
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.

Definition at line 38 of file division_scs.c.

References scs::index, scs_get_d(), scs_mul(), scs_set(), scs_set_d(), scs_set_si(), scs_sub(), and scs_t.

Referenced by scs_div().

void scs_div scs_ptr    result,
scs_ptr    x,
scs_ptr    y
 

SCS division.

Computes x/y. Result is normalised

Warning:
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.

Definition at line 67 of file division_scs.c.

References scs_inv(), scs_mul(), and scs_t.


Generated on Tue Jun 17 10:15:52 2003 for SCSLib by doxygen1.2.15