• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..18-Jun-2018-

DDDDM_D.template.ccH A D18-Jun-20184.7 KiB161120

DDDD_D.template.ccH A D18-Jun-20183.7 KiB12689

DDDM_D.template.ccH A D18-Jun-20184.5 KiB156115

DDD_D.template.ccH A D18-Jun-20183.4 KiB12184

DDM_D.template.ccH A D18-Jun-20184.2 KiB151110

DD_D.template.ccH A D18-Jun-20183.1 KiB11679

DEPRECATEDH A D18-Jun-2018176 65

DI_D.template.ccH A D18-Jun-20183.7 KiB13594

DM_D.template.ccH A D18-Jun-20183.4 KiB13196

D_D.template.ccH A D18-Jun-20182.4 KiB9665

IDD_D.template.ccH A D18-Jun-20184 KiB14099

ID_D.template.ccH A D18-Jun-20183.7 KiB13594

IIDD_D.template.ccH A D18-Jun-20184.8 KiB164119

IID_D.template.ccH A D18-Jun-20184.5 KiB159114

IIIIIIIII_D.template.ccH A D18-Jun-201810.1 KiB322249

IIIIII_D.template.ccH A D18-Jun-20187.6 KiB250189

I_D.template.ccH A D18-Jun-20182.9 KiB11580

LDD_DD_array.template.ccH A D18-Jun-20182.8 KiB10275

LDD_D_array.template.ccH A D18-Jun-20182.7 KiB9871

LD_DD_array.template.ccH A D18-Jun-20182.7 KiB9974

LD_D_array.template.ccH A D18-Jun-20182.6 KiB9570

LID_DD_array.template.ccH A D18-Jun-20183.5 KiB12497

LID_D_array.template.ccH A D18-Jun-20183.3 KiB12093

LLD_DD_array.template.ccH A D18-Jun-20183.5 KiB12497

LLD_D_array.template.ccH A D18-Jun-20183.3 KiB12093

Makefile.inH A D18-Jun-20181 KiB3611

NSDD_DDD_array.template.ccH A D18-Jun-20184.3 KiB142113

NSDD_DD_array.template.ccH A D18-Jun-20184.1 KiB139110

NSDD_D_array.template.ccH A D18-Jun-20183.9 KiB134105

READMEH A D18-Jun-20182.1 KiB6953

UU_D.template.ccH A D18-Jun-20184.3 KiB154109

U_D.template.ccH A D18-Jun-20183 KiB11580

bootstrapH A D18-Jun-20184.9 KiB15882

buildgsl_sf.shH A D18-Jun-201875.6 KiB2,6571,802

config.h.inH A D18-Jun-201818.4 KiB576384

configureH A D18-Jun-2018221 KiB8,3306,955

configure.acH A D18-Jun-201827.7 KiB435405

configure.ac.inH A D18-Jun-20183.8 KiB135109

generate_array_template.shH A D18-Jun-20189.1 KiB326243

generate_template.shH A D18-Jun-20189.7 KiB369268

gsl_sf.ccH A D03-May-2022962.1 KiB34,52824,614

gsl_sf.header.ccH A D18-Jun-20182.2 KiB8858

replace_template.shH A D18-Jun-2018760 2819

README

1Wrapper for the GNU Scientific Library special functions.
2
3GSL special functions are automatically generated.
4
5When a new version of GSL comes out with new functions,
6add the octave name, the GSL name and the documentation
7string to buildgsl_sf.sh.
8
9To protect against users having an older version of GSL
10installed, you will also need to test for these new
11functions in configure.add, listing as missing any that
12are not available.  If several functions are added by one
13release of GSL you only need to test for one and list the rest.
14Trim gsl_sf_ from the name when listing it as missing.
15
16Each new definition will look like the following:
17
18   if test -n "${missing##* FN *}"; then
19   export octave_name=FN
20   export funcname=gsl_sf_FN
21   cat <<EOF > docstring.txt
22   FN_DESCRIPTION
23   EOF
24   ./replace_template.sh INPUTS_to_double.template >> gsl_sf.cc
25   fi
26
27Replace FN, gsl_sf_FN, FN_DESCRIPTION and INPUTS as appropriate.
28
29There are several different templates to use depending
30on the inputs to the special function.  For example, if
31the function takes two doubles and returns a double, use
32the double_double_to_double.cc template.
33
34To see the available templates, use:
35
36	ls *template
37
38As of this writing there are:
39
40	double fn(unsigned int)
41	double fn(unsigned int, unsigned int)
42	double fn(int)
43	double fn(int,double)
44	double fn(int,double,double)
45	double fn(int,int,double)
46	double fn(int,int,double,double)
47	double fn(double)
48	double fn(double,mode)
49	double fn(double,double)
50	double fn(double,double,mode)
51	double fn(double,double,double)
52	double fn(double,double,double,mode)
53	double fn(double,double,double,double)
54	double fn(double,double,double,double,mode)
55
56mode is a precision mode accepting a gsl_mode_t value.
57
58If there is not appropriate template, you will have
59to write your own, or write a specialized C++ function
60for the new form.
61
62Note that GSL special functions have an _e form which
63returns an estimate of the absolute error of the
64returned value.  These are handled automatically by
65the templates.  If there is no _e form available you
66will need to write a specialized template for the
67function.
68
69