Scalar left multiplication operators missing from swig python bindings #241
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
scripting
Scripting interfaces to Ignition
We now have swig python bindings for several math classes, such as
Vector[234]
andMatrix[34]
. The c++ classes, such asMatrix3
, declare scalar left multiplication operators usingfriend inline Matrix3<T> operator*(T _s, const Matrix3<T> &_m)
(see Matrix3.hh:331-338), but these are not yet included in the python swig bindings, as discussed in #221 (comment).Desired behavior
We should add bindings for these operators, and confirm it by adding to our tests, such as the following:
Alternatives considered
We could focus on using numpy types instead.
Implementation suggestion
I'm not sure how to implement a friend operator with swig.
Additional context
The text was updated successfully, but these errors were encountered: