Hello,
I would like to use a pointer to an Rcpp::NumericMatrix to operate
upon elements, linearly, row by row.
For Rcpp::NumericVector this seems easy, since I can use a
straightforward iterator, i.e.
Rcpp::NumericVector::iterator it = myVector->begin();
But for NumericMatrix this seems more di
Hello David,
Yes, Whit's example is great.
>From my own short experience, I would advise to stick to Whit's example
closely. For instance, try not to separate a class between e.g. .h and .cpp,
as inline seems to sometimes throw in an extra include for the user class,
but without the right path. (
ing I can start using, and
there is loads of room for me to build something really solid with packages
or whatever.
Good stuff lads.
Thanks again.
Simon
On Wed, Oct 12, 2011 at 3:32 PM, Dirk Eddelbuettel wrote:
>
> On 12 October 2011 at 14:51, Simon Fuller wrote:
> | Hello,
>
Hello,
We cross-posted. Yes, you're right. I misunderstood the use of includes -
global - that is a good way of thinking about it.
Thanks for everything.
Simon
On Wed, Oct 12, 2011 at 2:06 PM, Darren Cook wrote:
> > pertain to packages. So I will post the relevant code here, and the full
> >
stuff lads. Hope I have enough to go on now to get my classes working
- should do.
I will look into building packages then - that vignette looks pretty useful.
Thanks all,
Simon
On Wed, Oct 12, 2011 at 12:59 PM, Simon Fuller wrote:
> Hello Darren,
>
> Thank you for your advice.
Hello Darren,
Thank you for your advice. It makes good sense.
I now have a linker problem, and I have written some code to abstract the
problem for your viewing.
The error message is:
"Error in dyn.load(libLFile) :
unable to load shared object '/tmp/RtmpBFr1mw/file44b636b6.so':
/tmp/RtmpBFr1
head and make a package or use modules (which ever
would be safest, i.e. most foolproof) sooner rather than later.
Thanks again,
Simon
On Tue, Oct 11, 2011 at 3:07 PM, Dirk Eddelbuettel wrote:
>
> On 11 October 2011 at 10:53, Simon Fuller wrote:
> | To be safe, I wrote a coup
, Oct 11, 2011 at 10:10 AM, Simon Fuller wrote:
> Hello Davor,
>
> Yes, I think - I have:
> #ifndef HEADERNAME_IN_CAPS
> #define HEADERNAME_IN_CAPS 1
> (..code..)
> #endif
> for all my headers.
>
> As far as I can tell the problem arises when fstream includes
> c
.h:
> >
> > _GLIBCXX_BEGIN_NAMESPACE(std)
> >
> > I googled this function, and I am wondering if it might be a
> compatibility
> > issue, as this sometimes seems to be cited in this regard in forums. I
> > really do not know myself. Has anyone any suggestions?
>
function, and I am wondering if it might be a compatibility
issue, as this sometimes seems to be cited in this regard in forums. I
really do not know myself. Has anyone any suggestions?
Thanks,
Simon
On Mon, Oct 10, 2011 at 11:09 AM, Simon Fuller wrote:h
> Hello,
>
> I have just joined th
Hello,
I have just joined the mailing list.
I was hoping you might be able to help me with a question.
I am new to Rcpp, have some experience with both R and C++, but very little
experience with integrating languages.
I hope to use Rcpp to develop code over the next few years. However, to
begin
11 matches
Mail list logo