12#ifndef EIGEN_TRANSFORM_H
13#define EIGEN_TRANSFORM_H
19template<
typename Transform>
25 HDim = Transform::HDim,
26 Mode = Transform::Mode,
31template<
typename TransformType,
36 int RhsCols = MatrixType::ColsAtCompileTime>
39template<
typename Other,
44 int OtherRows=Other::RowsAtCompileTime,
45 int OtherCols=Other::ColsAtCompileTime>
48template<
typename Lhs,
55template<
typename Other,
60 int OtherRows=Other::RowsAtCompileTime,
61 int OtherCols=Other::ColsAtCompileTime>
66template<
typename _Scalar,
int _Dim,
int _Mode,
int _Options>
69 typedef _Scalar Scalar;
75 ColsAtCompileTime = Dim1,
76 MaxRowsAtCompileTime = RowsAtCompileTime,
77 MaxColsAtCompileTime = ColsAtCompileTime,
203template<
typename _Scalar,
int _Dim,
int _Mode,
int _Options>
247 enum { TransformTimeDiagonalMode = ((Mode==int(
Isometry))?
Affine:int(Mode)) };
261 check_template_params();
267 check_template_params();
270 EIGEN_DEVICE_FUNC
inline explicit Transform(
const UniformScaling<Scalar>& s)
272 check_template_params();
275 template<
typename Derived>
276 EIGEN_DEVICE_FUNC
inline explicit Transform(
const RotationBase<Derived, Dim>& r)
278 check_template_params();
282 typedef internal::transform_take_affine_part<Transform> take_affine_part;
285 template<
typename OtherDerived>
289 YOU_MIXED_DIFFERENT_NUMERIC_TYPES__YOU_NEED_TO_USE_THE_CAST_METHOD_OF_MATRIXBASE_TO_CAST_NUMERIC_TYPES_EXPLICITLY);
291 check_template_params();
296 template<
typename OtherDerived>
300 YOU_MIXED_DIFFERENT_NUMERIC_TYPES__YOU_NEED_TO_USE_THE_CAST_METHOD_OF_MATRIXBASE_TO_CAST_NUMERIC_TYPES_EXPLICITLY);
306 template<
int OtherOptions>
309 check_template_params();
311 m_matrix = other.matrix();
314 template<
int OtherMode,
int OtherOptions>
315 EIGEN_DEVICE_FUNC
inline Transform(
const Transform<Scalar,Dim,OtherMode,OtherOptions>& other)
317 check_template_params();
321 YOU_PERFORMED_AN_INVALID_TRANSFORMATION_CONVERSION)
326 YOU_PERFORMED_AN_INVALID_TRANSFORMATION_CONVERSION)
332 if(EIGEN_CONST_CONDITIONAL(ModeIsAffineCompact == OtherModeIsAffineCompact))
337 m_matrix.template block<Dim,Dim+1>(0,0) = other.matrix().template block<Dim,Dim+1>(0,0);
340 else if(EIGEN_CONST_CONDITIONAL(OtherModeIsAffineCompact))
343 internal::transform_construct_from_matrix<OtherMatrixType,Mode,Options,Dim,HDim>::run(
this, other.matrix());
350 linear() = other.linear();
355 template<
typename OtherDerived>
356 EIGEN_DEVICE_FUNC
Transform(
const ReturnByValue<OtherDerived>& other)
358 check_template_params();
362 template<
typename OtherDerived>
369 #ifdef EIGEN_QT_SUPPORT
372 inline QMatrix toQMatrix(
void)
const;
373 inline Transform(
const QTransform& other);
375 inline QTransform toQTransform(
void)
const;
378 EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR
Index rows() const EIGEN_NOEXCEPT {
return int(Mode)==int(
Projective) ? m_matrix.cols() : (m_matrix.cols()-1); }
379 EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR
Index cols() const EIGEN_NOEXCEPT {
return m_matrix.cols(); }
433 template<
typename OtherDerived>
445 template<
typename OtherDerived>
friend
456 template<
typename DiagonalDerived>
461 res.linearExt() *= b;
471 template<
typename DiagonalDerived>
476 res.linear().noalias() = a*b.
linear();
479 res.matrix().row(Dim) = b.
matrix().row(Dim);
483 template<
typename OtherDerived>
504 typedef typename ProductType::ResultType ResultType;
509 template<
int OtherMode,
int OtherOptions>
510 inline typename icc_11_workaround<OtherMode,OtherOptions>::ResultType
511 operator * (
const Transform<Scalar,Dim,OtherMode,OtherOptions>& other)
const
513 typedef typename icc_11_workaround<OtherMode,OtherOptions>::ProductType ProductType;
514 return ProductType::run(*
this,other);
518 template<
int OtherMode,
int OtherOptions>
519 EIGEN_DEVICE_FUNC
inline typename internal::transform_transform_product_impl<Transform,Transform<Scalar,Dim,OtherMode,OtherOptions> >::ResultType
538 template<
typename OtherDerived>
542 template<
typename OtherDerived>
549 template<
typename OtherDerived>
553 template<
typename OtherDerived>
557 template<
typename RotationType>
561 template<
typename RotationType>
579 inline Transform& operator*=(
const UniformScaling<Scalar>& s) {
return scale(s.factor()); }
585 res.scale(s.factor());
590 inline Transform& operator*=(
const DiagonalMatrix<Scalar,Dim>& s) { linearExt() *= s;
return *
this; }
592 template<
typename Derived>
594 template<
typename Derived>
595 EIGEN_DEVICE_FUNC
inline Transform& operator*=(
const RotationBase<Derived,Dim>& r) {
return rotate(r.toRotationMatrix()); }
596 template<
typename Derived>
597 EIGEN_DEVICE_FUNC
inline Transform operator*(
const RotationBase<Derived,Dim>& r)
const;
600 EIGEN_DEVICE_FUNC RotationReturnType
rotation()
const;
602 template<
typename RotationMatrixType,
typename ScalingMatrixType>
605 template<
typename ScalingMatrixType,
typename RotationMatrixType>
609 template<
typename PositionDerived,
typename OrientationType,
typename ScaleDerived>
611 Transform& fromPositionOrientationScale(
const MatrixBase<PositionDerived> &position,
612 const OrientationType& orientation,
const MatrixBase<ScaleDerived> &scale);
618 EIGEN_DEVICE_FUNC
const Scalar*
data()
const {
return m_matrix.data(); }
627 template<
typename NewScalarType>
632 template<
typename OtherScalarType>
635 check_template_params();
663 EIGEN_DEVICE_FUNC
inline const Block<
MatrixType,int(Mode)==int(
Projective)?HDim:Dim,Dim> linearExt()
const
664 {
return m_matrix.template block<int(Mode)==int(Projective)?HDim:Dim,Dim>(0,0); }
670 EIGEN_DEVICE_FUNC
inline Block<
MatrixType,int(Mode)==int(
Projective)?HDim:Dim,1> translationExt()
671 {
return m_matrix.template block<int(Mode)==int(Projective)?HDim:Dim,1>(0,Dim); }
676 EIGEN_DEVICE_FUNC
inline const Block<
MatrixType,int(Mode)==int(
Projective)?HDim:Dim,1> translationExt()
const
677 {
return m_matrix.template block<int(Mode)==int(Projective)?HDim:Dim,1>(0,Dim); }
680 #ifdef EIGEN_TRANSFORM_PLUGIN
681 #include EIGEN_TRANSFORM_PLUGIN
685 #ifndef EIGEN_PARSED_BY_DOXYGEN
686 EIGEN_DEVICE_FUNC
static EIGEN_STRONG_INLINE
void check_template_params()
688 EIGEN_STATIC_ASSERT((Options & (
DontAlign|
RowMajor)) == Options, INVALID_MATRIX_TEMPLATE_PARAMETERS)
695typedef Transform<float,2,Isometry> Isometry2f;
697typedef Transform<float,3,Isometry> Isometry3f;
699typedef Transform<double,2,Isometry> Isometry2d;
701typedef Transform<double,3,Isometry> Isometry3d;
704typedef Transform<float,2,Affine> Affine2f;
706typedef Transform<float,3,Affine> Affine3f;
708typedef Transform<double,2,Affine> Affine2d;
710typedef Transform<double,3,Affine> Affine3d;
713typedef Transform<float,2,AffineCompact> AffineCompact2f;
715typedef Transform<float,3,AffineCompact> AffineCompact3f;
717typedef Transform<double,2,AffineCompact> AffineCompact2d;
719typedef Transform<double,3,AffineCompact> AffineCompact3d;
722typedef Transform<float,2,Projective> Projective2f;
724typedef Transform<float,3,Projective> Projective3f;
726typedef Transform<double,2,Projective> Projective2d;
728typedef Transform<double,3,Projective> Projective3d;
734#ifdef EIGEN_QT_SUPPORT
739template<
typename Scalar,
int Dim,
int Mode,
int Options>
740Transform<Scalar,Dim,Mode,Options>::Transform(
const QMatrix& other)
742 check_template_params();
750template<
typename Scalar,
int Dim,
int Mode,
int Options>
751Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::operator=(
const QMatrix& other)
753 EIGEN_STATIC_ASSERT(Dim==2, YOU_MADE_A_PROGRAMMING_MISTAKE)
755 m_matrix << other.m11(), other.m21(), other.dx(),
756 other.m12(), other.m22(), other.dy();
758 m_matrix << other.m11(), other.m21(), other.dx(),
759 other.m12(), other.m22(), other.dy(),
770template<
typename Scalar,
int Dim,
int Mode,
int Options>
771QMatrix Transform<Scalar,Dim,Mode,Options>::toQMatrix(
void)
const
773 check_template_params();
774 EIGEN_STATIC_ASSERT(Dim==2, YOU_MADE_A_PROGRAMMING_MISTAKE)
775 return QMatrix(m_matrix.coeff(0,0), m_matrix.coeff(1,0),
776 m_matrix.coeff(0,1), m_matrix.coeff(1,1),
777 m_matrix.coeff(0,2), m_matrix.coeff(1,2));
784template<
typename Scalar,
int Dim,
int Mode,
int Options>
785Transform<Scalar,Dim,Mode,Options>::Transform(
const QTransform& other)
787 check_template_params();
795template<
typename Scalar,
int Dim,
int Mode,
int Options>
796Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::operator=(
const QTransform& other)
798 check_template_params();
799 EIGEN_STATIC_ASSERT(Dim==2, YOU_MADE_A_PROGRAMMING_MISTAKE)
801 m_matrix << other.m11(), other.m21(), other.dx(),
802 other.m12(), other.m22(), other.dy();
804 m_matrix << other.m11(), other.m21(), other.dx(),
805 other.m12(), other.m22(), other.dy(),
806 other.m13(), other.m23(), other.m33();
814template<
typename Scalar,
int Dim,
int Mode,
int Options>
815QTransform Transform<Scalar,Dim,Mode,Options>::toQTransform(
void)
const
817 EIGEN_STATIC_ASSERT(Dim==2, YOU_MADE_A_PROGRAMMING_MISTAKE)
819 return QTransform(m_matrix.coeff(0,0), m_matrix.coeff(1,0),
820 m_matrix.coeff(0,1), m_matrix.coeff(1,1),
821 m_matrix.coeff(0,2), m_matrix.coeff(1,2));
823 return QTransform(m_matrix.coeff(0,0), m_matrix.coeff(1,0), m_matrix.coeff(2,0),
824 m_matrix.coeff(0,1), m_matrix.coeff(1,1), m_matrix.coeff(2,1),
825 m_matrix.coeff(0,2), m_matrix.coeff(1,2), m_matrix.coeff(2,2));
837template<
typename Scalar,
int Dim,
int Mode,
int Options>
838template<
typename OtherDerived>
839EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
842 EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(
OtherDerived,
int(Dim))
843 EIGEN_STATIC_ASSERT(Mode!=
int(
Isometry), THIS_METHOD_IS_ONLY_FOR_SPECIFIC_TRANSFORMATIONS)
844 linearExt().noalias() = (linearExt() * other.
asDiagonal());
852template<
typename Scalar,
int Dim,
int Mode,
int Options>
855 EIGEN_STATIC_ASSERT(Mode!=
int(
Isometry), THIS_METHOD_IS_ONLY_FOR_SPECIFIC_TRANSFORMATIONS)
864template<
typename Scalar,
int Dim,
int Mode,
int Options>
865template<
typename OtherDerived>
869 EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(
OtherDerived,
int(Dim))
870 EIGEN_STATIC_ASSERT(Mode!=
int(
Isometry), THIS_METHOD_IS_ONLY_FOR_SPECIFIC_TRANSFORMATIONS)
871 affine().noalias() = (other.
asDiagonal() * affine());
879template<
typename Scalar,
int Dim,
int Mode,
int Options>
882 EIGEN_STATIC_ASSERT(Mode!=
int(
Isometry), THIS_METHOD_IS_ONLY_FOR_SPECIFIC_TRANSFORMATIONS)
891template<
typename Scalar,
int Dim,
int Mode,
int Options>
892template<
typename OtherDerived>
896 EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(
OtherDerived,
int(Dim))
897 translationExt() += linearExt() * other;
905template<
typename Scalar,
int Dim,
int Mode,
int Options>
906template<
typename OtherDerived>
910 EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(
OtherDerived,
int(Dim))
911 if(EIGEN_CONST_CONDITIONAL(
int(Mode)==
int(
Projective)))
912 affine() += other * m_matrix.row(Dim);
914 translation() += other;
935template<
typename Scalar,
int Dim,
int Mode,
int Options>
936template<
typename RotationType>
940 linearExt() *= internal::toRotationMatrix<Scalar,Dim>(rotation);
951template<
typename Scalar,
int Dim,
int Mode,
int Options>
952template<
typename RotationType>
956 m_matrix.template
block<Dim,HDim>(0,0) = internal::toRotationMatrix<Scalar,Dim>(rotation)
966template<
typename Scalar,
int Dim,
int Mode,
int Options>
970 EIGEN_STATIC_ASSERT(
int(Dim)==2, YOU_MADE_A_PROGRAMMING_MISTAKE)
971 EIGEN_STATIC_ASSERT(Mode!=
int(
Isometry), THIS_METHOD_IS_ONLY_FOR_SPECIFIC_TRANSFORMATIONS)
973 linear() << linear().col(0) + linear().col(1)*
sx, tmp;
982template<
typename Scalar,
int Dim,
int Mode,
int Options>
986 EIGEN_STATIC_ASSERT(
int(Dim)==2, YOU_MADE_A_PROGRAMMING_MISTAKE)
987 EIGEN_STATIC_ASSERT(Mode!=
int(
Isometry), THIS_METHOD_IS_ONLY_FOR_SPECIFIC_TRANSFORMATIONS)
989 shear.coeffRef(0, 1) =
sy;
990 shear.coeffRef(1, 0) =
sx;
999template<
typename Scalar,
int Dim,
int Mode,
int Options>
1003 translation() = t.vector();
1008template<
typename Scalar,
int Dim,
int Mode,
int Options>
1009EIGEN_DEVICE_FUNC
inline Transform<Scalar,Dim,Mode,Options> Transform<Scalar,Dim,Mode,Options>::operator*(
const TranslationType& t)
const
1011 Transform res = *
this;
1012 res.translate(t.vector());
1016template<
typename Scalar,
int Dim,
int Mode,
int Options>
1017EIGEN_DEVICE_FUNC
inline Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::operator=(
const UniformScaling<Scalar>& s)
1020 linear().diagonal().fill(s.factor());
1025template<
typename Scalar,
int Dim,
int Mode,
int Options>
1026template<
typename Derived>
1027EIGEN_DEVICE_FUNC
inline Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::operator=(
const RotationBase<Derived,Dim>& r)
1029 linear() = internal::toRotationMatrix<Scalar,Dim>(r);
1030 translation().setZero();
1035template<
typename Scalar,
int Dim,
int Mode,
int Options>
1036template<
typename Derived>
1037EIGEN_DEVICE_FUNC
inline Transform<Scalar,Dim,Mode,Options> Transform<Scalar,Dim,Mode,Options>::operator*(
const RotationBase<Derived,Dim>& r)
const
1039 Transform res = *
this;
1040 res.rotate(r.derived());
1050 template<
typename TransformType>
1051 EIGEN_DEVICE_FUNC
static inline
1052 const typename TransformType::LinearMatrixType run(
const TransformType& t)
1054 typedef typename TransformType::LinearMatrixType LinearMatrixType;
1055 LinearMatrixType result;
1056 t.computeRotationScaling(&result, (LinearMatrixType*)0);
1061 template<
typename TransformType>
1062 EIGEN_DEVICE_FUNC
static inline
1063 typename TransformType::ConstLinearPart run(
const TransformType& t)
1079template<
typename Scalar,
int Dim,
int Mode,
int Options>
1099template<
typename Scalar,
int Dim,
int Mode,
int Options>
1100template<
typename RotationMatrixType,
typename ScalingMatrixType>
1129template<
typename Scalar,
int Dim,
int Mode,
int Options>
1130template<
typename ScalingMatrixType,
typename RotationMatrixType>
1151template<
typename Scalar,
int Dim,
int Mode,
int Options>
1152template<
typename PositionDerived,
typename OrientationType,
typename ScaleDerived>
1157 linear() = internal::toRotationMatrix<Scalar,Dim>(
orientation);
1159 translation() = position;
1169 template<
typename MatrixType>
1170 EIGEN_DEVICE_FUNC
static void run(MatrixType &
mat)
1172 static const int Dim = MatrixType::ColsAtCompileTime-1;
1174 mat.coeffRef(Dim,Dim) =
typename MatrixType::Scalar(1);
1181 template<
typename MatrixType> EIGEN_DEVICE_FUNC
static void run(MatrixType &) { }
1185template<
typename TransformType,
int Mode=TransformType::Mode>
1188 EIGEN_DEVICE_FUNC
static inline void run(
const TransformType&, TransformType&)
1192template<
typename TransformType>
1195 EIGEN_DEVICE_FUNC
static inline void run(
const TransformType& m, TransformType& res)
1197 res.matrix() = m.matrix().inverse();
1224template<
typename Scalar,
int Dim,
int Mode,
int Options>
1245 eigen_assert(
false &&
"Invalid transform traits in Transform::Inverse");
1262 typedef typename TransformType::MatrixType MatrixType;
1263 typedef typename TransformType::AffinePart AffinePart;
1264 typedef typename TransformType::ConstAffinePart ConstAffinePart;
1265 static inline AffinePart run(MatrixType& m)
1267 static inline ConstAffinePart run(
const MatrixType& m)
1271template<
typename Scalar,
int Dim,
int Options>
1282template<
typename Other,
int Mode,
int Options,
int Dim,
int HDim>
1287 transform->linear() = other;
1288 transform->translation().
setZero();
1289 transform->makeAffine();
1293template<
typename Other,
int Mode,
int Options,
int Dim,
int HDim>
1298 transform->affine() = other;
1299 transform->makeAffine();
1303template<
typename Other,
int Mode,
int Options,
int Dim,
int HDim>
1307 { transform->matrix() = other; }
1310template<
typename Other,
int Options,
int Dim,
int HDim>
1321template<
int LhsMode,
int RhsMode>
1334template<
typename TransformType,
typename MatrixType,
int RhsCols>
1337 typedef typename MatrixType::PlainObject ResultType;
1339 static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ResultType run(
const TransformType& T,
const MatrixType& other)
1341 return T.matrix() * other;
1345template<
typename TransformType,
typename MatrixType,
int RhsCols>
1349 Dim = TransformType::Dim,
1350 HDim = TransformType::HDim,
1351 OtherRows = MatrixType::RowsAtCompileTime,
1352 OtherCols = MatrixType::ColsAtCompileTime
1355 typedef typename MatrixType::PlainObject ResultType;
1357 static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ResultType run(
const TransformType& T,
const MatrixType& other)
1359 EIGEN_STATIC_ASSERT(OtherRows==HDim, YOU_MIXED_MATRICES_OF_DIFFERENT_SIZES);
1361 typedef Block<ResultType, Dim, OtherCols, int(MatrixType::RowsAtCompileTime)==Dim>
TopLeftLhs;
1363 ResultType res(other.rows(),other.cols());
1365 res.row(OtherRows-1) = other.row(OtherRows-1);
1371template<
typename TransformType,
typename MatrixType,
int RhsCols>
1375 Dim = TransformType::Dim,
1376 HDim = TransformType::HDim,
1377 OtherRows = MatrixType::RowsAtCompileTime,
1378 OtherCols = MatrixType::ColsAtCompileTime
1381 typedef typename MatrixType::PlainObject ResultType;
1383 static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ResultType run(
const TransformType& T,
const MatrixType& other)
1385 EIGEN_STATIC_ASSERT(OtherRows==Dim, YOU_MIXED_MATRICES_OF_DIFFERENT_SIZES);
1395template<
typename TransformType,
typename MatrixType >
1398 typedef typename TransformType::MatrixType TransformMatrix;
1400 Dim = TransformType::Dim,
1401 HDim = TransformType::HDim,
1402 OtherRows = MatrixType::RowsAtCompileTime,
1403 WorkingRows = EIGEN_PLAIN_ENUM_MIN(TransformMatrix::RowsAtCompileTime,HDim)
1406 typedef typename MatrixType::PlainObject ResultType;
1408 static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ResultType run(
const TransformType& T,
const MatrixType& other)
1410 EIGEN_STATIC_ASSERT(OtherRows==Dim, YOU_MIXED_MATRICES_OF_DIFFERENT_SIZES);
1413 rhs.template
head<Dim>() = other; rhs[Dim] =
typename ResultType::Scalar(1);
1424template<
typename Other,
int Mode,
int Options,
int Dim,
int HDim>
1428 typedef typename TransformType::MatrixType MatrixType;
1435template<
typename Other,
int Options,
int Dim,
int HDim>
1439 typedef typename TransformType::MatrixType MatrixType;
1445 res.matrix().col(Dim) += other.col(Dim);
1451template<
typename Other,
int Mode,
int Options,
int Dim,
int HDim>
1455 typedef typename TransformType::MatrixType MatrixType;
1460 res.affine().noalias() = other *
tr.matrix();
1461 res.matrix().row(Dim) =
tr.matrix().row(Dim);
1467template<
typename Other,
int Options,
int Dim,
int HDim>
1471 typedef typename TransformType::MatrixType MatrixType;
1477 res.translation() += other.col(Dim);
1483template<
typename Other,
int Mode,
int Options,
int Dim,
int HDim>
1487 typedef typename TransformType::MatrixType MatrixType;
1493 res.matrix().row(Dim) =
tr.matrix().row(Dim);
1504template<
typename Scalar,
int Dim,
int LhsMode,
int LhsOptions,
int RhsMode,
int RhsOptions>
1514 res.linear() = lhs.linear() * rhs.linear();
1515 res.translation() = lhs.linear() * rhs.translation() + lhs.translation();
1521template<
typename Scalar,
int Dim,
int LhsMode,
int LhsOptions,
int RhsMode,
int RhsOptions>
1529 return ResultType( lhs.matrix() * rhs.matrix() );
1533template<
typename Scalar,
int Dim,
int LhsOptions,
int RhsOptions>
1542 res.matrix().template
topRows<Dim>() = lhs.matrix() * rhs.matrix();
1543 res.matrix().row(Dim) = rhs.matrix().row(Dim);
1548template<
typename Scalar,
int Dim,
int LhsOptions,
int RhsOptions>
1557 res.matrix().col(Dim) += lhs.matrix().col(Dim);
Expression of a fixed-size or dynamic-size block.
Definition Block.h:105
EIGEN_DEVICE_FUNC Derived & setZero()
Sets all coefficients in this expression to zero.
Definition CwiseNullaryOp.h:546
EIGEN_DEVICE_FUNC TransposeReturnType transpose()
Definition Transpose.h:182
EIGEN_DEVICE_FUNC bool isApprox(const DenseBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition Fuzzy.h:103
Base class for all dense matrices, vectors, and expressions.
Definition MatrixBase.h:50
EIGEN_DEVICE_FUNC const DiagonalWrapper< const Derived > asDiagonal() const
Definition DiagonalMatrix.h:325
static EIGEN_DEVICE_FUNC const IdentityReturnType Identity()
Definition CwiseNullaryOp.h:799
EIGEN_DEVICE_FUNC const AdjointReturnType adjoint() const
Definition Transpose.h:221
NoAlias< Derived, Eigen::MatrixBase > EIGEN_DEVICE_FUNC noalias()
Definition NoAlias.h:102
EIGEN_DEVICE_FUNC Scalar determinant() const
\lu_module
Definition Determinant.h:108
EIGEN_DEVICE_FUNC const Inverse< Derived > inverse() const
\lu_module
Definition InverseImpl.h:348
EIGEN_DEVICE_FUNC Derived & setIdentity()
Writes the identity expression (not necessarily square) into *this.
Definition CwiseNullaryOp.h:873
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & coeffRef(Index rowId, Index colId)
This is an overloaded version of DenseCoeffsBase<Derived,WriteAccessors>::coeffRef(Index,...
Definition PlainObjectBase.h:175
TransformTraits
Enum used to specify how a particular transformation is stored in a matrix.
Definition Constants.h:455
@ DontAlign
Don't require alignment for the matrix itself (the array of coefficients, if dynamically allocated,...
Definition Constants.h:325
@ RowMajor
Storage order is row major (see TopicStorageOrders).
Definition Constants.h:321
@ ComputeFullV
Used in JacobiSVD to indicate that the square matrix V is to be computed.
Definition Constants.h:397
@ ComputeFullU
Used in JacobiSVD to indicate that the square matrix U is to be computed.
Definition Constants.h:393
@ Affine
Transformation is an affine transformation stored as a (Dim+1)^2 matrix whose last row is assumed to ...
Definition Constants.h:460
@ Projective
Transformation is a general projective transformation stored as a (Dim+1)^2 matrix.
Definition Constants.h:464
@ AffineCompact
Transformation is an affine transformation stored as a (Dim) x (Dim+1) matrix.
Definition Constants.h:462
@ Isometry
Transformation is an isometry.
Definition Constants.h:457
const unsigned int RowMajorBit
for a matrix, this means that the storage order is row-major.
Definition Constants.h:66
Namespace containing all symbols from the Eigen library.
Definition LDLT.h:16
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:74
const int Dynamic
This value means that a positive quantity (e.g., a size) is not known at compile-time,...
Definition Constants.h:22
The type used to identify a dense storage.
Definition Constants.h:507
Holds information about the various numeric (i.e.
Definition NumTraits.h:236
Definition XprHelper.h:510
Definition ForwardDeclarations.h:17