[Rcpp-devel] Formatting of PDF manual of an R package using roxygen2

2020-07-06 Thread Shaami
Hi All Could you please guide how we can edit the .Rd files generated by roxygen2 for better formatting? I get the function and its input arguments into multiple lines in the PDF file. Also, I do not get \usage{} line in .Rd file for an Rcpp functions. An example of an .Rd file and its correspond

Re: [Rcpp-devel] uniroot problem

2019-12-28 Thread Shaami
Any suggestion plz. What could be missing that I donot get function root to be zero at some points? On Tue, 24 Dec 2019, 1:45 PM Shaami, wrote: > Dear Friends > > Could you please help with the following example? I do not get function > value at zero using uniroot() in R. Could

[Rcpp-devel] uniroot problem

2019-12-23 Thread Shaami
Dear Friends Could you please help with the following example? I do not get function value at zero using uniroot() in R. Could you suggest something? I want function value zero at any point like 2.4, 2.5, 2.6, 4.5, 5.9 etc. Thank You x = c(-100, -20, 100, 230, 500, 920, 1000) a = c(1000, 12, 300

Re: [Rcpp-devel] dmvnorm() of mvtnorm using RcppArmadillo

2019-12-19 Thread Shaami
mean, sigma, give_log)); } return f; } Thank you On Fri, Dec 20, 2019 at 12:19 AM Ralf Stubner wrote: > > > On Thu, Dec 19, 2019 at 8:01 AM Shaami wrote: > >> Environment pkg = Environment::namespace_env("mvtnorm"); >> Function dmvnorm = pkg[

Re: [Rcpp-devel] dmvnorm() of mvtnorm using RcppArmadillo

2019-12-18 Thread Shaami
ve_log)); } return f; } Thank You On Thu, Dec 19, 2019 at 7:57 PM Shaami wrote: > Dear Sir > > It compiles successfully. But when I use it I get an error message. > > > > On Thu, Dec 19, 2019 at 7:41 PM Shaami wrote: > >> Great. It worked. >>

Re: [Rcpp-devel] dmvnorm() of mvtnorm using RcppArmadillo

2019-12-18 Thread Shaami
Dear Sir It compiles successfully. But when I use it I get an error message. On Thu, Dec 19, 2019 at 7:41 PM Shaami wrote: > Great. It worked. > > Thank you very much > > On Thu, 19 Dec 2019, 6:01 PM Qiang Kou, wrote: > >> Please try the line below: >> >&g

[Rcpp-devel] dmvnorm() of mvtnorm using RcppArmadillo

2019-12-18 Thread Shaami
Hi Dear I want to use dmvnorm() function into an cpp function using RcppArmadillo I am trying to execute the following function. It gives me error cannot convert 'SEXP' to 'double' in assignment Could you please guide where I am wrong? #include using namespace Rcpp; using namespace RcppArmadil

[Rcpp-devel] 95% and 99% confidence bands using qqPlot() in car package

2018-07-29 Thread Shaami
Hi I want to use qqPlot() with 95 % and 99% confidence bands together in one single plot. Could you please guide me how to do that? By default, we can plot only one confidence band. I already acknowledge your help. Thank You Shaami ___ Rcpp-devel

[Rcpp-devel] 4-dimensional array

2018-04-17 Thread Shaami
Dear Prof. I am not finding how to introduce a 4-dimensional array using RcppArmadillo. Could you please provide a simple example of introducing a 4-dimensional array and how to store the values in it? For example, exactly the same as I did for the cube as follows arma::cube X(N, M, Q, fill::ze

[Rcpp-devel] element wise multiplication of a subcube and a row of a matrix

2017-01-08 Thread Shaami
operand %. #include using namespace Rcpp; using namespace RcppArmadillo; using namespace arma; //[[Rcpp::depends(RcppArmadillo)]] //[[Rcpp::export]] arma::rowvec sub(arma::cube a, arma::mat b) { rowvec x = a.subcube(0, 0, 0, 0, 2, 0)% b.row(0); return x; } Thank You Shaami

Re: [Rcpp-devel] Timings for a program

2017-01-06 Thread Shaami
ut to produce a speedy code. Shaami On Fri, Jan 6, 2017 at 5:03 AM, Martyn Plummer wrote: > On Thu, 2017-01-05 at 05:39 -0700, Christian Gunning wrote: > > > > > > I am new to Rcpp. I have converted my R program into an Rcpp program. > > > I want to ask a gener

[Rcpp-devel] Timings for a program

2017-01-04 Thread Shaami
or technical hint for this type of problem. Thank to all Shaami ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel