-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include call to R_registerRoutines. CRAN NOTE not solved yet.
- Loading branch information
Showing
5 changed files
with
41 additions
and
3 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
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,26 @@ | ||
// RegisteringDynamic Symbols | ||
|
||
#include <R.h> | ||
#include <Rinternals.h> | ||
#include <R_ext/Rdynload.h> | ||
#include <R_ext/RS.h> | ||
#include "f.h" | ||
|
||
static R_FortranMethodDef fortranMethods[] = { | ||
{"bestmatches", (DL_FUNC) &F77_SUB(bestmatches), 11}, | ||
{"computecost", (DL_FUNC) &F77_SUB(computecost), 7}, | ||
{"g", (DL_FUNC) &F77_SUB(g), 4}, | ||
{"tracepath", (DL_FUNC) &F77_SUB(tracepath), 11}, | ||
{NULL, NULL, 0} | ||
}; | ||
|
||
void | ||
#ifdef HAVE_VISIBILITY_ATTRIBUTE | ||
__attribute__ ((visibility ("default"))) | ||
#endif | ||
R_init_dtwSat(DllInfo *dll) { | ||
R_registerRoutines(dll, NULL, NULL, fortranMethods, NULL); | ||
R_useDynamicSymbols(dll, FALSE); | ||
} | ||
|
||
|
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,13 @@ | ||
|
||
void F77_SUB(computecost) | ||
(double *CM, int *DM, int *VM, int *SM, int *N, int *M, int *NS); | ||
|
||
void F77_SUB(bestmatches) | ||
(int *XM, double *AM, double *DM, int *DP, int *X, int *IM, int *A, int *K, int *P, int *L, double *OV); | ||
|
||
void F77_SUB(g) | ||
(double *TM, int *N, int *M, double *PC); | ||
|
||
void F77_SUB(tracepath) | ||
(double *DM, double *SM, double *JMIN, double *IND1, double *IND2, double *POS, int *N, int *M, int *NS, int *NJ, int *AL); | ||
|