GIRAFFE Pipeline Reference Manual

gimatrix.h
1/*
2 * This file is part of the GIRAFFE Pipeline
3 * Copyright (C) 2002-2019 European Southern Observatory
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#ifndef GIMATRIX_H
21#define GIMATRIX_H
22
23#include <cxtypes.h>
24
25#include <cpl_macros.h>
26#include <cpl_matrix.h>
27#include <cpl_image.h>
28
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34
35 /*
36 * Matrix utilities
37 */
38
39 cxdouble giraffe_matrix_sigma_mean(const cpl_matrix*, cxdouble);
40 cxdouble giraffe_matrix_sigma_fit(const cpl_matrix*,
41 const cpl_matrix*);
42 cxint giraffe_matrix_sort(cpl_matrix*);
43
44 cpl_matrix *giraffe_matrix_leastsq(const cpl_matrix*,
45 const cpl_matrix*);
46
47 cpl_matrix*
48 giraffe_matrix_solve_cholesky(const cpl_matrix* A, const cpl_matrix* b,
49 const cpl_matrix* Cb, cpl_matrix* Cx);
50
51 cxint giraffe_matrix_clear(cpl_matrix* matrix);
52
53 void giraffe_matrix_dump(const cpl_matrix* matrix, cxint max_rows);
54
55
56 /*
57 * Matrix conversions
58 */
59
60 cpl_image *giraffe_matrix_create_image(const cpl_matrix* matrix);
61
62
63#ifdef __cplusplus
64}
65#endif
66
67#endif /* GIMATRIX_H */
cxint giraffe_matrix_clear(cpl_matrix *matrix)
Set all elements of a matrix to zero.
Definition: gimatrix.c:796
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:579
void giraffe_matrix_dump(const cpl_matrix *matrix, cxint max_rows)
Output a maximum number of rows of the input matrix.
Definition: gimatrix.c:836
cpl_image * giraffe_matrix_create_image(const cpl_matrix *matrix)
Converts a matrix into an image.
Definition: gimatrix.c:337
cxdouble giraffe_matrix_sigma_fit(const cpl_matrix *, const cpl_matrix *)
Compute sigma of matrix fit.
Definition: gimatrix.c:275
cpl_matrix * giraffe_matrix_leastsq(const cpl_matrix *, const cpl_matrix *)
Computes the solution of an equation using a pseudo-inverse.
Definition: gimatrix.c:503
cxint giraffe_matrix_sort(cpl_matrix *)
Sort in place the matrix elements in ascending order.
Definition: gimatrix.c:380
cxdouble giraffe_matrix_sigma_mean(const cpl_matrix *, cxdouble)
Compute sigma of matrix elements, with a given mean value.
Definition: gimatrix.c:229

This file is part of the GIRAFFE Pipeline Reference Manual 2.19.1.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Jul 17 2025 09:27:30 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2004