search for: intvector

Displaying 1 result from an estimated 1 matches for "intvector".

Did you mean: int_vector
2008 Nov 06
2
Fwd: SWIG with R and C++ STL
...hen I try to SWIG to R some C++ modules. Here is the details. I got "myvector.i" and "myvector.h" as my two input files, the contends are: ---myvector.i----- %module myvector %{ #include "myvector.h" %} %include "std_vector.i" namespace std { %template(IntVector) vector<int>; %template(DoubleVector) vector<double>; }; %include "myvector.h" ---------------------------------- --myvector.h------------------- /* File : example.h */ #include <vector> #include <algorithm> #include <functional> #include <numeric&g...