Skip to content

Commit

Permalink
Improvements in rounding and rotating R functions (GeomScale#76)
Browse files Browse the repository at this point in the history
* add seed in rotate_polytope and update Rd files

* update R rounding function to return the linear map

* fix rounding in V-poly
  • Loading branch information
TolisChal authored and vissarion committed May 18, 2020
1 parent c38fafc commit b760b92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R-proj/src/rotating.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ Rcpp::NumericMatrix rotating (Rcpp::Reference P, Rcpp::Nullable<Rcpp::NumericMat

int seed2 = (!seed.isNotNull()) ? std::chrono::system_clock::now().time_since_epoch().count() : Rcpp::as<int>(seed);

int seed2 = (!seed.isNotNull()) ? std::chrono::system_clock::now().time_since_epoch().count() : Rcpp::as<int>(seed);

switch (type) {
case 1: {
// Hpolytope
Expand Down

0 comments on commit b760b92

Please sign in to comment.