[Rcpp-commits] r2742 - pkg/Rcpp/inst/include/Rcpp/stats/dpq

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Dec 8 09:15:48 CET 2010


Author: romain
Date: 2010-12-08 09:15:47 +0100 (Wed, 08 Dec 2010)
New Revision: 2742

Modified:
   pkg/Rcpp/inst/include/Rcpp/stats/dpq/dpq.h
Log:
fix the dnorm( xx ) case (thanks to xian)

Modified: pkg/Rcpp/inst/include/Rcpp/stats/dpq/dpq.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/stats/dpq/dpq.h	2010-12-08 03:56:24 UTC (rev 2741)
+++ pkg/Rcpp/inst/include/Rcpp/stats/dpq/dpq.h	2010-12-08 08:15:47 UTC (rev 2742)
@@ -33,7 +33,7 @@
 	class D0 : public Rcpp::VectorBase< REALSXP, NA, D0<RTYPE,NA,T> > {
 	public:
 		typedef typename Rcpp::VectorBase<RTYPE,NA,T> VEC_TYPE ;
-		typedef double (*FunPtr)(int) ;
+		typedef double (*FunPtr)(double,int) ;
 		
 		D0( FunPtr ptr_, const VEC_TYPE& vec_, bool log_ ) : 
 			ptr(ptr_), vec(vec_), log(log_) {}



More information about the Rcpp-commits mailing list