Thanks for fix!
Hadley
On Thu, Feb 21, 2013 at 1:33 AM, Romain Francois
wrote:
> Hello,
>
> I think this is about having
>
> const NumericVector& x_;
>
> In your class definition.
>
> It all works fine for me when I switch to
>
> NumericVector x_ ;
>
> and leave everything else unchanged.
>
>
> I
Hello,
I think this is about having
const NumericVector& x_;
In your class definition.
It all works fine for me when I switch to
NumericVector x_ ;
and leave everything else unchanged.
I'm not sure what the problem is though.
Romain
Le 20/02/13 22:14, Hadley Wickham a écrit :
I've attac
I've attached a somewhat tweaked example which I think might indicate
that modules don't know about const NumericVector&?
> GroupFixed <- m$GroupFixed
> g <- GroupFixed$new(x, 0.1, 0)
> g$size()
[1] 1
> g$bin(1L)
[1] 0
> g$get(1L)
[1] 6.953223e-310
The answers should be 8, 100 and 0.0807501