dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #17805
Python and std::vector (again)
I've added the function
GenericVector::sum(const std::vector<uint>& rows)
which will sum the given row entries. But, frustratingly, it doesn't
work through Python. I can't pass a list or numpy array to it. I get the
error
TypeError: in method 'GenericVector_sum', argument 2 of type
'std::vector< dolfin::uint > const &'
How can I pass a list of integers to this function from Python? It seems
that we haven't resolved passing std::vector from Python to C++
satisfactorily.
Garth
Follow ups