ATLAS Offline Software
ALFA_SvdCalc.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /************************************************************
6  * *
7  * Permission is hereby granted to any individual or *
8  * institution for use, copying, or redistribution of *
9  * this code and associated documentation, provided *
10  * that such code and documentation are not sold for *
11  * in the code and documentation: *
12  * All Rights Reserved. *
13  * *
14  * Questions and comments are welcome, and I request *
15  * that you share any modifications with me. *
16  * *
17  * Dianne Cook *
18  * dicook@iastate.edu *
19  * *
20  ************************************************************/
21 
22 #ifndef ALFA_SvdCalc_h
23 #define ALFA_SvdCalc_h 1
24 
25 #define PRECISION1 32768
26 #define PRECISION2 16384
27 #define MIN(x,y) ( (x) < (y) ? (x) : (y) )
28 #define MAX(x,y) ((x)>(y)?(x):(y))
29 #define SIGN(a, b) ((b) >= 0.0 ? fabs(a) : -fabs(a))
30 #define MAXINT 2147483647
31 #define ASCII_TEXT_BORDER_WIDTH 4
32 #define MAXHIST 100
33 #define STEP0 0.01
34 #define FORWARD 1
35 #define BACKWARD -1
36 #define PROJ_DIM 5
37 #define True 1
38 #define False 0
39 
40 
41 typedef struct {
42  double x, y, z;
43 } fcoords;
44 
45 typedef struct {
46  long x, y, z;
47 } lcoords;
48 
49 typedef struct {
50  double x, y, z;
51 } icoords;
52 
53 typedef struct {
54  double min, max;
55 } lims;
56 
57 /* grand tour history */
58 typedef struct hist_rec {
59  struct hist_rec *prev, *next;
60  double *basis[3];
61  int pos;
63 
64 int dsvd(double **a, int m, int n, double *w, double **v);
65 
66 #endif //ALFA_SvdCalc_h
fcoords
Definition: ALFA_SvdCalc.h:41
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
max
#define max(a, b)
Definition: cfImp.cxx:41
dsvd
int dsvd(double **a, int m, int n, double *w, double **v)
Definition: ALFA_SvdCalc.cxx:38
lims
Definition: ALFA_SvdCalc.h:53
hist_rec::pos
int pos
Definition: ALFA_SvdCalc.h:61
hist_rec::next
struct hist_rec * next
Definition: ALFA_SvdCalc.h:59
icoords::z
double z
Definition: ALFA_SvdCalc.h:50
lcoords::z
long z
Definition: ALFA_SvdCalc.h:46
icoords
Definition: ALFA_SvdCalc.h:49
hist_rec::prev
struct hist_rec * prev
Definition: ALFA_SvdCalc.h:59
x
#define x
beamspotman.n
n
Definition: beamspotman.py:731
lcoords
Definition: ALFA_SvdCalc.h:45
hist_rec
Definition: ALFA_SvdCalc.h:58
hist_rec
struct hist_rec hist_rec
python.PyAthena.v
v
Definition: PyAthena.py:157
a
TList * a
Definition: liststreamerinfos.cxx:10
y
#define y
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
lims::min
double min
Definition: ALFA_SvdCalc.h:54
hist_rec::basis
double * basis[3]
Definition: ALFA_SvdCalc.h:60
fcoords::z
double z
Definition: ALFA_SvdCalc.h:42