GIRAFFE Pipeline Reference Manual

gimatrix.h

00001 /* $Id: gimatrix.h,v 1.12 2010/08/06 12:42:04 rpalsa Exp $
00002  *
00003  * This file is part of the GIRAFFE Pipeline
00004  * Copyright (C) 2002-2006 European Southern Observatory
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019  */
00020 
00021 /*
00022  * $Author: rpalsa $
00023  * $Date: 2010/08/06 12:42:04 $
00024  * $Revision: 1.12 $
00025  * $Name: giraffe-2_9 $
00026  */
00027 
00028 #ifndef GIMATRIX_H
00029 #define GIMATRIX_H
00030 
00031 #include <cxtypes.h>
00032 
00033 #include <cpl_macros.h>
00034 #include <cpl_matrix.h>
00035 #include <cpl_image.h>
00036 
00037 
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041 
00042 
00043     /*
00044      * Matrix utilities
00045      */
00046 
00047     cxdouble giraffe_matrix_sigma_mean(const cpl_matrix*, cxdouble);
00048     cxdouble giraffe_matrix_sigma_fit(const cpl_matrix*,
00049                                       const cpl_matrix*);
00050     cxint giraffe_matrix_sort(cpl_matrix*);
00051 
00052     cpl_matrix *giraffe_matrix_leastsq(const cpl_matrix*,
00053                                        const cpl_matrix*);
00054 
00055     cpl_matrix*
00056     giraffe_matrix_solve_cholesky(const cpl_matrix* A, const cpl_matrix* b,
00057                                   const cpl_matrix* Cb, cpl_matrix* Cx);
00058 
00059     cxint giraffe_matrix_clear(cpl_matrix* matrix);
00060 
00061     void giraffe_matrix_dump(const cpl_matrix* matrix, cxint max_rows);
00062 
00063 
00064     /*
00065      * Matrix conversions
00066      */
00067 
00068     cpl_image *giraffe_matrix_create_image(const cpl_matrix* matrix);
00069 
00070 
00071 #ifdef __cplusplus
00072 }
00073 #endif
00074 
00075 #endif /* GIMATRIX_H */

This file is part of the GIRAFFE Pipeline Reference Manual 2.9.0.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Jan 26 14:20:28 2012 by doxygen 1.6.3 written by Dimitri van Heesch, © 1997-2004