* Spline missing functions patch
@ 2005-11-08 9:39 Stewart V. Wright
2005-12-12 16:12 ` Brian Gough
0 siblings, 1 reply; 2+ messages in thread
From: Stewart V. Wright @ 2005-11-08 9:39 UTC (permalink / raw)
To: GSL Discuss List
[-- Attachment #1.1: Type: text/plain, Size: 372 bytes --]
Hi,
I've been looking at the interpolation section and I've noticed that
there are the functions
- gsl_interp_name
- gsl_interp_min_size
but no equivalents for gsl_spline.
I know it is a minor issue, but I've attached a patch adding these two
functions for gsl_spine. Basically they are just interfaces to the
gsl_interp functions.
Cheers,
S.
[-- Attachment #1.2: gsl-svw-071105.diff --]
[-- Type: text/plain, Size: 2175 bytes --]
Index: doc/interp.texi
===================================================================
RCS file: /cvs/gsl/gsl/doc/interp.texi,v
retrieving revision 1.28
diff -u -r1.28 doc/interp.texi
--- doc/interp.texi 21 May 2005 13:29:02 -0000 1.28
+++ doc/interp.texi 7 Nov 2005 20:05:38 -0000
@@ -208,6 +208,12 @@
@deftypefun void gsl_spline_free (gsl_spline * @var{spline})
@end deftypefun
+@deftypefun {const char *} gsl_spline_name (const gsl_spline * @var{spline})
+@end deftypefun
+
+@deftypefun {unsigned int} gsl_spline_min_size (const gsl_spline * @var{spline})
+@end deftypefun
+
@deftypefun double gsl_spline_eval (const gsl_spline * @var{spline}, double @var{x}, gsl_interp_accel * @var{acc})
@deftypefunx int gsl_spline_eval_e (const gsl_spline * @var{spline}, double @var{x}, gsl_interp_accel * @var{acc}, double * @var{y})
@end deftypefun
Index: interpolation/gsl_spline.h
===================================================================
RCS file: /cvs/gsl/gsl/interpolation/gsl_spline.h,v
retrieving revision 1.4
diff -u -r1.4 interpolation/gsl_spline.h
--- interpolation/gsl_spline.h 26 Jun 2005 13:27:03 -0000 1.4
+++ interpolation/gsl_spline.h 7 Nov 2005 20:05:38 -0000
@@ -49,6 +49,9 @@
int
gsl_spline_init(gsl_spline * spline, const double xa[], const double ya[], size_t size);
+const char * gsl_spline_name(const gsl_spline * spline);
+unsigned int gsl_spline_min_size(const gsl_spline * spline);
+
int
gsl_spline_eval_e(const gsl_spline * spline, double x,
Index: interpolation/spline.c
===================================================================
RCS file: /cvs/gsl/gsl/interpolation/spline.c,v
retrieving revision 1.5
diff -u -r1.5 interpolation/spline.c
--- interpolation/spline.c 26 Jun 2005 13:27:03 -0000 1.5
+++ interpolation/spline.c 7 Nov 2005 20:05:38 -0000
@@ -83,6 +83,18 @@
}
}
+const char *
+gsl_spline_name(const gsl_spline * spline)
+{
+ return gsl_interp_name(spline->interp);
+}
+
+unsigned int
+gsl_spline_min_size(const gsl_spline * spline)
+{
+ return gsl_interp_min_size(spline->interp);
+}
+
void
gsl_spline_free (gsl_spline * spline)
{
[-- Attachment #2: Type: application/pgp-signature, Size: 274 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Spline missing functions patch
2005-11-08 9:39 Spline missing functions patch Stewart V. Wright
@ 2005-12-12 16:12 ` Brian Gough
0 siblings, 0 replies; 2+ messages in thread
From: Brian Gough @ 2005-12-12 16:12 UTC (permalink / raw)
To: Stewart V. Wright; +Cc: GSL Discuss List
Stewart V. Wright writes:
> I've been looking at the interpolation section and I've noticed that
> there are the functions
>
> - gsl_interp_name
> - gsl_interp_min_size
>
> but no equivalents for gsl_spline.
>
> I know it is a minor issue, but I've attached a patch adding these two
> functions for gsl_spine. Basically they are just interfaces to the
> gsl_interp functions.
Thanks for the patch, I will put that in the next release.
--
Brian Gough
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-12 16:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-08 9:39 Spline missing functions patch Stewart V. Wright
2005-12-12 16:12 ` Brian Gough
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).