Skip to content

Commit

Permalink
correcting an error
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyGelb committed May 12, 2024
1 parent eab3ece commit df7e9a0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/matrices_functions.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
#include "spNetwork.h"

// a simple function to create a vector of values between a start and an end with defined step
std::vector<double> seq_num(double start, double end, double step){

std::vector<double> values;
double cumul = 0 - step;
while(cumul+step < end){
cumul+=step;
values.push_back(cumul);
}
return values;
}

// a simple function to create a vector of values between a start and an end with defined step
// [[Rcpp::export]]
std::vector<double> seq_num2(double start, double end, double step){
Expand Down

0 comments on commit df7e9a0

Please sign in to comment.