From 0894da70842dae349e734335199a28346acaf11d Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Wed, 15 Jan 2025 11:12:17 -0800 Subject: [PATCH] Update documentation to clarify cross product for complex numbers. Fixes #2886. --- Eigen/src/Geometry/OrthoMethods.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Geometry/OrthoMethods.h b/Eigen/src/Geometry/OrthoMethods.h index a8e050236..317045672 100644 --- a/Eigen/src/Geometry/OrthoMethods.h +++ b/Eigen/src/Geometry/OrthoMethods.h @@ -78,8 +78,10 @@ struct cross_impl { * spanned by the two vectors. * * \note 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$ + * \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] + * This definition preserves the orthogonality condition that \f$\mathbf{u} \cdot (\mathbf{u} \times \mathbf{v}) = + * \mathbf{v} \cdot (\mathbf{u} \times \mathbf{v}) = 0\f$. * * \sa MatrixBase::cross3() */ -- GitLab