11 #ifndef EIGEN_MATRIXBASE_H 12 #define EIGEN_MATRIXBASE_H 15 #include "./InternalHeaderCheck.h" 51 template <
typename Derived>
54 #ifndef EIGEN_PARSED_BY_DOXYGEN 56 typedef typename internal::traits<Derived>::StorageKind StorageKind;
57 typedef typename internal::traits<Derived>::StorageIndex
StorageIndex;
58 typedef typename internal::traits<Derived>::Scalar
Scalar;
59 typedef typename internal::packet_traits<Scalar>::type PacketScalar;
63 using Base::ColsAtCompileTime;
65 using Base::IsVectorAtCompileTime;
66 using Base::MaxColsAtCompileTime;
67 using Base::MaxRowsAtCompileTime;
68 using Base::MaxSizeAtCompileTime;
69 using Base::RowsAtCompileTime;
70 using Base::SizeAtCompileTime;
75 using Base::const_cast_derived;
78 using Base::lazyAssign;
81 using Base::operator-;
82 using Base::operator+=;
83 using Base::operator-=;
84 using Base::operator*=;
85 using Base::operator/=;
87 typedef typename Base::CoeffReturnType CoeffReturnType;
89 typedef typename Base::RowXpr RowXpr;
90 typedef typename Base::ColXpr ColXpr;
91 #endif // not EIGEN_PARSED_BY_DOXYGEN 93 #ifndef EIGEN_PARSED_BY_DOXYGEN 98 #endif // not EIGEN_PARSED_BY_DOXYGEN 106 #ifndef EIGEN_PARSED_BY_DOXYGEN 110 typedef std::conditional_t<NumTraits<Scalar>::IsComplex,
116 EigenvaluesReturnType;
121 internal::traits<Derived>::RowsAtCompileTime, internal::traits<Derived>::ColsAtCompileTime>
123 #endif // not EIGEN_PARSED_BY_DOXYGEN 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 144 template <
typename OtherDerived>
147 template <
typename OtherDerived>
150 template <
typename OtherDerived>
151 EIGEN_DEVICE_FUNC Derived&
operator=(
const ReturnByValue<OtherDerived>& other);
153 template <
typename OtherDerived>
155 template <
typename OtherDerived>
158 template <
typename OtherDerived>
161 template <
typename OtherDerived>
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
188 EIGEN_DEVICE_FUNC RealScalar
norm()
const;
197 EIGEN_DEVICE_FUNC
const AdjointReturnType
adjoint()
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
typename TriangularViewReturnType<Mode>::Type triangularView();
226 template <
unsigned int Mode>
227 EIGEN_DEVICE_FUNC
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
typename SelfAdjointViewReturnType<UpLo>::Type selfadjointView();
240 template <
unsigned int UpLo>
241 EIGEN_DEVICE_FUNC
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();
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();
255 EIGEN_DEVICE_FUNC
const DiagonalWrapper<const Derived>
asDiagonal()
const;
256 const PermutationWrapper<const Derived> asPermutation()
const;
257 EIGEN_DEVICE_FUNC
const SkewSymmetricWrapper<const Derived>
asSkewSymmetric()
const;
264 bool isIdentity(
const RealScalar& prec = NumTraits<Scalar>::dummy_precision())
const;
265 bool isDiagonal(
const RealScalar& prec = NumTraits<Scalar>::dummy_precision())
const;
267 bool isUpperTriangular(
const RealScalar& prec = NumTraits<Scalar>::dummy_precision())
const;
268 bool isLowerTriangular(
const RealScalar& prec = NumTraits<Scalar>::dummy_precision())
const;
270 bool isSkewSymmetric(
const RealScalar& prec = NumTraits<Scalar>::dummy_precision())
const;
272 template <
typename OtherDerived>
273 bool isOrthogonal(
const MatrixBase<OtherDerived>& other,
274 const RealScalar& prec = NumTraits<Scalar>::dummy_precision())
const;
275 bool isUnitary(
const RealScalar& prec = NumTraits<Scalar>::dummy_precision())
const;
281 template <
typename OtherDerived>
290 template <
typename OtherDerived>
292 return !(*
this == other);
301 template <
bool Enable>
302 inline const Derived& forceAlignedAccessIf()
const {
305 template <
bool Enable>
306 inline Derived& forceAlignedAccessIf() {
313 EIGEN_DEVICE_FUNC RealScalar
lpNorm()
const;
315 EIGEN_DEVICE_FUNC MatrixBase<Derived>& matrix() {
return *
this; }
316 EIGEN_DEVICE_FUNC
const MatrixBase<Derived>& matrix()
const {
return *
this; }
329 template <
typename PermutationIndex = DefaultPermutationIndex>
331 template <
typename PermutationIndex = DefaultPermutationIndex>
334 template <
typename PermutationIndex = DefaultPermutationIndex>
339 template <
typename ResultType>
344 template <
typename ResultType>
346 ResultType&
inverse,
bool& invertible,
359 template <
typename PermutationIndex = DefaultPermutationIndex>
361 template <
typename PermutationIndex = DefaultPermutationIndex>
363 template <
typename PermutationIndex = DefaultPermutationIndex>
373 template <
int Options = 0>
375 template <
int Options = 0>
377 inline
JacobiSVD<PlainObject, Options> jacobiSvd(
unsigned int computationOptions) const;
379 template <
int Options = 0>
380 inline
BDCSVD<PlainObject, Options> bdcSvd() const;
381 template <
int Options = 0>
383 inline
BDCSVD<PlainObject, Options> bdcSvd(
unsigned int computationOptions) const;
387 template <typename OtherDerived>
388 EIGEN_DEVICE_FUNC inline typename internal::cross_impl<Derived, OtherDerived>::return_type
cross(
391 template <typename OtherDerived>
392 EIGEN_DEVICE_FUNC inline PlainObject
cross3(const
MatrixBase<OtherDerived>& other) const;
403 HomogeneousReturnTypeDirection =
409 typedef Homogeneous<Derived, HomogeneousReturnTypeDirection> HomogeneousReturnType;
410 EIGEN_DEVICE_FUNC
inline HomogeneousReturnType
homogeneous()
const;
413 typedef Block<const Derived, internal::traits<Derived>::ColsAtCompileTime == 1 ? SizeMinusOne : 1,
414 internal::traits<Derived>::ColsAtCompileTime == 1 ? 1 : SizeMinusOne>
416 typedef EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(ConstStartMinusOne,
Scalar, quotient) HNormalizedReturnType;
417 EIGEN_DEVICE_FUNC
inline const HNormalizedReturnType
hnormalized()
const;
422 template <
typename EssentialPart>
423 EIGEN_DEVICE_FUNC
void makeHouseholder(EssentialPart& essential,
Scalar& tau, RealScalar& beta)
const;
424 template <
typename EssentialPart>
427 template <
typename EssentialPart>
433 template <
typename OtherScalar>
435 template <
typename OtherScalar>
440 template <
typename OtherDerived>
441 EIGEN_STRONG_INLINE
const typename SparseMatrixBase<OtherDerived>::template CwiseProductDenseReturnType<Derived>::Type
442 cwiseProduct(
const SparseMatrixBase<OtherDerived>& other)
const {
443 return other.cwiseProduct(
derived());
448 typedef typename internal::stem_function<Scalar>::type StemFunction;
449 #define EIGEN_MATRIX_FUNCTION(ReturnType, Name, Description) \ 453 const ReturnType<Derived> Name() const; 454 #define EIGEN_MATRIX_FUNCTION_1(ReturnType, Name, Description, Argument) \ 458 const ReturnType<Derived> Name(Argument) const; 460 EIGEN_MATRIX_FUNCTION(MatrixExponentialReturnValue,
exp, exponential)
463 const MatrixFunctionReturnValue<Derived>
matrixFunction(StemFunction f)
const;
464 EIGEN_MATRIX_FUNCTION(MatrixFunctionReturnValue,
cosh, hyperbolic cosine)
465 EIGEN_MATRIX_FUNCTION(MatrixFunctionReturnValue,
sinh, hyperbolic sine)
466 EIGEN_MATRIX_FUNCTION(MatrixFunctionReturnValue,
atanh,
inverse hyperbolic cosine)
467 EIGEN_MATRIX_FUNCTION(MatrixFunctionReturnValue,
acosh,
inverse hyperbolic cosine)
468 EIGEN_MATRIX_FUNCTION(MatrixFunctionReturnValue,
asinh,
inverse hyperbolic sine)
469 EIGEN_MATRIX_FUNCTION(MatrixFunctionReturnValue,
cos, cosine)
470 EIGEN_MATRIX_FUNCTION(MatrixFunctionReturnValue,
sin, sine)
471 EIGEN_MATRIX_FUNCTION(MatrixSquareRootReturnValue,
sqrt,
square root)
472 EIGEN_MATRIX_FUNCTION(MatrixLogarithmReturnValue,
log, logarithm)
473 EIGEN_MATRIX_FUNCTION_1(MatrixPowerReturnValue,
pow, power to \c p,
const RealScalar& p)
474 EIGEN_MATRIX_FUNCTION_1(MatrixComplexPowerReturnValue,
pow, power to \c p,
const internal::make_complex_t<Scalar>& p)
477 EIGEN_DEFAULT_COPY_CONSTRUCTOR(MatrixBase)
478 EIGEN_DEFAULT_EMPTY_CONSTRUCTOR_AND_DESTRUCTOR(MatrixBase)
481 EIGEN_DEVICE_FUNC
explicit MatrixBase(
int);
482 EIGEN_DEVICE_FUNC MatrixBase(
int,
int);
483 template <
typename OtherDerived>
484 EIGEN_DEVICE_FUNC
explicit MatrixBase(
const MatrixBase<OtherDerived>&);
488 template <
typename OtherDerived>
489 Derived&
operator+=(
const ArrayBase<OtherDerived>&) {
490 EIGEN_STATIC_ASSERT(std::ptrdiff_t(
sizeof(
typename OtherDerived::Scalar)) == -1,
491 YOU_CANNOT_MIX_ARRAYS_AND_MATRICES);
495 template <
typename OtherDerived>
496 Derived&
operator-=(
const ArrayBase<OtherDerived>&) {
497 EIGEN_STATIC_ASSERT(std::ptrdiff_t(
sizeof(
typename OtherDerived::Scalar)) == -1,
498 YOU_CANNOT_MIX_ARRAYS_AND_MATRICES);
514 template <
typename Derived>
515 template <
typename OtherDerived>
517 other.
derived().applyThisOnTheRight(derived());
526 template <
typename Derived>
527 template <
typename OtherDerived>
529 other.
derived().applyThisOnTheRight(derived());
537 template <
typename Derived>
538 template <
typename OtherDerived>
540 other.
derived().applyThisOnTheLeft(derived());
545 #endif // EIGEN_MATRIXBASE_H const MatrixFunctionReturnValue< Derived > cosh() const
This function requires the <a * href="unsupported/group__MatrixFunctions__Module.html"> unsupported M...
Generic expression of a matrix where all coefficients are defined by a functor.
Definition: CwiseNullaryOp.h:63
Scalar trace() const
Definition: Redux.h:529
Robust Cholesky decomposition of a matrix with pivoting.
Definition: LDLT.h:63
const CwiseBinaryEqualReturnType< OtherDerived > cwiseEqual(const Eigen::MatrixBase< OtherDerived > &other) const
Definition: MatrixBase.h:59
const MatrixFunctionReturnValue< Derived > asinh() const
This function requires the <a * href="unsupported/group__MatrixFunctions__Module.html"> unsupported M...
const MatrixPowerReturnValue< Derived > pow(const RealScalar &p) const
This function requires the <a * href="unsupported/group__MatrixFunctions__Module.html"> unsupported M...
void makeHouseholder(EssentialPart &essential, Scalar &tau, RealScalar &beta) const
Definition: Householder.h:65
constexpr Index size() const noexcept
Definition: EigenBase.h:64
RealScalar blueNorm() const
Definition: StableNorm.h:198
internal::traits< Derived >::Scalar Scalar
Definition: DenseBase.h:62
Definition: Constants.h:318
Expression of the product of two arbitrary matrices or vectors.
Definition: Product.h:198
Expression of a mathematical vector or matrix as an array object.
Definition: ArrayWrapper.h:43
Householder rank-revealing QR decomposition of a matrix with full pivoting.
Definition: ForwardDeclarations.h:431
const AdjointReturnType adjoint() const
Definition: Transpose.h:197
void applyOnTheLeft(const EigenBase< OtherDerived > &other)
Definition: MatrixBase.h:539
Definition: Constants.h:266
std::conditional_t< internal::is_same< typename internal::traits< Derived >::XprKind, MatrixXpr >::value, PlainMatrix, PlainArray > PlainObject
The plain matrix or array type corresponding to this expression.
Definition: DenseBase.h:204
Pseudo expression providing an operator = assuming no aliasing.
Definition: NoAlias.h:34
const CwiseBinaryOp< internal::scalar_product_op< Derived ::Scalar, OtherDerived ::Scalar >, const Derived, const OtherDerived > cwiseProduct(const Eigen::MatrixBase< OtherDerived > &other) const
Definition: MatrixBase.h:23
Expression of the transpose of a matrix.
Definition: Transpose.h:56
static const BasisReturnType UnitW()
Definition: CwiseNullaryOp.h:935
bool isUnitary(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition: Dot.h:256
const SkewSymmetricWrapper< const Derived > asSkewSymmetric() const
Definition: SkewSymmetricMatrix3.h:311
void applyOnTheRight(const EigenBase< OtherDerived > &other)
Definition: MatrixBase.h:528
LU decomposition of a matrix with partial pivoting, and related features.
Definition: ForwardDeclarations.h:421
Namespace containing all symbols from the Eigen library.
Definition: B01_Experimental.dox:1
const MatrixFunctionReturnValue< Derived > sinh() const
This function requires the <a * href="unsupported/group__MatrixFunctions__Module.html"> unsupported M...
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_square_op< typename Derived::Scalar >, const Derived > square(const Eigen::ArrayBase< Derived > &x)
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
Definition: NumTraits.h:232
const PlainObject normalized() const
Definition: Dot.h:92
const MatrixSquareRootReturnValue< Derived > sqrt() const
This function requires the <a * href="unsupported/group__MatrixFunctions__Module.html"> unsupported M...
Derived & setIdentity()
Definition: CwiseNullaryOp.h:843
Definition: DenseBase.h:102
Matrix< Scalar, 3, 1 > eulerAngles(Index a0, Index a1, Index a2) const
Definition: EulerAngles.h:136
Complete orthogonal decomposition (COD) of a matrix.
Definition: ForwardDeclarations.h:433
RealScalar stableNorm() const
Definition: StableNorm.h:184
Eigen::Index Index
The interface type of indices.
Definition: EigenBase.h:43
const unsigned int RowMajorBit
Definition: Constants.h:70
Base class for all dense matrices, vectors, and arrays.
Definition: DenseBase.h:38
constexpr Index rows() const noexcept
Definition: EigenBase.h:59
PlainObject cross3(const MatrixBase< OtherDerived > &other) const
Definition: OrthoMethods.h:123
internal::traits< Derived >::StorageIndex StorageIndex
The type used to store indices.
Definition: DenseBase.h:59
Definition: EigenBase.h:33
void applyHouseholderOnTheLeft(const EssentialPart &essential, const Scalar &tau, Scalar *workspace)
Definition: Householder.h:105
PlainObject unitOrthogonal(void) const
Definition: OrthoMethods.h:250
void computeInverseAndDetWithCheck(ResultType &inverse, typename ResultType::Scalar &determinant, bool &invertible, const RealScalar &absDeterminantThreshold=NumTraits< Scalar >::dummy_precision()) const
Definition: InverseImpl.h:307
void normalize()
Definition: Dot.h:113
RealScalar norm() const
Definition: Dot.h:78
Expression of the inverse of another expression.
Definition: Inverse.h:43
bool operator!=(const MatrixBase< OtherDerived > &other) const
Definition: MatrixBase.h:291
Matrix< Scalar, 3, 1 > canonicalEulerAngles(Index a0, Index a1, Index a2) const
Definition: EulerAngles.h:45
bool isUpperTriangular(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition: TriangularMatrix.h:585
static const BasisReturnType UnitX()
Definition: CwiseNullaryOp.h:899
constexpr Index cols() const noexcept
Definition: EigenBase.h:61
Derived & operator+=(const MatrixBase< OtherDerived > &other)
Definition: CwiseBinaryOp.h:159
void stableNormalize()
Definition: Dot.h:156
const Derived & forceAlignedAccess() const
Definition: MatrixBase.h:299
RealScalar squaredNorm() const
Definition: Dot.h:66
const MatrixFunctionReturnValue< Derived > cos() const
This function requires the <a * href="unsupported/group__MatrixFunctions__Module.html"> unsupported M...
const Product< Derived, OtherDerived > operator*(const MatrixBase< OtherDerived > &other) const
Definition: GeneralProduct.h:455
const MatrixLogarithmReturnValue< Derived > log() const
This function requires the <a * href="unsupported/group__MatrixFunctions__Module.html"> unsupported M...
ArrayWrapper< Derived > array()
Definition: MatrixBase.h:320
Householder rank-revealing QR decomposition of a matrix with column-pivoting.
Definition: ForwardDeclarations.h:429
Standard Cholesky decomposition (LL^T) of a matrix and associated features.
Definition: LLT.h:70
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:82
const MatrixFunctionReturnValue< Derived > atanh() const
This function requires the <a * href="unsupported/group__MatrixFunctions__Module.html"> unsupported M...
Definition: DenseBase.h:108
const HouseholderQR< PlainObject > householderQr() const
Definition: HouseholderQR.h:537
const ArrayWrapper< const Derived > array() const
Definition: MatrixBase.h:323
bool isDiagonal(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition: DiagonalMatrix.h:360
Base class for skew symmetric matrices and expressions.
Definition: SkewSymmetricMatrix3.h:35
const MatrixFunctionReturnValue< Derived > sin() const
This function requires the <a * href="unsupported/group__MatrixFunctions__Module.html"> unsupported M...
Expression of a selfadjoint matrix from a triangular part of a dense matrix.
Definition: SelfAdjointView.h:51
const DiagonalWrapper< const Derived > asDiagonal() const
Definition: DiagonalMatrix.h:347
const MatrixExponentialReturnValue< Derived > exp() const
This function requires the <a * href="unsupported/group__MatrixFunctions__Module.html"> unsupported M...
static const BasisReturnType UnitY()
Definition: CwiseNullaryOp.h:911
void adjointInPlace()
Definition: Transpose.h:350
Definition: DenseBase.h:96
static const BasisReturnType Unit(Index size, Index i)
Definition: CwiseNullaryOp.h:870
class Bidiagonal Divide and Conquer SVD
Definition: ForwardDeclarations.h:439
const LDLT< PlainObject > ldlt() const
Definition: LDLT.h:643
Definition: Constants.h:269
constexpr Derived & derived()
Definition: EigenBase.h:49
const MatrixFunctionReturnValue< Derived > acosh() const
This function requires the <a * href="unsupported/group__MatrixFunctions__Module.html"> unsupported M...
EIGEN_DEPRECATED_WITH_REASON("Initialization is no longer needed.") inline void initParallel()
Definition: Parallelizer.h:50
RealScalar operatorNorm() const
Computes the L2 operator norm.
Definition: MatrixBaseEigenvalues.h:111
const PlainObject stableNormalized() const
Definition: Dot.h:133
const Inverse< Derived > inverse() const
Definition: InverseImpl.h:279
bool isLowerTriangular(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition: TriangularMatrix.h:607
const HNormalizedReturnType hnormalized() const
homogeneous normalization
Definition: Homogeneous.h:164
static const IdentityReturnType Identity()
Definition: CwiseNullaryOp.h:785
Expression of a fixed-size or dynamic-size block.
Definition: Block.h:109
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
Derived & operator-=(const MatrixBase< OtherDerived > &other)
Definition: CwiseBinaryOp.h:148
ScalarBinaryOpTraits< typename internal::traits< Derived >::Scalar, typename internal::traits< OtherDerived >::Scalar >::ReturnType dot(const MatrixBase< OtherDerived > &other) const
Definition: Dot.h:52
LU decomposition of a matrix with complete pivoting, and related features.
Definition: ForwardDeclarations.h:419
void applyHouseholderOnTheRight(const EssentialPart &essential, const Scalar &tau, Scalar *workspace)
Definition: Householder.h:137
RealScalar lpNorm() const
Definition: Dot.h:224
Householder QR decomposition of a matrix.
Definition: ForwardDeclarations.h:427
Base class for diagonal matrices and expressions.
Definition: DiagonalMatrix.h:33
Two-sided Jacobi SVD decomposition of a rectangular matrix.
Definition: ForwardDeclarations.h:437
Expression of a triangular part in a matrix.
Definition: TriangularMatrix.h:166
Derived & operator=(const MatrixBase &other)
Definition: Assign.h:51
Derived & forceAlignedAccess()
Definition: MatrixBase.h:300
const LLT< PlainObject > llt() const
Definition: LLT.h:498
Derived & operator*=(const EigenBase< OtherDerived > &other)
Definition: MatrixBase.h:516
const MatrixFunctionReturnValue< Derived > matrixFunction(StemFunction f) const
Helper function for the unsupported MatrixFunctions module.
Determines whether the given binary operation of two numeric types is allowed and what the scalar ret...
Definition: XprHelper.h:1042
NoAlias< Derived, Eigen::MatrixBase > noalias()
Definition: NoAlias.h:96
bool isOrthogonal(const MatrixBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition: Dot.h:238
Expression of a diagonal/subdiagonal/superdiagonal in a matrix.
Definition: Diagonal.h:68
bool isSkewSymmetric(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition: SkewSymmetricMatrix3.h:319
void makeHouseholderInPlace(Scalar &tau, RealScalar &beta)
Definition: Householder.h:43
const int Dynamic
Definition: Constants.h:25
bool isIdentity(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition: CwiseNullaryOp.h:800
Generic expression where a coefficient-wise unary operator is applied to an expression.
Definition: CwiseUnaryOp.h:52
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:186
void computeInverseWithCheck(ResultType &inverse, bool &invertible, const RealScalar &absDeterminantThreshold=NumTraits< Scalar >::dummy_precision()) const
Definition: InverseImpl.h:343
constexpr Index rows() const noexcept
Definition: EigenBase.h:59
HomogeneousReturnType homogeneous() const
Definition: Homogeneous.h:124
constexpr Index cols() const noexcept
Definition: EigenBase.h:61
bool operator==(const MatrixBase< OtherDerived > &other) const
Definition: MatrixBase.h:282
Index diagonalSize() const
Definition: MatrixBase.h:102
EigenvaluesReturnType eigenvalues() const
Computes the eigenvalues of a matrix.
Definition: MatrixBaseEigenvalues.h:63
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:52
internal::cross_impl< Derived, OtherDerived >::return_type cross(const MatrixBase< OtherDerived > &other) const
Definition: OrthoMethods.h:91
Scalar determinant() const
Definition: Determinant.h:90
static const BasisReturnType UnitZ()
Definition: CwiseNullaryOp.h:923
Derived & setUnit(Index i)
Set the coefficients of *this to the i-th unit (basis) vector.
Definition: CwiseNullaryOp.h:948
DiagonalReturnType diagonal()
Definition: Diagonal.h:160
const Product< Derived, OtherDerived, LazyProduct > lazyProduct(const MatrixBase< OtherDerived > &other) const
Definition: GeneralProduct.h:497
RealScalar hypotNorm() const
Definition: StableNorm.h:208