From a796a38799c4ae21c1927cbdef56d653206aca53 Mon Sep 17 00:00:00 2001 From: daniel Date: Sun, 25 Aug 2019 16:51:37 +0200 Subject: [PATCH] sync --- runtime_tests_grad.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/runtime_tests_grad.cpp b/runtime_tests_grad.cpp index a3571d0..206c7c9 100644 --- a/runtime_tests_grad.cpp +++ b/runtime_tests_grad.cpp @@ -7,6 +7,9 @@ // > sourceCpp('runtime_tests_grad.cpp') // +// // #define ARMA_DONT_USE_WRAPPER +// #define ARMA_DONT_USE_BLAS + // [[Rcpp::depends(RcppArmadillo)]] #include #include @@ -102,7 +105,7 @@ arma::mat grad(const arma::mat& X, } } - // weighted first, secend order responce means `y1`, `y2` + // weighted first, second order responce means `y1`, `y2` // and component wise Loss `L(i) = L_n(V, X_i)` vec y1(n); vec y2(n); @@ -376,7 +379,7 @@ setup.tests <- function () { } mbm <- microbenchmark( arma = arma_grad(X, X_diff, Y, Y_rep, V, h), - grad = grad(Xt, Y, V, h), + # grad = grad(Xt, Y, V, h), grad_p = grad_p(Xt, Y, V, h), check = comp.all, setup = setup.tests(),