Skip to content

Commit

Permalink
Remove Rprintf statement entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
alanocallaghan committed Mar 6, 2024
1 parent b709801 commit 55af5a7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/densvis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ Rcpp::NumericMatrix densne_cpp(

size_t N = X.ncol(), D = X.nrow();
double * data=X.begin();

if (verbose) {
Rprintf("Read the %i x %llu data matrix successfully!\n", N, D);
}

std::vector<double> Y(N * no_dims), costs(N), itercosts(static_cast<int>(std::ceil(max_iter/50.0)));

Expand All @@ -39,7 +35,7 @@ Rcpp::NumericMatrix densne_cpp(
for (size_t i = 0; i < Y.size(); i++) Y[i] = Y_in[i];
if (verbose) Rprintf("Using user supplied starting positions\n");
}

double* dens = NULL;
if (final_dens) {
dens = (double*) malloc(N * 2 * sizeof(double));
Expand Down

0 comments on commit 55af5a7

Please sign in to comment.