From 60350d56511fc75ebb410d4f8b9e092f138fdaa7 Mon Sep 17 00:00:00 2001 From: jmfisher <j.fisher@jz-juelich.de> Date: Thu, 7 Apr 2016 09:31:48 +0200 Subject: [PATCH] added swig preprocessor guards for certain overloaded operators due to swig's incomplete support for decltype --- Core/Geometry/BasicVector3D.h | 13 ++ Core/PythonAPI/libBornAgainCore.py | 52 ----- Core/PythonAPI/libBornAgainCore_wrap.cxx | 250 ----------------------- 3 files changed, 13 insertions(+), 302 deletions(-) diff --git a/Core/Geometry/BasicVector3D.h b/Core/Geometry/BasicVector3D.h index f1548d9f53e..d9025eac2ae 100644 --- a/Core/Geometry/BasicVector3D.h +++ b/Core/Geometry/BasicVector3D.h @@ -89,15 +89,20 @@ public: inline BasicVector3D<T>& operator-=(const BasicVector3D<T>& v) { v_[0] -= v.v_[0]; v_[1] -= v.v_[1]; v_[2] -= v.v_[2]; return *this; } + //! Multiplies this with a scalar, and returns result. +#ifndef SWIG template<class U> inline auto operator*=(U a) -> BasicVector3D<decltype(this->x()*a)>& { v_[0] *= a; v_[1] *= a; v_[2] *= a; return *this; } +#endif // SWIG //! Divides this by a scalar, and returns result. +#ifndef SWIG template<class U> inline auto operator/=(U a) -> BasicVector3D<decltype(this->x()*a)>& { v_[0] /= a; v_[1] /= a; v_[2] /= a; return *this; } +#endif // SWIG // ------------------------------------------------------------------------- // Functions of this (with no further argument) @@ -146,12 +151,16 @@ public: // ------------------------------------------------------------------------- //! Returns dot product of vectors (antilinear in the first [=self] argument). +#ifndef SWIG template<class U> auto dot(const BasicVector3D<U>& v) const -> decltype(this->x()*v.x()); +#endif // SWIG //! Returns cross product of vectors (linear in both arguments). +#ifndef SWIG template<class U> auto cross(const BasicVector3D<U>& v) const -> BasicVector3D<decltype(this->x()*v.x())>; +#endif // SWIG //! Returns angle with respect to another vector. double angle(const BasicVector3D<T>& v) const; @@ -220,15 +229,19 @@ inline BasicVector3D<T> operator-(const BasicVector3D<T>& a, const BasicVector3D //! Multiplication vector by scalar. //! @relates BasicVector3D +#ifndef SWIG template <class T, class U> inline auto operator* (const BasicVector3D<T>& v, const U a) -> BasicVector3D<decltype(v.x()*a)> { return BasicVector3D<decltype(v.x()*a)>(v.x()*a, v.y()*a, v.z()*a); } +#endif // SWIG //! Multiplication scalar by vector. //! @relates BasicVector3D +#ifndef SWIG template <class T, class U> inline auto operator* (const U a, const BasicVector3D<T>& v) -> BasicVector3D<decltype(a*v.x())> { return BasicVector3D<decltype(a*v.x())>(a*v.x(), a*v.y(), a*v.z()); } +#endif // SWIG // vector*vector not supported // (We do not provide the operator form a*b of the dot product: diff --git a/Core/PythonAPI/libBornAgainCore.py b/Core/PythonAPI/libBornAgainCore.py index 44439a2be7f..4bd7c68887f 100644 --- a/Core/PythonAPI/libBornAgainCore.py +++ b/Core/PythonAPI/libBornAgainCore.py @@ -2187,16 +2187,6 @@ class kvector_t(_object): return _libBornAgainCore.kvector_t___isub__(self, v) - def __imul__(self, a): - """__imul__(kvector_t self, double a) -> kvector_t""" - return _libBornAgainCore.kvector_t___imul__(self, a) - - - def __idiv__(self, a): - """__idiv__(kvector_t self, double a) -> kvector_t""" - return _libBornAgainCore.kvector_t___idiv__(self, a) - - def conj(self): """ conj(kvector_t self) -> kvector_t @@ -2329,28 +2319,6 @@ class kvector_t(_object): return _libBornAgainCore.kvector_t_complex(self) - def dot(self, v): - """ - dot(kvector_t self, kvector_t v) -> double - - double Geometry::BasicVector3D< double >::dot(const BasicVector3D< double > &v) const - - """ - return _libBornAgainCore.kvector_t_dot(self, v) - - - def cross(self, v): - """ - cross(kvector_t self, kvector_t v) -> kvector_t - - BasicVector3D< double > Geometry::BasicVector3D< double >::cross(const BasicVector3D< double > &v) const - - Returns cross product of vectors. - - """ - return _libBornAgainCore.kvector_t_cross(self, v) - - def angle(self, v): """ angle(kvector_t self, kvector_t v) -> double @@ -2730,16 +2698,6 @@ class cvector_t(_object): return _libBornAgainCore.cvector_t___isub__(self, v) - def __imul__(self, a): - """__imul__(cvector_t self, double a) -> cvector_t""" - return _libBornAgainCore.cvector_t___imul__(self, a) - - - def __idiv__(self, a): - """__idiv__(cvector_t self, double a) -> cvector_t""" - return _libBornAgainCore.cvector_t___idiv__(self, a) - - def conj(self): """ conj(cvector_t self) -> cvector_t @@ -2812,16 +2770,6 @@ class cvector_t(_object): return _libBornAgainCore.cvector_t_unit(self) - def dot(self, v): - """ - dot(cvector_t self, cvector_t v) -> std::complex< double > - - double Geometry::BasicVector3D< double >::dot(const BasicVector3D< double > &v) const - - """ - return _libBornAgainCore.cvector_t_dot(self, v) - - def project(self, v): """ project(cvector_t self, cvector_t v) -> cvector_t diff --git a/Core/PythonAPI/libBornAgainCore_wrap.cxx b/Core/PythonAPI/libBornAgainCore_wrap.cxx index 925cc27e3a2..a9fa4194908 100644 --- a/Core/PythonAPI/libBornAgainCore_wrap.cxx +++ b/Core/PythonAPI/libBornAgainCore_wrap.cxx @@ -23404,68 +23404,6 @@ fail: } -SWIGINTERN PyObject *_wrap_kvector_t___imul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Geometry::BasicVector3D< double > *arg1 = (Geometry::BasicVector3D< double > *) 0 ; - double arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - double val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - Geometry::BasicVector3D< double > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:kvector_t___imul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Geometry__BasicVector3DT_double_t, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "kvector_t___imul__" "', argument " "1"" of type '" "Geometry::BasicVector3D< double > *""'"); - } - arg1 = reinterpret_cast< Geometry::BasicVector3D< double > * >(argp1); - ecode2 = SWIG_AsVal_double(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "kvector_t___imul__" "', argument " "2"" of type '" "double""'"); - } - arg2 = static_cast< double >(val2); - result = (Geometry::BasicVector3D< double > *) &(arg1)->operator *=(arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Geometry__BasicVector3DT_double_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_kvector_t___idiv__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Geometry::BasicVector3D< double > *arg1 = (Geometry::BasicVector3D< double > *) 0 ; - double arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - double val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - Geometry::BasicVector3D< double > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:kvector_t___idiv__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Geometry__BasicVector3DT_double_t, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "kvector_t___idiv__" "', argument " "1"" of type '" "Geometry::BasicVector3D< double > *""'"); - } - arg1 = reinterpret_cast< Geometry::BasicVector3D< double > * >(argp1); - ecode2 = SWIG_AsVal_double(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "kvector_t___idiv__" "', argument " "2"" of type '" "double""'"); - } - arg2 = static_cast< double >(val2); - result = (Geometry::BasicVector3D< double > *) &(arg1)->operator /=(arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Geometry__BasicVector3DT_double_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - SWIGINTERN PyObject *_wrap_kvector_t_conj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Geometry::BasicVector3D< double > *arg1 = (Geometry::BasicVector3D< double > *) 0 ; @@ -23708,74 +23646,6 @@ fail: } -SWIGINTERN PyObject *_wrap_kvector_t_dot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Geometry::BasicVector3D< double > *arg1 = (Geometry::BasicVector3D< double > *) 0 ; - Geometry::BasicVector3D< double > *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - double result; - - if (!PyArg_ParseTuple(args,(char *)"OO:kvector_t_dot",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Geometry__BasicVector3DT_double_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "kvector_t_dot" "', argument " "1"" of type '" "Geometry::BasicVector3D< double > const *""'"); - } - arg1 = reinterpret_cast< Geometry::BasicVector3D< double > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Geometry__BasicVector3DT_double_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "kvector_t_dot" "', argument " "2"" of type '" "Geometry::BasicVector3D< double > const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "kvector_t_dot" "', argument " "2"" of type '" "Geometry::BasicVector3D< double > const &""'"); - } - arg2 = reinterpret_cast< Geometry::BasicVector3D< double > * >(argp2); - result = (double)((Geometry::BasicVector3D< double > const *)arg1)->dot((Geometry::BasicVector3D< double > const &)*arg2); - resultobj = SWIG_From_double(static_cast< double >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_kvector_t_cross(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Geometry::BasicVector3D< double > *arg1 = (Geometry::BasicVector3D< double > *) 0 ; - Geometry::BasicVector3D< double > *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - Geometry::BasicVector3D< double > result; - - if (!PyArg_ParseTuple(args,(char *)"OO:kvector_t_cross",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Geometry__BasicVector3DT_double_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "kvector_t_cross" "', argument " "1"" of type '" "Geometry::BasicVector3D< double > const *""'"); - } - arg1 = reinterpret_cast< Geometry::BasicVector3D< double > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Geometry__BasicVector3DT_double_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "kvector_t_cross" "', argument " "2"" of type '" "Geometry::BasicVector3D< double > const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "kvector_t_cross" "', argument " "2"" of type '" "Geometry::BasicVector3D< double > const &""'"); - } - arg2 = reinterpret_cast< Geometry::BasicVector3D< double > * >(argp2); - result = ((Geometry::BasicVector3D< double > const *)arg1)->cross((Geometry::BasicVector3D< double > const &)*arg2); - resultobj = SWIG_NewPointerObj((new Geometry::BasicVector3D< double >(static_cast< const Geometry::BasicVector3D< double >& >(result))), SWIGTYPE_p_Geometry__BasicVector3DT_double_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - SWIGINTERN PyObject *_wrap_kvector_t_angle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Geometry::BasicVector3D< double > *arg1 = (Geometry::BasicVector3D< double > *) 0 ; @@ -26268,68 +26138,6 @@ fail: } -SWIGINTERN PyObject *_wrap_cvector_t___imul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Geometry::BasicVector3D< std::complex< double > > *arg1 = (Geometry::BasicVector3D< std::complex< double > > *) 0 ; - double arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - double val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - Geometry::BasicVector3D< std::complex< double > > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cvector_t___imul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Geometry__BasicVector3DT_std__complexT_double_t_t, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvector_t___imul__" "', argument " "1"" of type '" "Geometry::BasicVector3D< std::complex< double > > *""'"); - } - arg1 = reinterpret_cast< Geometry::BasicVector3D< std::complex< double > > * >(argp1); - ecode2 = SWIG_AsVal_double(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvector_t___imul__" "', argument " "2"" of type '" "double""'"); - } - arg2 = static_cast< double >(val2); - result = (Geometry::BasicVector3D< std::complex< double > > *) &(arg1)->operator *=(arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Geometry__BasicVector3DT_std__complexT_double_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_cvector_t___idiv__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Geometry::BasicVector3D< std::complex< double > > *arg1 = (Geometry::BasicVector3D< std::complex< double > > *) 0 ; - double arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - double val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - Geometry::BasicVector3D< std::complex< double > > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:cvector_t___idiv__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Geometry__BasicVector3DT_std__complexT_double_t_t, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvector_t___idiv__" "', argument " "1"" of type '" "Geometry::BasicVector3D< std::complex< double > > *""'"); - } - arg1 = reinterpret_cast< Geometry::BasicVector3D< std::complex< double > > * >(argp1); - ecode2 = SWIG_AsVal_double(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvector_t___idiv__" "', argument " "2"" of type '" "double""'"); - } - arg2 = static_cast< double >(val2); - result = (Geometry::BasicVector3D< std::complex< double > > *) &(arg1)->operator /=(arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Geometry__BasicVector3DT_std__complexT_double_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - SWIGINTERN PyObject *_wrap_cvector_t_conj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Geometry::BasicVector3D< std::complex< double > > *arg1 = (Geometry::BasicVector3D< std::complex< double > > *) 0 ; @@ -26462,40 +26270,6 @@ fail: } -SWIGINTERN PyObject *_wrap_cvector_t_dot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Geometry::BasicVector3D< std::complex< double > > *arg1 = (Geometry::BasicVector3D< std::complex< double > > *) 0 ; - Geometry::BasicVector3D< std::complex< double > > *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::complex< double > result; - - if (!PyArg_ParseTuple(args,(char *)"OO:cvector_t_dot",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Geometry__BasicVector3DT_std__complexT_double_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvector_t_dot" "', argument " "1"" of type '" "Geometry::BasicVector3D< std::complex< double > > const *""'"); - } - arg1 = reinterpret_cast< Geometry::BasicVector3D< std::complex< double > > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Geometry__BasicVector3DT_std__complexT_double_t_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvector_t_dot" "', argument " "2"" of type '" "Geometry::BasicVector3D< std::complex< double > > const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cvector_t_dot" "', argument " "2"" of type '" "Geometry::BasicVector3D< std::complex< double > > const &""'"); - } - arg2 = reinterpret_cast< Geometry::BasicVector3D< std::complex< double > > * >(argp2); - result = ((Geometry::BasicVector3D< std::complex< double > > const *)arg1)->dot((Geometry::BasicVector3D< std::complex< double > > const &)*arg2); - resultobj = SWIG_From_std_complex_Sl_double_Sg_(static_cast< std::complex<double> >(result)); - return resultobj; -fail: - return NULL; -} - - SWIGINTERN PyObject *_wrap_cvector_t_project(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Geometry::BasicVector3D< std::complex< double > > *arg1 = (Geometry::BasicVector3D< std::complex< double > > *) 0 ; @@ -89365,8 +89139,6 @@ static PyMethodDef SwigMethods[] = { ""}, { (char *)"kvector_t___iadd__", _wrap_kvector_t___iadd__, METH_VARARGS, (char *)"kvector_t___iadd__(kvector_t self, kvector_t v) -> kvector_t"}, { (char *)"kvector_t___isub__", _wrap_kvector_t___isub__, METH_VARARGS, (char *)"kvector_t___isub__(kvector_t self, kvector_t v) -> kvector_t"}, - { (char *)"kvector_t___imul__", _wrap_kvector_t___imul__, METH_VARARGS, (char *)"kvector_t___imul__(kvector_t self, double a) -> kvector_t"}, - { (char *)"kvector_t___idiv__", _wrap_kvector_t___idiv__, METH_VARARGS, (char *)"kvector_t___idiv__(kvector_t self, double a) -> kvector_t"}, { (char *)"kvector_t_conj", _wrap_kvector_t_conj, METH_VARARGS, (char *)"\n" "kvector_t_conj(kvector_t self) -> kvector_t\n" "\n" @@ -89455,20 +89227,6 @@ static PyMethodDef SwigMethods[] = { "Returns this, trivially converted to complex type. \n" "\n" ""}, - { (char *)"kvector_t_dot", _wrap_kvector_t_dot, METH_VARARGS, (char *)"\n" - "kvector_t_dot(kvector_t self, kvector_t v) -> double\n" - "\n" - "double Geometry::BasicVector3D< double >::dot(const BasicVector3D< double > &v) const\n" - "\n" - ""}, - { (char *)"kvector_t_cross", _wrap_kvector_t_cross, METH_VARARGS, (char *)"\n" - "kvector_t_cross(kvector_t self, kvector_t v) -> kvector_t\n" - "\n" - "BasicVector3D< double > Geometry::BasicVector3D< double >::cross(const BasicVector3D< double > &v) const\n" - "\n" - "Returns cross product of vectors. \n" - "\n" - ""}, { (char *)"kvector_t_angle", _wrap_kvector_t_angle, METH_VARARGS, (char *)"\n" "kvector_t_angle(kvector_t self, kvector_t v) -> double\n" "\n" @@ -89618,8 +89376,6 @@ static PyMethodDef SwigMethods[] = { ""}, { (char *)"cvector_t___iadd__", _wrap_cvector_t___iadd__, METH_VARARGS, (char *)"cvector_t___iadd__(cvector_t self, cvector_t v) -> cvector_t"}, { (char *)"cvector_t___isub__", _wrap_cvector_t___isub__, METH_VARARGS, (char *)"cvector_t___isub__(cvector_t self, cvector_t v) -> cvector_t"}, - { (char *)"cvector_t___imul__", _wrap_cvector_t___imul__, METH_VARARGS, (char *)"cvector_t___imul__(cvector_t self, double a) -> cvector_t"}, - { (char *)"cvector_t___idiv__", _wrap_cvector_t___idiv__, METH_VARARGS, (char *)"cvector_t___idiv__(cvector_t self, double a) -> cvector_t"}, { (char *)"cvector_t_conj", _wrap_cvector_t_conj, METH_VARARGS, (char *)"\n" "cvector_t_conj(cvector_t self) -> cvector_t\n" "\n" @@ -89668,12 +89424,6 @@ static PyMethodDef SwigMethods[] = { "Returns unit vector in direction of this (or null vector). \n" "\n" ""}, - { (char *)"cvector_t_dot", _wrap_cvector_t_dot, METH_VARARGS, (char *)"\n" - "cvector_t_dot(cvector_t self, cvector_t v) -> std::complex< double >\n" - "\n" - "double Geometry::BasicVector3D< double >::dot(const BasicVector3D< double > &v) const\n" - "\n" - ""}, { (char *)"cvector_t_project", _wrap_cvector_t_project, METH_VARARGS, (char *)"\n" "cvector_t_project(cvector_t self, cvector_t v) -> cvector_t\n" "\n" -- GitLab