SuperLU Distributed 8.2.1
Distributed memory sparse direct solver
dcomplex.h File Reference

Header for dcomplex.c. More...

#include <mpi.h>
#include "superlu_defs.h"
Include dependency graph for dcomplex.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  doublecomplex
 

Macros

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

Functions

void slud_z_div (doublecomplex *, doublecomplex *, doublecomplex *)
 
double slud_z_abs (doublecomplex *)
 
double slud_z_abs1 (doublecomplex *)
 

Detailed Description

Header for dcomplex.c.

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.

-- Distributed SuperLU routine (version 1.0) --
Lawrence Berkeley National Lab, Univ. of California Berkeley.
September 1, 1999

Macro Definition Documentation

◆ z_add

#define z_add (   c,
  a,
 
)
Value:
{ (c)->r = (a)->r + (b)->r; \
(c)->i = (a)->i + (b)->i; }
int i
Definition: dutil_dist.c:248

Complex Addition c = a + b.

◆ z_copy

#define z_copy (   c,
 
)
Value:
{ (c)->r = (a)->r ; \
(c)->i = (a)->i ; }

Complex Copy c = a.

◆ z_eq

#define z_eq (   a,
 
)    ( (a)->r == (b)->r && (a)->i == (b)->i )

Complex equality testing.

◆ z_sub

#define z_sub (   c,
  a,
 
)
Value:
{ (c)->r = (a)->r - (b)->r; \
(c)->i = (a)->i - (b)->i; }

Complex Subtraction c = a - b.

◆ zd_mult

#define zd_mult (   c,
  a,
 
)
Value:
{ (c)->r = (a)->r * (b); \
(c)->i = (a)->i * (b); }

Complex-Double Multiplication.

◆ zz_mult

#define zz_mult (   c,
  a,
 
)
Value:
{ \
double cr, ci; \
cr = (a)->r * (b)->r - (a)->i * (b)->i; \
ci = (a)->i * (b)->r + (a)->r * (b)->i; \
(c)->r = cr; \
(c)->i = ci; \
}

Complex-Complex Multiplication.

Function Documentation

◆ slud_z_abs()

double slud_z_abs ( doublecomplex z)
Here is the caller graph for this function:

◆ slud_z_abs1()

double slud_z_abs1 ( doublecomplex z)
Here is the caller graph for this function:

◆ slud_z_div()

void slud_z_div ( doublecomplex c,
doublecomplex a,
doublecomplex b 
)
Here is the caller graph for this function: