File: arch.h

package info (click to toggle)
arpack%2B%2B 2.3-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 4,556 kB
  • sloc: cpp: 16,612; sh: 8,819; ansic: 2,312; makefile: 258
file content (95 lines) | stat: -rw-r--r-- 2,369 bytes parent folder | download | duplicates (8)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
  ARPACK++ v1.2 2/20/2000
  c++ interface to ARPACK code.

  MODULE arch.h
  Modified version of arch.h (from LAPACK++ 1.1).
  Machine dependent functions and variable types.

  ARPACK Authors
     Richard Lehoucq
     Danny Sorensen
     Chao Yang
     Dept. of Computational & Applied Mathematics
     Rice University
     Houston, Texas
*/


#ifndef ARCH_H
#define ARCH_H

// ARPACK++ arcomplex type definition.
// If you are not using g++ (or CC) and also are not intending 
// use complex variables, comment out the following line.

#include "arcomp.h"

// STL vector class.
// If the Standard Template Library is not available at your system
// and you do not want to install it, comment out the following line.

#include <vector>

// If your STL vector class defines a variable other than
// __SGI_STL_VECTOR_H, please change this variable name 
// in the ifdef command below.

#ifdef __SGI_STL_VECTOR_H
  #define STL_VECTOR_H
#endif

// UMFPACK parameters.
// These parameters are used by UMFPACK library functions. Normally
// they are not modified by the user. To use the default value, set
// the parameter to zero. For a complete description of all UMFPACK 
// parameters, see the library documentation. 

#define UICNTL7 0 // icntl(7). Block size for the blas (machine-dependent).
#define UICNTL5 0 // icntl(5). Number of columns to examine during pivot search.
#define UCNTL2  0 // cntl(2). Amalgamation parameter.
#define UKEEP7  0 // keep(7). Absolute number of elements a column must have
                  // to be considered "dense".
#define UKEEP8  0 // keep(8). Relative number of elements a column must have
                  // to be considered "dense". Dense columns have more
                  // than max{0,UMFABDEN,UMFREDEN*sqrt(n)} elements.

// Line length used when reading a dense matrix from a file.

#define LINELEN 256

// Linkage names between C, C++, and Fortran (platform dependent)

#if  defined(RIOS) && !defined(CLAPACK)
#define F77NAME(x) x
#else
// #include <generic.h> 
// #define F77NAME(x) name2(x,_)
#define F77NAME(x) x ## _
#endif

#if defined(SGI) && !defined(SGI_DEC)
#define SGI_DEC

extern "C" {
	void mkidxname() {}
	void mkdatname() {}
}
#endif


// Type conversion.

typedef int ARint;
typedef int ARlogical;

#ifdef __SUNPRO_CC

  typedef int bool;
  int true  = 1;
  int false = 0;

#endif


#endif // ARCH_H