GIRAFFE Pipeline Reference Manual

gimatrix.h
1 /* $Id$
2  *
3  * This file is part of the GIRAFFE Pipeline
4  * Copyright (C) 2002-2006 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 02110-1301 USA
19  */
20 
21 /*
22  * $Author$
23  * $Date$
24  * $Revision$
25  * $Name$
26  */
27 
28 #ifndef GIMATRIX_H
29 #define GIMATRIX_H
30 
31 #include <cxtypes.h>
32 
33 #include <cpl_macros.h>
34 #include <cpl_matrix.h>
35 #include <cpl_image.h>
36 
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 
43  /*
44  * Matrix utilities
45  */
46 
47  cxdouble giraffe_matrix_sigma_mean(const cpl_matrix*, cxdouble);
48  cxdouble giraffe_matrix_sigma_fit(const cpl_matrix*,
49  const cpl_matrix*);
50  cxint giraffe_matrix_sort(cpl_matrix*);
51 
52  cpl_matrix *giraffe_matrix_leastsq(const cpl_matrix*,
53  const cpl_matrix*);
54 
55  cpl_matrix*
56  giraffe_matrix_solve_cholesky(const cpl_matrix* A, const cpl_matrix* b,
57  const cpl_matrix* Cb, cpl_matrix* Cx);
58 
59  cxint giraffe_matrix_clear(cpl_matrix* matrix);
60 
61  void giraffe_matrix_dump(const cpl_matrix* matrix, cxint max_rows);
62 
63 
64  /*
65  * Matrix conversions
66  */
67 
68  cpl_image *giraffe_matrix_create_image(const cpl_matrix* matrix);
69 
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif /* GIMATRIX_H */
cxdouble giraffe_matrix_sigma_mean(const cpl_matrix *, cxdouble)
Compute sigma of matrix elements, with a given mean value.
Definition: gimatrix.c:237
cpl_matrix * giraffe_matrix_solve_cholesky(const cpl_matrix *A, const cpl_matrix *b, const cpl_matrix *Cb, cpl_matrix *Cx)
Solve a linear system using the Cholesky decomposition.
Definition: gimatrix.c:587
cxint giraffe_matrix_sort(cpl_matrix *)
Sort in place the matrix elements in ascending order.
Definition: gimatrix.c:388
cpl_matrix * giraffe_matrix_leastsq(const cpl_matrix *, const cpl_matrix *)
Computes the solution of an equation using a pseudo-inverse.
Definition: gimatrix.c:511
void giraffe_matrix_dump(const cpl_matrix *matrix, cxint max_rows)
Output a maximum number of rows of the input matrix.
Definition: gimatrix.c:844
cxdouble giraffe_matrix_sigma_fit(const cpl_matrix *, const cpl_matrix *)
Compute sigma of matrix fit.
Definition: gimatrix.c:283
cxint giraffe_matrix_clear(cpl_matrix *matrix)
Set all elements of a matrix to zero.
Definition: gimatrix.c:804
cpl_image * giraffe_matrix_create_image(const cpl_matrix *matrix)
Converts a matrix into an image.
Definition: gimatrix.c:345

This file is part of the GIRAFFE Pipeline Reference Manual 2.14.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Wed Mar 11 2015 13:19:41 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2004