kusano 7d535a
kusano 7d535a
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
kusano 7d535a
<title>SuperLU: SRC/slu_dcomplex.h File Reference</title>
kusano 7d535a
<link href="doxygen.css" rel="stylesheet" type="text/css">
kusano 7d535a
<link href="tabs.css" rel="stylesheet" type="text/css">
kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a
  
kusano 7d535a
    
    kusano 7d535a
          
  • Main Page
  • kusano 7d535a
          
  • Data Structures
  • kusano 7d535a
          
  • Files
  • kusano 7d535a
        
    kusano 7d535a
      
    kusano 7d535a
    kusano 7d535a
    kusano 7d535a

    SRC/slu_dcomplex.h File Reference

    Header file for complex operations. More...
    kusano 7d535a

    kusano 7d535a
    kusano 7d535a

    kusano 7d535a
    Go to the source code of this file.
    kusano 7d535a
    kusano 7d535a

    Data Structures

    kusano 7d535a
    struct  doublecomplex
    kusano 7d535a
    kusano 7d535a

    Defines

    kusano 7d535a
    #define z_add(c, a, b)
    kusano 7d535a
    kusano 7d535a
     Complex Addition c = a + b.  
    kusano 7d535a
    #define z_sub(c, a, b)
    kusano 7d535a
    kusano 7d535a
     Complex Subtraction c = a - b.  
    kusano 7d535a
    #define zd_mult(c, a, b)
    kusano 7d535a
    kusano 7d535a
     Complex-Double Multiplication.  
    kusano 7d535a
    #define zz_mult(c, a, b)
    kusano 7d535a
    kusano 7d535a
     Complex-Complex Multiplication.  
    kusano 7d535a
    #define zz_conj(a, b)
    kusano 7d535a
    kusano 7d535a
    #define z_eq(a, b)   ( (a)->r == (b)->r && (a)->i == (b)->i )
    kusano 7d535a
    kusano 7d535a
     Complex equality testing.  
    kusano 7d535a

    Functions

    kusano 7d535a
    void z_div (doublecomplex *, doublecomplex *, doublecomplex *)
    kusano 7d535a
    kusano 7d535a
     Complex Division c = a/b.  
    kusano 7d535a
    double z_abs (doublecomplex *)
    kusano 7d535a
    kusano 7d535a
     Returns sqrt(z.r^2 + z.i^2).  
    kusano 7d535a
    double z_abs1 (doublecomplex *)
    kusano 7d535a
    kusano 7d535a
     Approximates the abs. Returns abs(z.r) + abs(z.i).  
    kusano 7d535a
    void z_exp (doublecomplex *, doublecomplex *)
    kusano 7d535a
    kusano 7d535a
     Return the exponentiation.  
    kusano 7d535a
    void d_cnjg (doublecomplex *r, doublecomplex *z)
    kusano 7d535a
    kusano 7d535a
     Return the complex conjugate.  
    kusano 7d535a
    double d_imag (doublecomplex *)
    kusano 7d535a
    kusano 7d535a
     Return the imaginary part.  
    kusano 7d535a
    doublecomplex z_sgn (doublecomplex *)
    kusano 7d535a
    kusano 7d535a
     SIGN functions for complex number. Returns z/abs(z).  
    kusano 7d535a
    doublecomplex z_sqrt (doublecomplex *)
    kusano 7d535a
    kusano 7d535a
     Square-root of a complex number.  
    kusano 7d535a
    kusano 7d535a

    Detailed Description

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

    kusano 7d535a
     Contains definitions for various complex operations.
    kusano 7d535a
     This header file is to be included in source files z*.c
    kusano 7d535a
      

    Define Documentation

    kusano 7d535a
    kusano 7d535a
    kusano 7d535a
    kusano 7d535a
          
    kusano 7d535a
            
    kusano 7d535a
              #define z_add          
    kusano 7d535a
              (
    kusano 7d535a
              c,         
    kusano 7d535a
              
    kusano 7d535a
              
    kusano 7d535a
              a,         
    kusano 7d535a
              
    kusano 7d535a
              
    kusano 7d535a
    kusano 7d535a
                        
    kusano 7d535a
               ) 
    kusano 7d535a
              
    kusano 7d535a
            
    kusano 7d535a
          
    kusano 7d535a
    kusano 7d535a
    kusano 7d535a
    kusano 7d535a

    kusano 7d535a
    Value:
    { (c)->r = (a)->r + (b)->r; \
    kusano 7d535a
                             (c)->i = (a)->i + (b)->i; }