Re: [eigen] TriangularViewType& operator/=(const typename internal::traits<MatrixType>::Scalar& other)

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Dear Gael,



Am 05.09.2016 um 22:42 schrieb Gael Guennebaud:

It seems that you also need to specialize:

template<typename T> struct ScalarBinaryOpTraits<MyType< std::complex<T> >,MyType<T> > { typedef MyType< std::complex<T> > ReturnType; };
template<typename T> struct ScalarBinaryOpTraits<MyType<T>,MyType< std::complex<T> > > { typedef MyType< std::complex<T> > ReturnType; };

then proper comparisons for reals, a few mixed real and complex operations (-, *, /), and some -=, /=, *= operators, and everything compiles fine use Eigen's head.


indeed it compiles. Thanks a lot.
I'll go through it carefully tomorrow and provide a correct meaning to the operators/functions.

Best regards,
Peter



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/