-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Registering native routines for R 3.4
- Loading branch information
1 parent
efe7915
commit 231adc8
Showing
4 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Package: pse | ||
Type: Package | ||
Title: Parameter Space Exploration with Latin Hypercubes | ||
Version: 0.4.6 | ||
Date: 2016-07-19 | ||
Version: 0.4.7 | ||
Date: 2017-06-11 | ||
Author: Andre Chalom, Paulo Inacio Knegt Lopez de Prado | ||
Maintainer: Andre Chalom <[email protected]> | ||
Depends: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include <stdlib.h> | ||
#include <R_ext/Rdynload.h> | ||
#include <Rinternals.h> | ||
|
||
void corcorr (double *vars, double *cor, int * N, int * M, int * l, int * FLAGSTOP); | ||
|
||
/* Registering native routine for R 3.4.0 */ | ||
static R_NativePrimitiveArgType C_types[] = { | ||
REALSXP, REALSXP, INTSXP, INTSXP, INTSXP, INTSXP | ||
}; | ||
|
||
static const R_CMethodDef cMethods[] = { | ||
{"corcorr", (DL_FUNC) &corcorr, 6, C_types}, | ||
{NULL, NULL, 0, NULL} | ||
}; | ||
|
||
void R_init_pse(DllInfo *dll) { | ||
R_registerRoutines(dll, cMethods, NULL, NULL, NULL); | ||
R_useDynamicSymbols(dll, FALSE); | ||
R_forceSymbols(dll, TRUE); | ||
} |