12#ifndef EIGEN_MATRIXBASE_H
13#define EIGEN_MATRIXBASE_H
16#include "./InternalHeaderCheck.h"
52template <
typename Derived>
55#ifndef EIGEN_PARSED_BY_DOXYGEN
56 using StorageBaseType = MatrixBase;
57 using StorageKind =
typename internal::traits<Derived>::StorageKind;
58 using StorageIndex =
typename internal::traits<Derived>::StorageIndex;
59 using Scalar =
typename internal::traits<Derived>::Scalar;
60 using PacketScalar =
typename internal::packet_traits<Scalar>::type;
61 using RealScalar =
typename NumTraits<Scalar>::Real;
64 using Base::ColsAtCompileTime;
66 using Base::IsVectorAtCompileTime;
67 using Base::MaxColsAtCompileTime;
68 using Base::MaxRowsAtCompileTime;
69 using Base::MaxSizeAtCompileTime;
70 using Base::RowsAtCompileTime;
71 using Base::SizeAtCompileTime;
76 using Base::const_cast_derived;
79 using Base::lazyAssign;
82 using Base::operator-;
83 using Base::operator+=;
84 using Base::operator-=;
85 using Base::operator*=;
86 using Base::operator/=;
88 using CoeffReturnType =
typename Base::CoeffReturnType;
89 using ConstTransposeReturnType =
typename Base::ConstTransposeReturnType;
90 using RowXpr =
typename Base::RowXpr;
91 using ColXpr =
typename Base::ColXpr;
94#ifndef EIGEN_PARSED_BY_DOXYGEN
102 EIGEN_DEVICE_FUNC
constexpr Index
diagonalSize()
const {
return (numext::mini)(rows(), cols()); }
104 using PlainObject =
typename Base::PlainObject;
106#ifndef EIGEN_PARSED_BY_DOXYGEN
110 using AdjointReturnType =
111 std::conditional_t<NumTraits<Scalar>::IsComplex,
113 ConstTransposeReturnType>;
115 using EigenvaluesReturnType =
120 using BasisReturnType =
122 internal::traits<Derived>::RowsAtCompileTime, internal::traits<Derived>::ColsAtCompileTime>;
125#define EIGEN_CURRENT_STORAGE_BASE_CLASS Eigen::MatrixBase
126#define EIGEN_DOC_UNARY_ADDONS(X, Y)
127#include "../plugins/CommonCwiseBinaryOps.inc"
128#include "../plugins/MatrixCwiseUnaryOps.inc"
129#include "../plugins/MatrixCwiseBinaryOps.inc"
130#ifdef EIGEN_MATRIXBASE_PLUGIN
131#include EIGEN_MATRIXBASE_PLUGIN
133#undef EIGEN_CURRENT_STORAGE_BASE_CLASS
134#undef EIGEN_DOC_UNARY_ADDONS
139 EIGEN_DEVICE_FUNC
constexpr EIGEN_STRONG_INLINE Derived&
operator=(
const MatrixBase& other);
144 template <
typename OtherDerived>
147 template <
typename OtherDerived>
150 template <
typename OtherDerived>
151 EIGEN_DEVICE_FUNC
constexpr Derived&
operator=(
const ReturnByValue<OtherDerived>& other);
153 template <
typename OtherDerived>
154 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived& operator+=(
const MatrixBase<OtherDerived>& other);
155 template <
typename OtherDerived>
156 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived& operator-=(
const MatrixBase<OtherDerived>& other);
158 template <
typename OtherDerived>
161 template <
typename OtherDerived>
163 const MatrixBase<OtherDerived>& other)
const;
165 template <
typename OtherDerived>
168 template <
typename OtherDerived>
171 template <
typename OtherDerived>
174 template <
typename DiagonalDerived>
178 template <
typename SkewDerived>
182 template <
typename OtherDerived>
184 typename internal::traits<OtherDerived>::Scalar>::ReturnType
185 dot(
const MatrixBase<OtherDerived>& other)
const;
188 EIGEN_DEVICE_FUNC RealScalar
norm()
const;
197 EIGEN_DEVICE_FUNC
constexpr const AdjointReturnType
adjoint()
const;
201 EIGEN_DEVICE_FUNC
constexpr DiagonalReturnType
diagonal();
204 EIGEN_DEVICE_FUNC
constexpr const ConstDiagonalReturnType
diagonal()
const;
215 template <
unsigned int Mode>
216 struct TriangularViewReturnType {
219 template <
unsigned int Mode>
220 struct ConstTriangularViewReturnType {
224 template <
unsigned int Mode>
225 EIGEN_DEVICE_FUNC
constexpr typename TriangularViewReturnType<Mode>::Type triangularView();
226 template <
unsigned int Mode>
227 EIGEN_DEVICE_FUNC
constexpr typename ConstTriangularViewReturnType<Mode>::Type triangularView()
const;
229 template <
unsigned int UpLo>
230 struct SelfAdjointViewReturnType {
233 template <
unsigned int UpLo>
234 struct ConstSelfAdjointViewReturnType {
238 template <
unsigned int UpLo>
239 EIGEN_DEVICE_FUNC
constexpr typename SelfAdjointViewReturnType<UpLo>::Type selfadjointView();
240 template <
unsigned int UpLo>
241 EIGEN_DEVICE_FUNC
constexpr typename ConstSelfAdjointViewReturnType<UpLo>::Type selfadjointView()
const;
245 const typename NumTraits<Scalar>::Real& m_epsilon = NumTraits<Scalar>::dummy_precision())
const;
246 EIGEN_DEVICE_FUNC
static const IdentityReturnType
Identity();
247 EIGEN_DEVICE_FUNC
static const IdentityReturnType
Identity(Index rows, Index cols);
248 EIGEN_DEVICE_FUNC
static const BasisReturnType
Unit(Index size, Index i);
249 EIGEN_DEVICE_FUNC
static const BasisReturnType
Unit(Index i);
250 EIGEN_DEVICE_FUNC
static const BasisReturnType
UnitX();
251 EIGEN_DEVICE_FUNC
static const BasisReturnType
UnitY();
252 EIGEN_DEVICE_FUNC
static const BasisReturnType
UnitZ();
253 EIGEN_DEVICE_FUNC
static const BasisReturnType
UnitW();
262 EIGEN_DEVICE_FUNC Derived&
setUnit(Index newSize, Index i);
264 bool isIdentity(
const RealScalar& prec = NumTraits<Scalar>::dummy_precision())
const;
265 bool isDiagonal(
const RealScalar& prec = NumTraits<Scalar>::dummy_precision())
const;
270 bool isSkewSymmetric(
const RealScalar& prec = NumTraits<Scalar>::dummy_precision())
const;
272 template <
typename OtherDerived>
274 const RealScalar& prec = NumTraits<Scalar>::dummy_precision())
const;
275 bool isUnitary(
const RealScalar& prec = NumTraits<Scalar>::dummy_precision())
const;
278 template <
int DiagIndex_ = 0>
281 template <
int DiagIndex_ = 0>
292 template <
typename OtherDerived>
293 EIGEN_DEVICE_FUNC
inline bool operator==(
const MatrixBase<OtherDerived>& other)
const {
294 return (this->rows() == other.rows()) && (this->cols() == other.cols()) &&
cwiseEqual(other).all();
301 template <
typename OtherDerived>
302 EIGEN_DEVICE_FUNC
inline bool operator!=(
const MatrixBase<OtherDerived>& other)
const {
303 return !(*
this == other);
310 constexpr const Derived& forceAlignedAccess()
const {
return derived(); }
311 constexpr Derived& forceAlignedAccess() {
return derived(); }
312 template <
bool Enable>
313 constexpr const Derived& forceAlignedAccessIf()
const {
316 template <
bool Enable>
317 constexpr Derived& forceAlignedAccessIf() {
324 EIGEN_DEVICE_FUNC RealScalar
lpNorm()
const;
326 EIGEN_DEVICE_FUNC
constexpr MatrixBase<Derived>& matrix() {
return *
this; }
342 template <
typename PermutationIndex = DefaultPermutationIndex>
344 template <
typename PermutationIndex = DefaultPermutationIndex>
347 template <
typename PermutationIndex = DefaultPermutationIndex>
352 template <
typename ResultType>
355 const RealScalar& absDeterminantThreshold = NumTraits<Scalar>::dummy_precision())
const;
357 template <
typename ResultType>
359 ResultType&
inverse,
bool& invertible,
360 const RealScalar& absDeterminantThreshold = NumTraits<Scalar>::dummy_precision())
const;
373 template <
typename PermutationIndex = DefaultPermutationIndex>
375 template <
typename PermutationIndex = DefaultPermutationIndex>
377 template <
typename PermutationIndex = DefaultPermutationIndex>
379 template <
typename PermutationIndex = DefaultPermutationIndex>
381 template <
typename PermutationIndex = DefaultPermutationIndex>
391 template <
int Options = 0>
393 template <
int Options = 0>
394 EIGEN_DEPRECATED_WITH_REASON(
"Options should be specified using method's template parameter.")
395 inline
JacobiSVD<PlainObject, Options> jacobiSvd(
unsigned int computationOptions) const;
397 template <
int Options = 0>
398 inline
BDCSVD<PlainObject, Options> bdcSvd() const;
399 template <
int Options = 0>
400 EIGEN_DEPRECATED_WITH_REASON(
"Options should be specified using method's template parameter.")
401 inline
BDCSVD<PlainObject, Options> bdcSvd(
unsigned int computationOptions) const;
405 template <typename OtherDerived>
406 EIGEN_DEVICE_FUNC inline typename internal::cross_impl<Derived, OtherDerived>::return_type
cross(
407 const MatrixBase<OtherDerived>& other) const;
409 template <typename OtherDerived>
410 EIGEN_DEVICE_FUNC inline PlainObject
cross3(const MatrixBase<OtherDerived>& other) const;
414 EIGEN_DEPRECATED_WITH_REASON(
"Use .canonicalEulerAngles() instead.")
420 HomogeneousReturnTypeDirection =
427 EIGEN_DEVICE_FUNC
inline HomogeneousReturnType
homogeneous()
const;
431 internal::traits<Derived>::ColsAtCompileTime == 1 ? 1 : SizeMinusOne>;
432 using HNormalizedReturnType = EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(ConstStartMinusOne, Scalar,
433 internal::scalar_quotient_op);
434 EIGEN_DEVICE_FUNC
inline const HNormalizedReturnType
hnormalized()
const;
439 template <
typename EssentialPart>
441 template <
typename EssentialPart>
444 template <
typename EssentialPart>
450 template <
typename OtherScalar>
452 template <
typename OtherScalar>
457 template <
typename OtherDerived>
465 using StemFunction =
typename internal::stem_function<Scalar>::type;
466#define EIGEN_MATRIX_FUNCTION(ReturnType, Name, Description) \
470 const ReturnType<Derived> Name() const;
471#define EIGEN_MATRIX_FUNCTION_1(ReturnType, Name, Description, Argument) \
475 const ReturnType<Derived> Name(Argument) const;
477 EIGEN_MATRIX_FUNCTION(MatrixExponentialReturnValue,
exp, exponential)
481 EIGEN_MATRIX_FUNCTION(MatrixFunctionReturnValue,
cosh, hyperbolic cosine)
482 EIGEN_MATRIX_FUNCTION(MatrixFunctionReturnValue,
sinh, hyperbolic sine)
483 EIGEN_MATRIX_FUNCTION(MatrixFunctionReturnValue,
atanh,
inverse hyperbolic tangent)
484 EIGEN_MATRIX_FUNCTION(MatrixFunctionReturnValue,
acosh,
inverse hyperbolic cosine)
485 EIGEN_MATRIX_FUNCTION(MatrixFunctionReturnValue,
asinh,
inverse hyperbolic sine)
486 EIGEN_MATRIX_FUNCTION(MatrixFunctionReturnValue,
cos, cosine)
487 EIGEN_MATRIX_FUNCTION(MatrixFunctionReturnValue,
sin, sine)
488 EIGEN_MATRIX_FUNCTION(MatrixSquareRootReturnValue,
sqrt, square root)
489 EIGEN_MATRIX_FUNCTION(MatrixLogarithmReturnValue,
log, logarithm)
490 EIGEN_MATRIX_FUNCTION_1(MatrixPowerReturnValue,
pow, power to \c p, const RealScalar& p)
491 EIGEN_MATRIX_FUNCTION_1(MatrixComplexPowerReturnValue,
pow, power to \c p, const internal::make_complex_t<
Scalar>& p)
494 EIGEN_DEFAULT_COPY_CONSTRUCTOR(MatrixBase)
495 EIGEN_DEFAULT_EMPTY_CONSTRUCTOR_AND_DESTRUCTOR(MatrixBase)
498 EIGEN_DEVICE_FUNC explicit MatrixBase(
int);
499 EIGEN_DEVICE_FUNC MatrixBase(
int,
int);
500 template <typename OtherDerived>
501 EIGEN_DEVICE_FUNC explicit MatrixBase(const MatrixBase<OtherDerived>&);
505 template <typename OtherDerived>
506 Derived& operator+=(const
ArrayBase<OtherDerived>&) {
507 EIGEN_STATIC_ASSERT(std::ptrdiff_t(
sizeof(
typename OtherDerived::Scalar)) == -1,
508 YOU_CANNOT_MIX_ARRAYS_AND_MATRICES);
512 template <
typename OtherDerived>
514 EIGEN_STATIC_ASSERT(std::ptrdiff_t(
sizeof(
typename OtherDerived::Scalar)) == -1,
515 YOU_CANNOT_MIX_ARRAYS_AND_MATRICES);
531template <
typename Derived>
532template <
typename OtherDerived>
534 other.
derived().applyThisOnTheRight(derived());
544template <
typename Derived>
545template <
typename OtherDerived>
547 other.
derived().applyThisOnTheRight(derived());
555template <
typename Derived>
556template <
typename OtherDerived>
558 other.
derived().applyThisOnTheLeft(derived());
Base class for all 1D and 2D array, and related expressions.
Definition ArrayBase.h:45
Expression of a mathematical vector or matrix as an array object.
Definition ArrayWrapper.h:44
class Bidiagonal Divide and Conquer SVD
Definition BDCSVD.h:76
Expression of a fixed-size or dynamic-size block.
Definition Block.h:111
Bunch-Kaufman factorization of a symmetric / Hermitian indefinite matrix.
Definition BunchKaufman.h:75
Householder rank-revealing QR decomposition of a matrix with column-pivoting.
Definition ColPivHouseholderQR.h:56
Complete orthogonal decomposition (COD) of a matrix.
Definition CompleteOrthogonalDecomposition.h:420
Generic expression of a matrix where all coefficients are defined by a functor.
Definition CwiseNullaryOp.h:65
Generic expression where a coefficient-wise unary operator is applied to an expression.
Definition CwiseUnaryOp.h:55
typename internal::traits< Derived >::StorageIndex StorageIndex
The type used to store indices.
Definition DenseBase.h:60
@ SizeAtCompileTime
Definition DenseBase.h:109
@ ColsAtCompileTime
Definition DenseBase.h:103
@ RowsAtCompileTime
Definition DenseBase.h:97
constexpr DenseBase()=default
typename internal::traits< Derived >::Scalar Scalar
Definition DenseBase.h:63
Base class for diagonal matrices and expressions.
Definition DiagonalMatrix.h:34
Expression of a diagonal matrix.
Definition DiagonalMatrix.h:400
Expression of a diagonal/subdiagonal/superdiagonal in a matrix.
Definition Diagonal.h:78
Householder rank-revealing QR decomposition of a matrix with full pivoting.
Definition FullPivHouseholderQR.h:66
LU decomposition of a matrix with complete pivoting, and related features.
Definition FullPivLU.h:70
Expression of one (or a set of) homogeneous vector(s)
Definition Homogeneous.h:63
Householder QR decomposition of a matrix.
Definition HouseholderQR.h:77
Expression of the inverse of another expression.
Definition Inverse.h:44
Rotation given by a cosine-sine pair.
Definition Jacobi.h:39
Two-sided Jacobi SVD decomposition of a rectangular matrix.
Definition JacobiSVD.h:613
Robust Cholesky decomposition of a matrix with pivoting.
Definition LDLT.h:67
Standard Cholesky decomposition (LL^T) of a matrix and associated features.
Definition LLT.h:85
Base class for all dense matrices, vectors, and expressions.
Definition MatrixBase.h:53
static const BasisReturnType UnitY()
Definition CwiseNullaryOp.h:880
bool operator!=(const MatrixBase< OtherDerived > &other) const
Definition MatrixBase.h:302
constexpr DiagonalWrapper< Diagonal< Derived, DiagIndex_ > > diagonalView()
Definition DiagonalMatrix.h:467
LDLT< PlainObject > ldlt() const
Definition LDLT.h:760
void stableNormalize()
Definition Dot.h:438
RealScalar operatorNorm() const
Computes the L2 operator norm.
Definition MatrixBaseEigenvalues.h:112
const MatrixFunctionReturnValue< MatrixWrapper< ExpressionType > > matrixFunction(StemFunction f) const
void computeInverseWithCheck(ResultType &inverse, bool &invertible, const RealScalar &absDeterminantThreshold=NumTraits< Scalar >::dummy_precision()) const
Definition InverseImpl.h:345
void makeHouseholder(EssentialPart &essential, Scalar &tau, RealScalar &beta) const
Definition Householder.h:139
HouseholderQR< PlainObject > householderQr() const
Definition HouseholderQR.h:594
const MatrixLogarithmReturnValue< MatrixWrapper< ExpressionType > > log() const
const Product< Derived, SkewDerived, LazyProduct > operator*(const SkewSymmetricBase< SkewDerived > &skew) const
Definition SkewSymmetricMatrix3.h:398
constexpr DiagonalWrapper< Diagonal< const Derived, DynamicIndex > > diagonalView(Index index) const
Definition DiagonalMatrix.h:497
Derived & setIdentity()
Definition CwiseNullaryOp.h:812
bool isLowerTriangular(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition TriangularMatrix.h:797
const MatrixFunctionReturnValue< MatrixWrapper< ExpressionType > > asinh() const
constexpr ScalarBinaryOpTraits< typenameinternal::traits< Derived >::Scalar, typenameinternal::traits< OtherDerived >::Scalar >::ReturnType dot(const MatrixBase< OtherDerived > &other) const
Definition Dot.h:299
NoAlias< Derived, Eigen::MatrixBase > noalias()
Definition NoAlias.h:97
EigenvaluesReturnType eigenvalues() const
Computes the eigenvalues of a matrix.
Definition MatrixBaseEigenvalues.h:64
const Product< Derived, DiagonalDerived, LazyProduct > operator*(const DiagonalBase< DiagonalDerived > &diagonal) const
Definition DiagonalProduct.h:24
Derived & operator*=(const EigenBase< OtherDerived > &other)
Definition MatrixBase.h:529
const PlainObject stableNormalized() const
Definition Dot.h:380
void applyOnTheLeft(const EigenBase< OtherDerived > &other)
Definition MatrixBase.h:553
constexpr const CwiseBinaryOp< internal::scalar_product_op< Derived ::Scalar, OtherDerived ::Scalar >, const Derived, const OtherDerived > cwiseProduct(const Eigen::MatrixBase< OtherDerived > &other) const
Definition MatrixBase.h:25
const MatrixExponentialReturnValue< MatrixWrapper< ExpressionType > > exp() const
const MatrixFunctionReturnValue< MatrixWrapper< ExpressionType > > cosh() const
Inverse< Derived > inverse() const
Definition InverseImpl.h:280
void applyOnTheRight(const EigenBase< OtherDerived > &other)
Definition MatrixBase.h:542
LLT< PlainObject > llt() const
Definition LLT.h:663
RealScalar blueNorm() const
Definition StableNorm.h:320
bool isIdentity(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition CwiseNullaryOp.h:769
constexpr Diagonal< Derived, DynamicIndex > diagonal(Index index)
Definition Diagonal.h:193
void adjointInPlace()
Definition Transpose.h:355
Scalar trace() const
Definition Redux.h:863
RealScalar hypotNorm() const
Definition StableNorm.h:330
constexpr const Diagonal< const Derived, DynamicIndex > diagonal(Index index) const
Definition Diagonal.h:199
const PlainObject normalized() const
Definition Dot.h:339
RealScalar stableNorm() const
Definition StableNorm.h:303
RealScalar lpNorm() const
Definition Dot.h:534
const MatrixFunctionReturnValue< MatrixWrapper< ExpressionType > > atanh() const
constexpr const AdjointReturnType adjoint() const
Definition Transpose.h:200
Scalar determinant() const
void computeInverseAndDetWithCheck(ResultType &inverse, typename ResultType::Scalar &determinant, bool &invertible, const RealScalar &absDeterminantThreshold=NumTraits< Scalar >::dummy_precision()) const
Definition InverseImpl.h:308
constexpr DiagonalWrapper< Diagonal< Derived, DynamicIndex > > diagonalView(Index index)
Definition DiagonalMatrix.h:487
bool operator==(const MatrixBase< OtherDerived > &other) const
Definition MatrixBase.h:293
const MatrixFunctionReturnValue< MatrixWrapper< ExpressionType > > sin() const
static const BasisReturnType UnitX()
Definition CwiseNullaryOp.h:868
bool isUnitary(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition Dot.h:566
constexpr Derived & operator=(const MatrixBase &other)
Definition Assign.h:54
void applyHouseholderOnTheLeft(const EssentialPart &essential, const Scalar &tau, Scalar *workspace)
Definition Householder.h:366
Derived & setUnit(Index newSize, Index i)
Resizes to the given newSize, and writes the i-th unit (basis) vector into *this.
Definition CwiseNullaryOp.h:935
bool isDiagonal(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition DiagonalMatrix.h:441
Derived & setIdentity(Index rows, Index cols)
Resizes to the given size, and writes the identity expression (not necessarily square) into *this.
Definition CwiseNullaryOp.h:827
static const IdentityReturnType Identity()
Definition CwiseNullaryOp.h:754
constexpr RealScalar squaredNorm() const
Definition Dot.h:313
const MatrixPowerReturnValue< MatrixWrapper< ExpressionType > > pow(const RealScalar &p) const
constexpr const SkewSymmetricWrapper< const Derived > asSkewSymmetric() const
Definition SkewSymmetricMatrix3.h:381
static const BasisReturnType Unit(Index i)
Definition CwiseNullaryOp.h:854
void applyOnTheRight(Index p, Index q, const JacobiRotation< OtherScalar > &j)
Definition Jacobi.h:358
const MatrixSquareRootReturnValue< MatrixWrapper< ExpressionType > > sqrt() const
const MatrixFunctionReturnValue< MatrixWrapper< ExpressionType > > sinh() const
constexpr ArrayWrapper< Derived > array()
Definition MatrixBase.h:331
bool isSkewSymmetric(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition SkewSymmetricMatrix3.h:389
static const BasisReturnType UnitZ()
Definition CwiseNullaryOp.h:892
bool isUpperTriangular(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition TriangularMatrix.h:775
constexpr Index diagonalSize() const
Definition MatrixBase.h:102
constexpr const ConstDiagonalReturnType diagonal() const
Definition Diagonal.h:176
constexpr DiagonalWrapper< Diagonal< const Derived, DiagIndex_ > > diagonalView() const
Definition DiagonalMatrix.h:477
void applyHouseholderOnTheRight(const EssentialPart &essential, const Scalar &tau, Scalar *workspace)
Definition Householder.h:393
constexpr const ArrayWrapper< const Derived > array() const
Definition MatrixBase.h:336
constexpr const DiagonalWrapper< const Derived > asDiagonal() const
Definition DiagonalMatrix.h:428
const MatrixFunctionReturnValue< MatrixWrapper< ExpressionType > > cos() const
static const BasisReturnType Unit(Index size, Index i)
Definition CwiseNullaryOp.h:839
Derived & setUnit(Index i)
Set the coefficients of *this to the i-th unit (basis) vector.
Definition CwiseNullaryOp.h:917
const MatrixFunctionReturnValue< MatrixWrapper< ExpressionType > > acosh() const
constexpr DiagonalReturnType diagonal()
static const IdentityReturnType Identity(Index rows, Index cols)
Definition CwiseNullaryOp.h:738
void normalize()
Definition Dot.h:360
BunchKaufman< PlainObject > bunchKaufman() const
Definition BunchKaufman.h:1117
RealScalar norm() const
Definition Dot.h:325
const Product< Derived, OtherDerived, LazyProduct > lazyProduct(const MatrixBase< OtherDerived > &other) const
Definition GeneralProduct.h:603
const Product< Derived, OtherDerived > operator*(const MatrixBase< OtherDerived > &other) const
Definition GeneralProduct.h:561
void applyOnTheLeft(Index p, Index q, const JacobiRotation< OtherScalar > &j)
Definition Jacobi.h:343
constexpr const CwiseBinaryEqualReturnType< OtherDerived > cwiseEqual(const Eigen::MatrixBase< OtherDerived > &other) const
Definition MatrixBase.h:61
void makeHouseholderInPlace(Scalar &tau, RealScalar &beta)
Definition Householder.h:116
bool isOrthogonal(const MatrixBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition Dot.h:548
static const BasisReturnType UnitW()
Definition CwiseNullaryOp.h:904
The matrix class, also used for vectors and row-vectors.
Definition Matrix.h:188
Pseudo expression providing an operator = assuming no aliasing.
Definition NoAlias.h:35
LU decomposition of a matrix with partial pivoting, and related features.
Definition PartialPivLU.h:67
Class to view a vector of integers as a permutation matrix.
Definition PermutationMatrix.h:512
Expression of the product of two arbitrary matrices or vectors.
Definition Product.h:203
Randomized blocked Householder rank-revealing QR with column pivoting.
Definition RandColPivHouseholderQR.h:134
Complete orthogonal decomposition (COD) of a matrix, backed by RandColPivHouseholderQR.
Definition CompleteOrthogonalDecomposition.h:488
Expression of a selfadjoint matrix from a triangular part of a dense matrix.
Definition SelfAdjointView.h:54
Base class for skew symmetric matrices and expressions.
Definition SkewSymmetricMatrix3.h:36
Expression of a skew symmetric matrix.
Definition SkewSymmetricMatrix3.h:357
Base class of any sparse matrices or sparse expressions.
Definition SparseMatrixBase.h:31
constexpr const CwiseBinaryOp< internal::scalar_product_op< Derived ::Scalar, OtherDerived ::Scalar >, const Derived, const OtherDerived > cwiseProduct(const Eigen::SparseMatrixBase< OtherDerived > &other) const
Definition SparseMatrixBase.h:25
Expression of a dense or sparse matrix with zero or too small values removed.
Definition SparseView.h:46
Expression of a triangular part in a matrix.
Definition TriangularMatrix.h:426
Matrix< Scalar, 3, 1 > eulerAngles(Index a0, Index a1, Index a2) const
PlainObject unitOrthogonal(void) const
PlainObject cross3(const MatrixBase< OtherDerived > &other) const
internal::cross_impl< MatrixWrapper< ExpressionType >, OtherDerived >::return_type cross(const MatrixBase< OtherDerived > &other) const
const HNormalizedReturnType hnormalized() const
homogeneous normalization
Definition Homogeneous.h:165
HomogeneousReturnType homogeneous() const
Definition Homogeneous.h:125
Matrix< Scalar, 3, 1 > canonicalEulerAngles(Index a0, Index a1, Index a2) const
const SparseView< Derived > sparseView(const Scalar &m_reference=Scalar(0), const typename NumTraits< Scalar >::Real &m_epsilon=NumTraits< Scalar >::dummy_precision()) const
Definition SparseView.h:201
@ ColMajor
Definition Constants.h:319
@ Horizontal
Definition Constants.h:270
@ Vertical
Definition Constants.h:267
constexpr unsigned int RowMajorBit
Definition Constants.h:71
Definition EigenBase.h:34
constexpr Derived & derived()
Definition EigenBase.h:50
Determines whether the given binary operation of two numeric types is allowed and what the scalar ret...
Definition XprHelper.h:1062