Yes. I am really sorry about that.
> From: seb.ha...@gmail.com
> Date: Thu, 15 Apr 2010 13:24:10 +0200
> To: numpy-discussion@scipy.org
> Subject: Re: [Numpy-discussion] use of %extend
>
> did you mean to send this to the SWIG list !?
> -S.
>
>
> On Thu, Ap
did you mean to send this to the SWIG list !?
-S.
On Thu, Apr 15, 2010 at 11:53 AM, Michel Dupront
wrote:
> Hello,
>
> With the following example, given in the documentation:
>
> struct Vector {
> double x,y,z;
> };
> %extend Vector {
> Vector __add__(Vector *other) {
> Vector v;
Hello,
With the following example, given in the documentation:
struct Vector {
double x,y,z;
};
%extend Vector {
Vector __add__(Vector *other) {
Vector v;
v.x = $self->x + other->x;
v.y = $self->y + other->y;
v.z = $self->z + other->z;
retu