11#ifndef EIGEN_ORTHOMETHODS_H
12#define EIGEN_ORTHOMETHODS_H
27template<
typename Derived>
28template<
typename OtherDerived>
29#ifndef EIGEN_PARSED_BY_DOXYGEN
31typename MatrixBase<Derived>::template cross_product_return_type<OtherDerived>::type
53template<
int Arch,
typename VectorLhs,
typename VectorRhs,
54 typename Scalar =
typename VectorLhs::Scalar,
55 bool Vectorizable = bool((VectorLhs::Flags&VectorRhs::Flags)&
PacketAccessBit)>
61 numext::conj(lhs.coeff(1) * rhs.coeff(2) - lhs.coeff(2) * rhs.coeff(1)),
62 numext::conj(lhs.coeff(2) * rhs.coeff(0) - lhs.coeff(0) * rhs.coeff(2)),
63 numext::conj(lhs.coeff(0) * rhs.coeff(1) - lhs.coeff(1) * rhs.coeff(0)),
80template<
typename Derived>
81template<
typename OtherDerived>
90 DerivedNested lhs(derived());
91 OtherDerivedNested rhs(other.derived());
107template<
typename ExpressionType,
int Direction>
108template<
typename OtherDerived>
115 YOU_MIXED_DIFFERENT_NUMERIC_TYPES__YOU_NEED_TO_USE_THE_CAST_METHOD_OF_MATRIXBASE_TO_CAST_NUMERIC_TYPES_EXPLICITLY)
123 eigen_assert(CrossReturnType::RowsAtCompileTime==3 &&
"the matrix must have exactly 3 rows");
130 eigen_assert(CrossReturnType::ColsAtCompileTime==3 &&
"the matrix must have exactly 3 columns");
140template<
typename Derived,
int Size = Derived::SizeAtCompileTime>
153 src.cwiseAbs().maxCoeff(&maxi);
164template<
typename Derived>
187 perp.coeffRef(2) = 0;
196 perp.coeffRef(0) = 0;
205template<
typename Derived>
211 {
return VectorType(-numext::conj(
src.y()), numext::conj(
src.x())).normalized(); }
225template<
typename Derived>
EIGEN_DEVICE_FUNC ConjugateReturnType conjugate() const
Definition CommonCwiseUnaryOps.h:74
#define EIGEN_DEVICE_FUNC
Definition Macros.h:976
#define eigen_assert(x)
Definition Macros.h:1037
#define EIGEN_STRONG_INLINE
Definition Macros.h:917
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
Definition PartialRedux_count.cpp:3
#define EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(TYPE, SIZE)
Definition StaticAssert.h:157
#define EIGEN_STATIC_ASSERT_VECTOR_ONLY(TYPE)
Definition StaticAssert.h:142
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Definition StaticAssert.h:127
MatrixXf mat
Definition Tutorial_AdvancedInitialization_CommaTemporary.cpp:1
int rows
Definition Tutorial_commainit_02.cpp:1
int cols
Definition Tutorial_commainit_02.cpp:1
SCALAR Scalar
Definition bench_gemm.cpp:46
Base class for all dense matrices, vectors, and expressions.
Definition MatrixBase.h:50
EIGEN_DEVICE_FUNC cross_product_return_type< OtherDerived >::type cross(const MatrixBase< OtherDerived > &other) const
Base::PlainObject PlainObject
Definition MatrixBase.h:104
The matrix class, also used for vectors and row-vectors.
Definition Matrix.h:180
ExpressionType::PlainObject CrossReturnType
Definition VectorwiseOp.h:712
virtual EIGEN_DEVICE_FUNC const Scalar coeff(DenseIndex index) const
Definition TensorRef.h:66
Definition TensorRef.h:81
EIGEN_DEVICE_FUNC PlainObject unitOrthogonal(void) const
Definition OrthoMethods.h:227
EIGEN_DEVICE_FUNC const CrossReturnType cross(const MatrixBase< OtherDerived > &other) const
Definition OrthoMethods.h:111
EIGEN_DEVICE_FUNC PlainObject cross3(const MatrixBase< OtherDerived > &other) const
Definition OrthoMethods.h:83
@ Vertical
Definition Constants.h:264
const unsigned int PacketAccessBit
Definition Constants.h:94
@ Target
Definition Constants.h:492
EIGEN_DEVICE_FUNC bool isMuchSmallerThan(const Scalar &x, const OtherScalar &y, const typename NumTraits< Scalar >::Real &precision=NumTraits< Scalar >::dummy_precision())
Definition MathFunctions.h:1940
Namespace containing all symbols from the Eigen library.
Definition bench_norm.cpp:85
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:74
Definition BandTriangularSolver.h:13
Definition OrthoMethods.h:56
static EIGEN_DEVICE_FUNC internal::plain_matrix_type< VectorLhs >::type run(const VectorLhs &lhs, const VectorRhs &rhs)
Definition OrthoMethods.h:58
Definition XprHelper.h:295
Definition ForwardDeclarations.h:17
static EIGEN_DEVICE_FUNC VectorType run(const Derived &src)
Definition OrthoMethods.h:210
plain_matrix_type< Derived >::type VectorType
Definition OrthoMethods.h:208
NumTraits< Scalar >::Real RealScalar
Definition OrthoMethods.h:169
plain_matrix_type< Derived >::type VectorType
Definition OrthoMethods.h:167
traits< Derived >::Scalar Scalar
Definition OrthoMethods.h:168
static EIGEN_DEVICE_FUNC VectorType run(const Derived &src)
Definition OrthoMethods.h:171
Definition OrthoMethods.h:142
traits< Derived >::Scalar Scalar
Definition OrthoMethods.h:144
NumTraits< Scalar >::Real RealScalar
Definition OrthoMethods.h:145
Matrix< Scalar, 2, 1 > Vector2
Definition OrthoMethods.h:146
plain_matrix_type< Derived >::type VectorType
Definition OrthoMethods.h:143
static EIGEN_DEVICE_FUNC VectorType run(const Derived &src)
Definition OrthoMethods.h:148