scomplex.c File Reference

Common arithmetic for complex type. More...

`#include <math.h>`
`#include <stdlib.h>`
`#include <stdio.h>`
`#include "slu_scomplex.h"`
Include dependency graph for scomplex.c:

## Functions

void | c_div (singlecomplex *c, singlecomplex *a, singlecomplex *b)
| Complex Division c = a/b. More...
double | c_abs (singlecomplex *z)
| Returns sqrt(z.r^2 + z.i^2) More...
double | c_abs1 (singlecomplex *z)
| Approximates the abs. Returns abs(z.r) + abs(z.i) More...
void | c_exp (singlecomplex *r, singlecomplex *z)
| Return the exponentiation. More...
void | r_cnjg (singlecomplex *r, singlecomplex *z)
| Return the complex conjugate. More...
double | r_imag (singlecomplex *z)
| Return the imaginary part. More...
singlecomplex | c_sgn (singlecomplex *z)
| SIGN functions for complex number. Returns z/abs(z) More...
singlecomplex | c_sqrt (singlecomplex *z)
| Square-root of a complex number. More...

## Detailed Description

Copyright (c) 2003, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from U.S. Dept. of Energy)

All rights reserved.

The source code is distributed under BSD license, see the file License.txt at the top-level directory.

    -- SuperLU routine (version 2.0) --
    Univ. of California Berkeley, Xerox Palo Alto Research Center,
    and Lawrence Berkeley National Lab.
    November 15, 1997

    This file defines common arithmetic operations for complex type.

## Function Documentation

## c_abs()

double c_abs | ( | singlecomplex * | z | ) |

## c_abs1()

double c_abs1 | ( | singlecomplex * | z | ) |

## c_div()

void c_div | ( | singlecomplex * | c,
|  | singlecomplex * | a,
|  | singlecomplex * | b
| ) |  |

## c_exp()

void c_exp | ( | singlecomplex * | r,
|  | singlecomplex * | z
| ) |  |

## c_sgn()

singlecomplex c_sgn | ( | singlecomplex * | z | ) |

Here is the call graph for this function:

## c_sqrt()

singlecomplex c_sqrt | ( | singlecomplex * | z | ) |

## r_cnjg()

void r_cnjg | ( | singlecomplex * | r,
|  | singlecomplex * | z
| ) |  |

## r_imag()

double r_imag | ( | singlecomplex * | z | ) |