Le 27/05/10 05:07, Vinh Nguyen a écrit :
On Wed, May 26, 2010 at 6:31 PM, Davor Cubranic wrote:
On 2010-05-26, at 4:08 PM, Vinh Nguyen wrote:
Also, I didn't include BLAS or LAPACK linking -- still don't know how
to get the compilation flags easily. I read the skeleton stuff but I
don't under
On Wed, May 26, 2010 at 6:31 PM, Davor Cubranic wrote:
> On 2010-05-26, at 4:08 PM, Vinh Nguyen wrote:
>> Also, I didn't include BLAS or LAPACK linking -- still don't know how
>> to get the compilation flags easily. I read the skeleton stuff but I
>> don't understand (sorry).
>
> Just put in you
On 2010-05-26, at 4:08 PM, Vinh Nguyen wrote:
> Also, I didn't include BLAS or LAPACK linking -- still don't know how
> to get the compilation flags easily. I read the skeleton stuff but I
> don't understand (sorry).
Just put in your package's 'src' directory the Makevars file that's generated
On Wed, May 26, 2010 at 11:29 AM, Vinh Nguyen wrote:
>>> 6. How do I compile the .cpp file on the
>>> command line? I got the following based on Dirk's HPC talk but
>>> getting errors on my mac os x:
>>
>> The easiest way by far is to make a package and follow the guidelines of our
>> last relea
On Wed, May 26, 2010 at 10:21 AM, Romain Francois
wrote:
> Le 26/05/10 18:55, Vinh Nguyen a écrit :
>>
>> Dear Rcpp list,
>>
>> It's time for me to finally try out Rcpp
>
> Great. You won't regret it ;-)
>
Thanks for the prompt response. My only initial hesitation about
using Rcpp is the uncerta
Le 26/05/10 18:55, Vinh Nguyen a écrit :
Dear Rcpp list,
It's time for me to finally try out Rcpp
Great. You won't regret it ;-)
since I have to do some
computing for my research. Some questions (please be kind as I'm only
a beginner C programmer using .C() and not smart enough to understa
Dear Rcpp list,
It's time for me to finally try out Rcpp since I have to do some
computing for my research. Some questions (please be kind as I'm only
a beginner C programmer using .C() and not smart enough to understand .
Call()):
1. I plan to use objects like
Rcpp::NumericMatrix orig(matrix);
Here is a self contained example, that uses both svn version of Rcpp and
svn version of inline (for getDynLib) :
require( Rcpp )
require( methods )
code <- ''
inc <- '
class World {
public:
World() : msg("hello"){}
void set(std::string msg) { this->msg = msg; }
std::string greet
Hello,
On top of exposing C++ functions (see
http://permalink.gmane.org/gmane.comp.lang.r.rcpp/354), I've added some
code to expose c++ classes to the R level. This is also inspired from
boost.python (although much less comprehensive).
Consider this simple c++ class :
class World {
public: