lsd_mkb/lsd_mkb_superlu/superlu_seq/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 (complex *c, complex *a, complex *b)
 Complex Division c = a/b.
double c_abs (complex *z)
 Returns sqrt(z.r^2 + z.i^2).
double c_abs1 (complex *z)
 Approximates the abs. Returns abs(z.r) + abs(z.i).
void c_exp (complex *r, complex *z)
 Return the exponentiation.
void r_cnjg (complex *r, complex *z)
 Return the complex conjugate.
double r_imag (complex *z)
 Return the imaginary part.
complex c_sgn (complex *z)
 SIGN functions for complex number. Returns z/abs(z).
complex c_sqrt (complex *z)
 Square-root of a complex number.

Detailed Description

Common arithmetic for complex type.

 -- 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

double c_abs ( complex z  ) 

Returns sqrt(z.r^2 + z.i^2).

Here is the caller graph for this function:

double c_abs1 ( complex z  ) 

Approximates the abs. Returns abs(z.r) + abs(z.i).

Here is the caller graph for this function:

void c_div ( complex c,
complex a,
complex b 
)

Complex Division c = a/b.

Here is the caller graph for this function:

void c_exp ( complex r,
complex z 
)

Return the exponentiation.

Here is the call graph for this function:

complex c_sgn ( complex z  ) 

SIGN functions for complex number. Returns z/abs(z).

Here is the call graph for this function:

Here is the caller graph for this function:

complex c_sqrt ( complex z  ) 

Square-root of a complex number.

void r_cnjg ( complex r,
complex z 
)

Return the complex conjugate.

double r_imag ( complex z  ) 

Return the imaginary part.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Jun 2020 for ModFEM by  doxygen 1.6.1