Forum: help
Monitor Forum | Start New ThreadAmoxicillin Overdose Cats smasiajed [ Reply ] By: advittick mamePrereBm on 2020-07-04 07:08 | [forum:47909] |
Lasix Drug Interaction https://bbuycialisss.com/ - cialis online no prescription Symptoms Of Amoxicillin Overdose <a href=https://bbuycialisss.com/#>buy cialis without presc</a> Cialis Et Psa |
RE: How can I call a function in RcppArmadillo to R? [ Reply ] By: angela mo on 2017-04-17 09:42 | [forum:45096] |
I hope you can find the solution on these tools: links:[url=http://www.passwordmanagers.net/Best-Password-Manager-App.html]Best Password Manager App[/url] [url=http://www.passwordmanagers.net/Best-Password-Keeper.html]Password Manager App[/url] [url=http://www.passwordmanagers.net/Free-Password-Managers.html]The Most Secure Password Manager[/url] [url=http://www.passwordmanagers.net/Top-Password-Manager.html]Safest Password Manager[/url] |
RE: How can I call a function in RcppArmadillo to R? [ Reply ] By: rosan wei on 2016-11-18 07:21 | [forum:43705] |
Dear R-community, I hope this message finds you well. I am trying to solve an optimization problem formulated as a Mixed Integer Program in which there are indicator functions in the objective function and in some constraints. To be more specific, consider the following optimization problem where x1 and x2 are the decision variables: http://www.passwordmanagers.net/resources/Online-Zip-Password-Recovery-Software-39.html Forget WinZip Password Can I Recover http://www.passwordmanagers.net/resources/windows-7-administrator-password-reset-tool-40.html windows 7 administrator password reset tool http://www.passwordmanagers.net/resources/best-password-manager-for-windows-41.html best password manager for windows |
How can I call a function in RcppArmadillo to R? [ Reply ] By: kokia z on 2016-11-02 09:16 | [forum:43603] |
I want to call a kronecker function, the corresponding file in the fn_kron.hpp file are: 1) In "R": Rcpparma_hello_world <- function () { .Call ( 'fn_kron_hpp_rcpparma_hello_world', PACKAGE = 'fn_kron.hpp') }} Rcpparma_outerproduct <- function (x) { .Call ( 'fn_kron_hpp_rcpparma_outerproduct', PACKAGE = 'fn_kron.hpp', x) }} 2) "src": #Include <Rcpp.h> Using namespace Rcpp; // rcpparma_hello_world Arma :: mat rcpparma_hello_world (); RcppExport SEXP fn_kron_hpp_rcpparma_hello_world () { BEGIN_RCPP Rcpp :: RObject rcpp_result_gen; Rcpp :: RNGScope rcpp_rngScope_gen; Rcpp_result_gen = Rcpp :: wrap (rcpparma_hello_world ()); Return rcpp_result_gen; END_RCPP }} // rcpparma_outerproduct Arma :: mat rcpparma_outerproduct (const arma :: colvec & x); RcppExport SEXP fn_kron_hpp_rcpparma_outerproduct (SEXP xSEXP) { BEGIN_RCPP Rcpp :: RObject rcpp_result_gen; Rcpp :: RNGScope rcpp_rngScope_gen; Rcpp :: traits :: input_parameter <const arma :: colvec &> :: type x (xSEXP); Rcpp_result_gen = Rcpp :: wrap (rcpparma_outerproduct (x)); Return rcpp_result_gen; END_RCPP }} 3)"man" includes rcpparma_hello_world.Rd and fn_kron.hpp-package.Rd two documents. # ================================================= So now the question is that I not know how to call the function in R ? Library (RcppArmadillo) Ws <- .Call ( 'fn_kron_hpp_rcpparma_outerproduct', PACKAGE = 'fn_kron.hpp', listw) Note: I used the R kronecker function, the code is as follows: I_T <- Diagonal (T) Ws <- kronecker (I_T, listw) I do not understand what 'x' represents in . Call ( 'fn_kron_hpp_rcpparma_outerproduct', PACKAGE = 'fn_kron.hpp', x). Thanks for your help! |