20template<
typename T,
typename U,
22 bool NeedToTranspose = T::IsVectorAtCompileTime
23 && U::IsVectorAtCompileTime
24 && ((int(T::RowsAtCompileTime) == 1 && int(U::ColsAtCompileTime) == 1)
27 (
int(T::ColsAtCompileTime) == 1 && int(U::RowsAtCompileTime) == 1))
37 return a.template binaryExpr<conj_prod>(
b).
sum();
41template<
typename T,
typename U>
50 return a.
transpose().template binaryExpr<conj_prod>(
b).sum();
67template<
typename Derived>
68template<
typename OtherDerived>
71typename ScalarBinaryOpTraits<typename internal::traits<Derived>::Scalar,
typename internal::traits<OtherDerived>::Scalar>::ReturnType
77#if !(defined(EIGEN_NO_STATIC_ASSERT) && defined(EIGEN_NO_DEBUG))
95template<
typename Derived>
107template<
typename Derived>
122template<
typename Derived>
127 _Nested n(derived());
144template<
typename Derived>
165template<
typename Derived>
170 _Nested n(derived());
190template<
typename Derived>
203template<
typename Derived,
int p>
215template<
typename Derived>
221 return m.cwiseAbs().
sum();
225template<
typename Derived>
235template<
typename Derived>
242 if(Derived::SizeAtCompileTime==0 || (Derived::SizeAtCompileTime==
Dynamic && m.size()==0))
260template<
typename Derived>
262#ifndef EIGEN_PARSED_BY_DOXYGEN
263EIGEN_DEVICE_FUNC inline typename NumTraits<typename internal::traits<Derived>::Scalar>::Real
280template<
typename Derived>
281template<
typename OtherDerived>
287 return numext::abs2(nested.dot(otherNested)) <= prec * prec * nested.squaredNorm() * otherNested.squaredNorm();
301template<
typename Derived>
305 for(
Index i = 0; i < cols(); ++i)
309 for(
Index j = 0; j < i; ++j)
EIGEN_DEVICE_FUNC RealReturnType real() const
Definition: CommonCwiseUnaryOps.h:100
#define EIGEN_USING_STD(FUNC)
Definition: Macros.h:1195
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:986
#define eigen_assert(x)
Definition: Macros.h:1047
#define EIGEN_STRONG_INLINE
Definition: Macros.h:927
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseAbsReturnType cwiseAbs() const
Definition: MatrixCwiseUnaryOps.h:33
#define EIGEN_STATIC_ASSERT_SAME_VECTOR_SIZE(TYPE0, TYPE1)
Definition: StaticAssert.h:167
#define EIGEN_STATIC_ASSERT_VECTOR_ONLY(TYPE)
Definition: StaticAssert.h:142
#define EIGEN_CHECK_BINARY_COMPATIBILIY(BINOP, LHS, RHS)
Definition: XprHelper.h:850
EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar maxCoeff() const
EIGEN_DEVICE_FUNC Scalar sum() const
Definition: Redux.h:459
EIGEN_DEVICE_FUNC TransposeReturnType transpose()
Definition: Transpose.h:182
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:50
EIGEN_DEVICE_FUNC RealScalar squaredNorm() const
Definition: Dot.h:96
EIGEN_DEVICE_FUNC ScalarBinaryOpTraits< typenameinternal::traits< Derived >::Scalar, typenameinternal::traits< OtherDerived >::Scalar >::ReturnType dot(const MatrixBase< OtherDerived > &other) const
EIGEN_DEVICE_FUNC RealScalar lpNorm() const
EIGEN_DEVICE_FUNC void stableNormalize()
Normalizes the vector while avoid underflow and overflow.
Definition: Dot.h:191
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ArrayWrapper< Derived > array()
Definition: MatrixBase.h:319
NumTraits< Scalar >::Real RealScalar
Definition: MatrixBase.h:58
EIGEN_DEVICE_FUNC void normalize()
Normalizes the vector, i.e.
Definition: Dot.h:145
bool isUnitary(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition: Dot.h:302
EIGEN_DEVICE_FUNC const PlainObject normalized() const
Definition: Dot.h:124
EIGEN_DEVICE_FUNC const PlainObject stableNormalized() const
Definition: Dot.h:167
internal::traits< Derived >::Scalar Scalar
Definition: MatrixBase.h:56
EIGEN_DEVICE_FUNC RealScalar norm() const
Definition: Dot.h:108
bool isOrthogonal(const MatrixBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition: Dot.h:283
EIGEN_DEVICE_FUNC bool isApprox(const Scalar &x, const Scalar &y, const typename NumTraits< Scalar >::Real &precision=NumTraits< Scalar >::dummy_precision())
Definition: MathFunctions.h:1947
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
EIGEN_CONSTEXPR Index size(const T &x)
Definition: Meta.h:479
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE float sqrt(const float &x)
Definition: MathFunctions.h:177
EIGEN_DEVICE_FUNC bool abs2(bool x)
Definition: MathFunctions.h:1292
Namespace containing all symbols from the Eigen library.
Definition: Core:141
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
const int Infinity
This value means +Infinity; it is currently used only as the p parameter to MatrixBase::lpNorm<int>()...
Definition: Constants.h:36
const int Dynamic
This value means that a positive quantity (e.g., a size) is not known at compile-time,...
Definition: Constants.h:22
Definition: Eigen_Colamd.h:50
constexpr common_t< T1, T2 > pow(const T1 base, const T2 exp_term) noexcept
Compile-time power function.
Definition: pow.hpp:76
Holds information about the various numeric (i.e.
Definition: NumTraits.h:233
EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE ResScalar run(const MatrixBase< T > &a, const MatrixBase< U > &b)
Definition: Dot.h:48
conj_prod::result_type ResScalar
Definition: Dot.h:45
scalar_conj_product_op< typename traits< T >::Scalar, typename traits< U >::Scalar > conj_prod
Definition: Dot.h:44
EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE ResScalar run(const MatrixBase< T > &a, const MatrixBase< U > &b)
Definition: Dot.h:35
conj_prod::result_type ResScalar
Definition: Dot.h:32
scalar_conj_product_op< typename traits< T >::Scalar, typename traits< U >::Scalar > conj_prod
Definition: Dot.h:31
static EIGEN_DEVICE_FUNC NumTraits< typenametraits< Derived >::Scalar >::Real run(const MatrixBase< Derived > &m)
Definition: Dot.h:219
static EIGEN_DEVICE_FUNC NumTraits< typenametraits< Derived >::Scalar >::Real run(const MatrixBase< Derived > &m)
Definition: Dot.h:229
static EIGEN_DEVICE_FUNC RealScalar run(const MatrixBase< Derived > &m)
Definition: Dot.h:240
NumTraits< typenametraits< Derived >::Scalar >::Real RealScalar
Definition: Dot.h:238
static EIGEN_DEVICE_FUNC RealScalar run(const MatrixBase< Derived > &m)
Definition: Dot.h:208
NumTraits< typenametraits< Derived >::Scalar >::Real RealScalar
Definition: Dot.h:206
Definition: BinaryFunctors.h:108
ScalarBinaryOpTraits< LhsScalar, RhsScalar, scalar_conj_product_op >::ReturnType result_type
Definition: BinaryFunctors.h:114
Definition: ForwardDeclarations.h:17