File: complex.h

package info (click to toggle)
pdl 1%3A2.007-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 11,848 kB
  • ctags: 6,321
  • sloc: perl: 32,760; fortran: 13,113; ansic: 9,273; makefile: 81; sh: 32
file content (35 lines) | stat: -rw-r--r-- 1,089 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* complex.h - a small library for doing complex algebra in C.
 *
 * (C) Copyright 2001 by NetGroup A/S. All rights reserved.
 *
 * $Log$
 * Revision 1.1  2006/06/20 15:57:22  djburke
 * Hopefully a saner way to build Basic/MatrixOps
 *
 * Revision 1.1  2005/01/08 09:22:57  zowie
 * Added non-symmetric matrices to eigens; updated version to 2.4.2cvs.
 *
 * Revision 1.1.1.1  2001/07/06 13:39:35  kneth
 * Initial import of code.
 *
 *
 */

#ifndef SSL_COMPLEX_H_
#define SSL_COMPLEX_H_

struct SSL_ComplexStruct {
  double   re, im;
}; /* struct SSL_ComplexStruct */

typedef struct SSL_ComplexStruct SSL_Complex;

extern void    SSL_ComplexAssign(double, double, SSL_Complex *);
extern void    SSL_ComplexAdd(SSL_Complex, SSL_Complex, SSL_Complex *);
extern void    SSL_ComplexSub(SSL_Complex, SSL_Complex, SSL_Complex *); 
extern void    SSL_ComplexMul(SSL_Complex, SSL_Complex, SSL_Complex *);
extern void    SSL_ComplexDiv(SSL_Complex, SSL_Complex, SSL_Complex *);
extern double  SSL_ComplexNorm(SSL_Complex);
extern double  SSL_ComplexArg(SSL_Complex);

#endif /* SSL_COMPLEX_H_ */