Logo Tesseroids 1.0: User Manual and API Documentation

src/c/glq.h

Go to the documentation of this file.
00001 /* *****************************************************************************
00002 Copyright 2011 Leonardo Uieda
00003 
00004 Tesseroids is free software: you can redistribute it and/or modify
00005 it under the terms of the GNU General Public License as published by
00006 the Free Software Foundation, either version 3 of the License, or
00007 (at your option) any later version.
00008 
00009 Tesseroids is distributed in the hope that it will be useful,
00010 but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 GNU General Public License for more details.
00013 
00014 You should have received a copy of the GNU General Public License
00015 along with Tesseroids.  If not, see <http://www.gnu.org/licenses/>.
00016 ***************************************************************************** */
00017 
00077 #ifndef _TESSEROIDS_GLQ_H_
00078 #define _TESSEROIDS_GLQ_H_
00079 
00080 
00083 extern const int GLQ_MAXIT;
00084 
00085 
00088 extern const double GLQ_MAXERROR;
00089 
00090 
00092 typedef struct glq_struct
00093 {
00094     int order; 
00095     double *nodes; 
00096     double *weights; 
00097     double *nodes_unscaled; 
00098 } GLQ;
00099 
00100 
00115 extern GLQ * glq_new(int order, double lower, double upper);
00116 
00117 
00122 extern void glq_free(GLQ *glq);
00123 
00124 
00143 extern int glq_set_limits(double lower, double upper, GLQ *glq);
00144 
00145 
00163 extern int glq_nodes(int order, double *nodes);
00164 
00165 
00191 extern int glq_next_root(double initial, int root_index, int order,
00192                          double *roots);
00193 
00194 
00209 extern int glq_weights(int order, double *nodes, double *weights);
00210 
00211 #endif
Generated on Tue Apr 26 12:17:07 2011 for Tesseroids 1.0: User manual and API documentation by doxygen 1.6.3