Le mercredi 18 juillet 2012 15:18:52 UTC+2, de Ribet Clément a écrit :
> Le mercredi 18 juillet 2012 15:10:54 UTC+2, Georgios Petasis a écrit :
> > Στις 18/7/2012 15:58, ο/η de Ribet Clément έγραψε:
> > > Thanks for the answers.
> > > I managed to make it work a bit
> > > I tried also
> > > %template (Matrix) std::vector<std::vector<double>>
> > > to make a matrix, but it don't work.
> > > it won't work either i guess if i do
> > >
> > > set a [DoubleVector]
> > > set b [DoubleVector]
> > >
> > > $a push $b
> > >
> > > An idea ?
> > >
> > > thank you for the time spent !
> > >
> > > Clément
> > >
> >
> > I see no reason it won't work. What exactly have you tried?
> >
> > George
>
> set dv [DoubleVector] sends me back smtg like _305cd400_p_std__vectorT_double_t in the dv variable and in my .I i have %template(DoubleVector) vector<double>;
>
> %template(DoubleVector) vector<vector<double>>; throws me back an error when creating the wrap file.
>
> Clément
my bad, a little syntax problem with the namespaces.
In My .i file i had
namespace std {
%template(DoubleVector) vector<double>;
}
deleting the "namespace std" and adding the std:: , it worked.
thanks a lot