[swig] provide __array__ so that numpy.array(v) for SiconosVector works
SiconosVectorIterator __iter__() {
return SiconosVectorIterator($self->begin());
}
+%insert("python") %{
+ def __array__(self):
+ import numpy
+ return numpy.fromiter(self, dtype=float)
+%}
}
%extend BlockVector{
std::string __str__() { return $self->toString(); }
