File: sslib.h

package info (click to toggle)
pdl 1%3A2.4.3-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 8,700 kB
  • ctags: 3,724
  • sloc: perl: 23,874; ansic: 10,952; fortran: 6,374; sh: 75; makefile: 58
file content (42 lines) | stat: -rw-r--r-- 971 bytes parent folder | download | duplicates (2)
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
36
37
38
39
40
41
42
/*
 * ssl.h - Small Scientific Library.
 *
 * (C) Copyright 2001 by NetGroup A/S. All rights reserved.
 *
 * $Log: sslib.h,v $
 * 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.2  2001/07/11 08:06:01  kneth
 * Added SWAP macro
 *
 * Revision 1.1.1.1  2001/07/06 13:39:35  kneth
 * Initial import of code.
 *
 *
 */

#ifndef SSL_H_
#define SSL_H_

#ifndef PI
#  define PI 3.141592653589793238462643
#endif

/***** A boolean type       *****/
typedef enum {false=0, true=1} bool;

/***** Pratical macros      *****/
#define min(x, y)   ((x)>(y))?(y):(x)
#define max(x, y)   ((x)>(y))?(x):(y)
#define SWAP(x, y)  { double tmp; tmp=x; x=y; y=tmp; }

/***** General functions    *****/
extern void   SSLerror(char *);
extern double Sqr(double);
extern double Cube(double);

#endif /* SSL_H_ */