Statistics
| Revision:

root / tmp / org.txm.statsengine.r.core.win32 / res / win32 / include / R_ext / stats_stubs.h @ 2486

History | View | Annotate | Download (2.3 kB)

1
/*
2
 *  R : A Computer Language for Statistical Data Analysis
3
 *  Copyright (C) 2007  The R Core Team.
4
 *
5
 *  This program is free software; you can redistribute it and/or modify
6
 *  it under the terms of the GNU Lesser General Public License as published by
7
 *  the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
14
 *
15
 *  You should have received a copy of the GNU Lesser General Public License
16
 *  along with this program; if not, a copy is available at
17
 *  http://www.r-project.org/Licenses/
18
 */
19

    
20
#include <Rconfig.h>
21
#include <Rinternals.h>
22
#include <R_ext/Rdynload.h>
23

    
24
#ifdef HAVE_VISIBILITY_ATTRIBUTE
25
# define attribute_hidden __attribute__ ((visibility ("hidden")))
26
#else
27
# define attribute_hidden
28
#endif
29

    
30
void attribute_hidden
31
S_Rf_divset(int alg, int iv[], int liv, int lv, double v[])
32
{
33
    static void(*fun)(int,int[],int,int,double[]) = NULL;
34
    if (fun == NULL)
35
        fun = (void(*)(int,int[],int,int,double[]))
36
            R_GetCCallable("stats", "Rf_divset");
37
    fun(alg, iv, liv, lv, v);
38
}
39

    
40
void attribute_hidden
41
S_nlminb_iterate(double b[], double d[], double fx, double g[], double h[],
42
                 int iv[], int liv, int lv, int n, double v[], double x[])
43
{
44
    static void(*fun)(double[],double[],double,double[],double[],
45
                      int[],int,int,int,double[],double[]) = NULL;
46
    if (fun == NULL)
47
        fun = (void(*)(double[],double[],double,double[],double[],
48
                          int[],int,int,int,double[],double[]))
49
            R_GetCCallable("stats", "nlminb_iterate");
50
    fun(b, d, fx, g, h, iv, liv, lv, n, v, x);
51
}
52

    
53
void attribute_hidden
54
S_nlsb_iterate(double b[], double d[], double dr[], int iv[], int liv,
55
               int lv, int n, int nd, int p, double r[], double rd[],
56
               double v[], double x[])
57
{
58
    static void(*fun)(double[],double[],double[],int[],int,int,
59
                      int,int,int,double[],double[],double[],
60
                      double[]) = NULL;
61
    if (fun == NULL)
62
        fun = (void(*)(double[],double[],double[],int[],int,
63
                       int, int,int,int,double[],
64
                       double[],double[],double[]))
65
            R_GetCCallable("stats", "nlsb_iterate");
66
    fun(b, d, dr, iv, liv, lv, n, nd, p, r, rd, v, x);
67
}
68