Skip to content

Commit ef0d8b4

Browse files
committed
reg dyn sym
1 parent 174ecbb commit ef0d8b4

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: pmclust
2-
Version: 0.1-9
3-
Date: 2016-12-17
2+
Version: 0.2-0
3+
Date: 2017-04-23
44
Title: Parallel Model-Based Clustering using
55
Expectation-Gathering-Maximization Algorithm for Finite Mixture
66
Gaussian Model

src/zzz.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include <R.h>
2+
#include <R_ext/Rdynload.h>
3+
4+
#include "zzz.h"
5+
6+
static const R_CallMethodDef callMethods[] = {
7+
{"W_plus_y_k", (DL_FUNC) &W_plus_y_k, 5},
8+
{"W_plus_y", (DL_FUNC) &W_plus_y, 4},
9+
10+
/* Finish R_CallMethodDef. */
11+
{NULL, NULL, 0}
12+
};
13+
/* End of the callMethods[]. */
14+
15+
16+
void R_init_pmclust(DllInfo *info){
17+
R_registerRoutines(info, NULL, callMethods, NULL, NULL);
18+
R_useDynamicSymbols(info, TRUE);
19+
} /* End of R_init_pmclust(). */

src/zzz.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include <R.h>
2+
#include <Rinternals.h>
3+
4+
SEXP W_plus_y_k(SEXP R_W, SEXP R_y, SEXP R_nrow, SEXP R_ncol, SEXP R_i_k);
5+
SEXP W_plus_y(SEXP R_W, SEXP R_y, SEXP R_nrow, SEXP R_ncol);
6+

0 commit comments

Comments
 (0)