DETMON Pipeline Reference Manual
1.2.4
Main Page
Modules
Files
File List
irplib
irplib_polynomial.h
1
/* $Id: irplib_polynomial.h,v 1.10 2013/01/29 08:43:33 jtaylor Exp $
2
*
3
* This file is part of the ESO Common Pipeline Library
4
* Copyright (C) 2007 European Southern Observatory
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
19
*/
20
21
/*
22
* $Author: jtaylor $
23
* $Date: 2013/01/29 08:43:33 $
24
* $Revision: 1.10 $
25
* $Name: detmon-1_2_4 $
26
*/
27
28
#ifndef IRPLIB_POLYNOMIAL_H
29
#define IRPLIB_POLYNOMIAL_H
30
31
/*-----------------------------------------------------------------------------
32
Includes
33
-----------------------------------------------------------------------------*/
34
35
#include <cpl.h>
36
37
/*-----------------------------------------------------------------------------
38
Function prototypes
39
-----------------------------------------------------------------------------*/
40
41
/* TEMPORARY SUPPORT OF CPL 5.x */
42
#ifndef CPL_SIZE_FORMAT
43
#define CPL_SIZE_FORMAT "d"
44
#define cpl_size int
45
#endif
46
47
#if defined CPL_VERSION_CODE && CPL_VERSION_CODE > CPL_VERSION(5, 92, 0)
48
#define irplib_polynomial_add cpl_polynomial_add
49
#define irplib_polynomial_subtract cpl_polynomial_subtract
50
#define irplib_polynomial_multiply_scalar cpl_polynomial_multiply_scalar
51
#else
52
cpl_error_code
irplib_polynomial_add
(cpl_polynomial *,
53
const
cpl_polynomial *,
54
const
cpl_polynomial *);
55
56
cpl_error_code
irplib_polynomial_subtract
(cpl_polynomial *,
57
const
cpl_polynomial *,
58
const
cpl_polynomial *);
59
60
cpl_error_code
irplib_polynomial_multiply_scalar
(cpl_polynomial *,
61
const
cpl_polynomial *,
62
double
);
63
#endif
64
65
/* END TEMPORARY SUPPORT OF CPL 5.x */
66
67
cpl_error_code
irplib_polynomial_solve_1d_all
(
const
cpl_polynomial *,
68
cpl_vector *, cpl_size *);
69
70
#endif
Generated by
1.8.1.1