From c38c1953218bdf8aebdeedd43c75407670bb0973 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 24 Jun 2015 18:02:33 +0200 Subject: [PATCH] Document how cross behaves on complex numbers --- Eigen/src/Geometry/OrthoMethods.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Eigen/src/Geometry/OrthoMethods.h b/Eigen/src/Geometry/OrthoMethods.h index 6b2e57392..39b64b869 100644 --- a/Eigen/src/Geometry/OrthoMethods.h +++ b/Eigen/src/Geometry/OrthoMethods.h @@ -18,6 +18,10 @@ namespace Eigen { * \returns the cross product of \c *this and \a other * * Here is a very good explanation of cross-product: http://xkcd.com/199/ + * + * With complex numbers, the cross product is implemented as + * \f$ (\mathbf{a}+i\mathbf{b}) \times (\mathbf{c}+i\mathbf{d}) = (\mathbf{a} \times \mathbf{c} - \mathbf{b} \times \mathbf{d}) - i(\mathbf{a} \times \mathbf{d} - \mathbf{b} \times \mathbf{c})\f$ + * * \sa MatrixBase::cross3() */ template