ATLAS Offline Software
Loading...
Searching...
No Matches
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
41typedef struct {
42 double x, y, z;
43} fcoords;
44
45typedef struct {
46 long x, y, z;
47} lcoords;
48
49typedef struct {
50 double x, y, z;
51} icoords;
52
53typedef struct {
54 double min, max;
55} lims;
56
57/* grand tour history */
58typedef struct hist_rec {
59 struct hist_rec *prev, *next;
60 double *basis[3];
61 int pos;
63
64int dsvd(double **a, int m, int n, double *w, double **v);
65
66#endif //ALFA_SvdCalc_h
int dsvd(double **a, int m, int n, double *w, double **v)
static Double_t a
double z
double y
double x
double * basis[3]
struct hist_rec * prev
struct hist_rec * next
double z
double x
double y
double max
double min