Skip to content

Commit

Permalink
nn.cpp stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
doserjef committed Apr 17, 2024
1 parent 22bf607 commit 7509960
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/nn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ extern "C" {

int i, iNNIndx, iNN;

// int *sIndx = new int[n];
// double *u = new double[n];
int *sIndx = (int *) R_alloc(n, sizeof(int));
double *u = (double *) R_alloc(n, sizeof(double));
int *sIndx = new int[n];
double *u = new double[n];
// int *sIndx = (int *) R_alloc(n, sizeof(int));
// double *u = (double *) R_alloc(n, sizeof(double));

for(i = 0; i < n; i++){
sIndx[i] = i;
Expand Down

0 comments on commit 7509960

Please sign in to comment.