[Rcpp-devel] RcppEigen: Windows binary from CRAN crashes R, but not when installing from source.
John Buonagurio
jbuonagurio at exponent.com
Thu Oct 16 00:43:07 CEST 2014
Hi Henrik,
R CMD INSTALL defines the NDEBUG macro (as Writing R Extensions sec. 1.7 recommends), which disables eigen_assert. Otherwise your error is triggered here:
eigen_assert(a_lhs.cols() == a_rhs.rows()
&& "invalid matrix product"
&& "if you wanted a coeff-wise or a dot product use the respective explicit functions");
Looks like it's complaining that you're trying to transpose a scalar.
win-builder doesn't add -DNDEBUG. You can just #undef NDEBUG and it will build, but I'd leave asserts on during development to avoid any unexpected behavior.
Trimmed the rest of this message as I'm having problems with a new mail filter at work...
John
> -----Original Message-----
> From: rcpp-devel-bounces at lists.r-forge.r-project.org [mailto:rcpp-devel-
> bounces at lists.r-forge.r-project.org] On Behalf Of Henrik Singmann
> Sent: Wednesday, October 15, 2014 6:13 PM
> To: Kevin Ushey
> Cc: rcpp-devel at r-forge.wu-wien.ac.at
> Subject: Re: [Rcpp-devel] RcppEigen: Windows binary from CRAN crashes R, but
> not when installing from source.
More information about the Rcpp-devel
mailing list