Lines Matching refs:Dim
24 Dim = Transform::Dim, enumerator
42 int Dim,
58 int Dim,
208 Dim = _Dim, ///< space dimension in which the transformation holds
210 Rows = int(Mode)==(AffineCompact) ? Dim : HDim
221 typedef Matrix<Scalar,Dim,Dim,Options> LinearMatrixType;
223 typedef Block<MatrixType,Dim,Dim,int(Mode)==(AffineCompact) && (Options&RowMajor)==0> LinearPart;
225 …typedef const Block<ConstMatrixType,Dim,Dim,int(Mode)==(AffineCompact) && (Options&RowMajor)==0> C…
229 Block<MatrixType,Dim,HDim> >::type AffinePart;
233 const Block<const MatrixType,Dim,HDim> >::type ConstAffinePart;
235 typedef Matrix<Scalar,Dim,1> VectorType;
237 …typedef Block<MatrixType,Dim,1,!(internal::traits<MatrixType>::Flags & RowMajorBit)> TranslationPa…
239 …typedef const Block<ConstMatrixType,Dim,1,!(internal::traits<MatrixType>::Flags & RowMajorBit)> Co…
241 typedef Translation<Scalar,Dim> TranslationType;
246 typedef Transform<Scalar,Dim,TransformTimeDiagonalMode> TransformTimeDiagonalReturnType;
279 EIGEN_DEVICE_FUNC inline explicit Transform(const RotationBase<Derived, Dim>& r)
298 …internal::transform_construct_from_matrix<OtherDerived,Mode,Options,Dim,HDim>::run(this, other.der…
308 …internal::transform_construct_from_matrix<OtherDerived,Mode,Options,Dim,HDim>::run(this, other.der…
313 EIGEN_DEVICE_FUNC inline Transform(const Transform<Scalar,Dim,Mode,OtherOptions>& other)
321 EIGEN_DEVICE_FUNC inline Transform(const Transform<Scalar,Dim,OtherMode,OtherOptions>& other)
343 m_matrix.template block<Dim,Dim+1>(0,0) = other.matrix().template block<Dim,Dim+1>(0,0);
348 typedef typename Transform<Scalar,Dim,OtherMode,OtherOptions>::MatrixType OtherMatrixType;
349 …internal::transform_construct_from_matrix<OtherMatrixType,Mode,Options,Dim,HDim>::run(this, other.…
410 …NC inline ConstTranslationPart translation() const { return ConstTranslationPart(m_matrix,0,Dim); }
412 EIGEN_DEVICE_FUNC inline TranslationPart translation() { return TranslationPart(m_matrix,0,Dim); }
454 …{ return internal::transform_left_product_impl<OtherDerived,Mode,Options,Dim,HDim>::run(a.derived(…
485 res.matrix().row(Dim) = b.matrix().row(Dim);
509 …typedef internal::transform_transform_product_impl<Transform,Transform<Scalar,Dim,OtherMode,OtherO…
517 operator * (const Transform<Scalar,Dim,OtherMode,OtherOptions>& other) const
525 …name internal::transform_transform_product_impl<Transform,Transform<Scalar,Dim,OtherMode,OtherOpti…
526 operator * (const Transform<Scalar,Dim,OtherMode,OtherOptions>& other) const
528 …return internal::transform_transform_product_impl<Transform,Transform<Scalar,Dim,OtherMode,OtherOp…
596 …inline Transform& operator*=(const DiagonalMatrix<Scalar,Dim>& s) { linearExt() *= s; return *this…
599 EIGEN_DEVICE_FUNC inline Transform& operator=(const RotationBase<Derived,Dim>& r);
601 …EIGEN_DEVICE_FUNC inline Transform& operator*=(const RotationBase<Derived,Dim>& r) { return rotate…
603 EIGEN_DEVICE_FUNC inline Transform operator*(const RotationBase<Derived,Dim>& r) const;
632 …line typename internal::cast_return_type<Transform,Transform<NewScalarType,Dim,Mode,Options> >::ty…
633 …{ return typename internal::cast_return_type<Transform,Transform<NewScalarType,Dim,Mode,Options> >…
637 …EIGEN_DEVICE_FUNC inline explicit Transform(const Transform<OtherScalarType,Dim,Mode,Options>& oth…
661 EIGEN_DEVICE_FUNC inline Block<MatrixType,int(Mode)==int(Projective)?HDim:Dim,Dim> linearExt()
662 { return m_matrix.template block<int(Mode)==int(Projective)?HDim:Dim,Dim>(0,0); }
667 …EIGEN_DEVICE_FUNC inline const Block<MatrixType,int(Mode)==int(Projective)?HDim:Dim,Dim> linearExt…
668 { return m_matrix.template block<int(Mode)==int(Projective)?HDim:Dim,Dim>(0,0); }
674 EIGEN_DEVICE_FUNC inline Block<MatrixType,int(Mode)==int(Projective)?HDim:Dim,1> translationExt()
675 { return m_matrix.template block<int(Mode)==int(Projective)?HDim:Dim,1>(0,Dim); }
680 …EIGEN_DEVICE_FUNC inline const Block<MatrixType,int(Mode)==int(Projective)?HDim:Dim,1> translation…
681 { return m_matrix.template block<int(Mode)==int(Projective)?HDim:Dim,1>(0,Dim); }
743 template<typename Scalar, int Dim, int Mode,int Options>
744 Transform<Scalar,Dim,Mode,Options>::Transform(const QMatrix& other)
754 template<typename Scalar, int Dim, int Mode,int Options>
755 Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::operator=(const QMatrix& ot…
757 EIGEN_STATIC_ASSERT(Dim==2, YOU_MADE_A_PROGRAMMING_MISTAKE)
774 template<typename Scalar, int Dim, int Mode, int Options>
775 QMatrix Transform<Scalar,Dim,Mode,Options>::toQMatrix(void) const
778 EIGEN_STATIC_ASSERT(Dim==2, YOU_MADE_A_PROGRAMMING_MISTAKE)
788 template<typename Scalar, int Dim, int Mode,int Options>
789 Transform<Scalar,Dim,Mode,Options>::Transform(const QTransform& other)
799 template<typename Scalar, int Dim, int Mode, int Options>
800 Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::operator=(const QTransform&…
803 EIGEN_STATIC_ASSERT(Dim==2, YOU_MADE_A_PROGRAMMING_MISTAKE)
818 template<typename Scalar, int Dim, int Mode, int Options>
819 QTransform Transform<Scalar,Dim,Mode,Options>::toQTransform(void) const
821 EIGEN_STATIC_ASSERT(Dim==2, YOU_MADE_A_PROGRAMMING_MISTAKE)
841 template<typename Scalar, int Dim, int Mode, int Options>
843 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
844 Transform<Scalar,Dim,Mode,Options>::scale(const MatrixBase<OtherDerived> &other)
846 EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(OtherDerived,int(Dim))
856 template<typename Scalar, int Dim, int Mode, int Options>
857 EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::sc…
868 template<typename Scalar, int Dim, int Mode, int Options>
870 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
871 Transform<Scalar,Dim,Mode,Options>::prescale(const MatrixBase<OtherDerived> &other)
873 EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(OtherDerived,int(Dim))
883 template<typename Scalar, int Dim, int Mode, int Options>
884 EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::pr…
887 m_matrix.template topRows<Dim>() *= s;
895 template<typename Scalar, int Dim, int Mode, int Options>
897 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
898 Transform<Scalar,Dim,Mode,Options>::translate(const MatrixBase<OtherDerived> &other)
900 EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(OtherDerived,int(Dim))
909 template<typename Scalar, int Dim, int Mode, int Options>
911 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
912 Transform<Scalar,Dim,Mode,Options>::pretranslate(const MatrixBase<OtherDerived> &other)
914 EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(OtherDerived,int(Dim))
916 affine() += other * m_matrix.row(Dim);
939 template<typename Scalar, int Dim, int Mode, int Options>
941 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
942 Transform<Scalar,Dim,Mode,Options>::rotate(const RotationType& rotation)
944 linearExt() *= internal::toRotationMatrix<Scalar,Dim>(rotation);
955 template<typename Scalar, int Dim, int Mode, int Options>
957 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
958 Transform<Scalar,Dim,Mode,Options>::prerotate(const RotationType& rotation)
960 m_matrix.template block<Dim,HDim>(0,0) = internal::toRotationMatrix<Scalar,Dim>(rotation)
961 * m_matrix.template block<Dim,HDim>(0,0);
970 template<typename Scalar, int Dim, int Mode, int Options>
971 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
972 Transform<Scalar,Dim,Mode,Options>::shear(const Scalar& sx, const Scalar& sy)
974 EIGEN_STATIC_ASSERT(int(Dim)==2, YOU_MADE_A_PROGRAMMING_MISTAKE)
986 template<typename Scalar, int Dim, int Mode, int Options>
987 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
988 Transform<Scalar,Dim,Mode,Options>::preshear(const Scalar& sx, const Scalar& sy)
990 EIGEN_STATIC_ASSERT(int(Dim)==2, YOU_MADE_A_PROGRAMMING_MISTAKE)
992 …m_matrix.template block<Dim,HDim>(0,0) = LinearMatrixType(1, sx, sy, 1) * m_matrix.template block<…
1000 template<typename Scalar, int Dim, int Mode, int Options>
1001 EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::op…
1009 template<typename Scalar, int Dim, int Mode, int Options>
1010 EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options> Transform<Scalar,Dim,Mode,Options>::ope…
1017 template<typename Scalar, int Dim, int Mode, int Options>
1018 EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::op…
1026 template<typename Scalar, int Dim, int Mode, int Options>
1028 …FUNC inline Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::operator=(cons…
1030 linear() = internal::toRotationMatrix<Scalar,Dim>(r);
1036 template<typename Scalar, int Dim, int Mode, int Options>
1038 …FUNC inline Transform<Scalar,Dim,Mode,Options> Transform<Scalar,Dim,Mode,Options>::operator*(const…
1056 template<typename Scalar, int Dim, int Mode, int Options>
1057 EIGEN_DEVICE_FUNC const typename Transform<Scalar,Dim,Mode,Options>::LinearMatrixType
1058 Transform<Scalar,Dim,Mode,Options>::rotation() const
1077 template<typename Scalar, int Dim, int Mode, int Options>
1079 EIGEN_DEVICE_FUNC void Transform<Scalar,Dim,Mode,Options>::computeRotationScaling(RotationMatrixTyp…
1106 template<typename Scalar, int Dim, int Mode, int Options>
1108 EIGEN_DEVICE_FUNC void Transform<Scalar,Dim,Mode,Options>::computeScalingRotation(ScalingMatrixType…
1127 template<typename Scalar, int Dim, int Mode, int Options>
1129 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
1130 Transform<Scalar,Dim,Mode,Options>::fromPositionOrientationScale(const MatrixBase<PositionDerived> …
1133 linear() = internal::toRotationMatrix<Scalar,Dim>(orientation);
1148 static const int Dim = MatrixType::ColsAtCompileTime-1;
1149 mat.template block<1,Dim>(Dim,0).setZero();
1150 mat.coeffRef(Dim,Dim) = typename MatrixType::Scalar(1);
1200 template<typename Scalar, int Dim, int Mode, int Options>
1201 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>
1202 Transform<Scalar,Dim,Mode,Options>::inverse(TransformTraits hint) const
1213 res.matrix().template topLeftCorner<Dim,Dim>() = linear().transpose();
1217 res.matrix().template topLeftCorner<Dim,Dim>() = linear().inverse();
1224 res.matrix().template topRightCorner<Dim,1>()
1225 = - res.matrix().template topLeftCorner<Dim,Dim>() * translation();
1242 { return m.template block<TransformType::Dim,TransformType::HDim>(0,0); }
1244 { return m.template block<TransformType::Dim,TransformType::HDim>(0,0); }
1247 template<typename Scalar, int Dim, int Options>
1248 struct transform_take_affine_part<Transform<Scalar,Dim,AffineCompact, Options> > {
1249 typedef typename Transform<Scalar,Dim,AffineCompact,Options>::MatrixType MatrixType;
1258 template<typename Other, int Mode, int Options, int Dim, int HDim>
1259 struct transform_construct_from_matrix<Other, Mode,Options,Dim,HDim, Dim,Dim>
1261 …static inline void run(Transform<typename Other::Scalar,Dim,Mode,Options> *transform, const Other&…
1269 template<typename Other, int Mode, int Options, int Dim, int HDim>
1270 struct transform_construct_from_matrix<Other, Mode,Options,Dim,HDim, Dim,HDim>
1272 …static inline void run(Transform<typename Other::Scalar,Dim,Mode,Options> *transform, const Other&…
1279 template<typename Other, int Mode, int Options, int Dim, int HDim>
1280 struct transform_construct_from_matrix<Other, Mode,Options,Dim,HDim, HDim,HDim>
1282 …static inline void run(Transform<typename Other::Scalar,Dim,Mode,Options> *transform, const Other&…
1286 template<typename Other, int Options, int Dim, int HDim>
1287 struct transform_construct_from_matrix<Other, AffineCompact,Options,Dim,HDim, HDim,HDim>
1289 …static inline void run(Transform<typename Other::Scalar,Dim,AffineCompact,Options> *transform, con…
1290 { transform->matrix() = other.template block<Dim,HDim>(0,0); }
1325 Dim = TransformType::Dim,
1337 typedef Block<ResultType, Dim, OtherCols, int(MatrixType::RowsAtCompileTime)==Dim> TopLeftLhs;
1340 TopLeftLhs(res, 0, 0, Dim, other.cols()).noalias() = T.affine() * other;
1351 Dim = TransformType::Dim,
1361 EIGEN_STATIC_ASSERT(OtherRows==Dim, YOU_MIXED_MATRICES_OF_DIFFERENT_SIZES);
1363 typedef Block<ResultType, Dim, OtherCols, true> TopLeftLhs;
1365 TopLeftLhs(res, 0, 0, Dim, other.cols()).noalias() += T.linear() * other;
1376 Dim = TransformType::Dim,
1386 EIGEN_STATIC_ASSERT(OtherRows==Dim, YOU_MIXED_MATRICES_OF_DIFFERENT_SIZES);
1388 Matrix<typename ResultType::Scalar, Dim+1, 1> rhs;
1389 rhs.template head<Dim>() = other; rhs[Dim] = typename ResultType::Scalar(1);
1391 return res.template head<Dim>();
1400 template<typename Other,int Mode, int Options, int Dim, int HDim>
1401 struct transform_left_product_impl<Other,Mode,Options,Dim,HDim, HDim,HDim>
1403 typedef Transform<typename Other::Scalar,Dim,Mode,Options> TransformType;
1405 typedef Transform<typename Other::Scalar,Dim,Projective,Options> ResultType;
1411 template<typename Other, int Options, int Dim, int HDim>
1412 struct transform_left_product_impl<Other,AffineCompact,Options,Dim,HDim, HDim,HDim>
1414 typedef Transform<typename Other::Scalar,Dim,AffineCompact,Options> TransformType;
1416 typedef Transform<typename Other::Scalar,Dim,Projective,Options> ResultType;
1420 res.matrix().noalias() = other.template block<HDim,Dim>(0,0) * tr.matrix();
1421 res.matrix().col(Dim) += other.col(Dim);
1427 template<typename Other,int Mode, int Options, int Dim, int HDim>
1428 struct transform_left_product_impl<Other,Mode,Options,Dim,HDim, Dim,HDim>
1430 typedef Transform<typename Other::Scalar,Dim,Mode,Options> TransformType;
1437 res.matrix().row(Dim) = tr.matrix().row(Dim);
1443 template<typename Other, int Options, int Dim, int HDim>
1444 struct transform_left_product_impl<Other,AffineCompact,Options,Dim,HDim, Dim,HDim>
1446 typedef Transform<typename Other::Scalar,Dim,AffineCompact,Options> TransformType;
1452 res.matrix().noalias() = other.template block<Dim,Dim>(0,0) * tr.matrix();
1453 res.translation() += other.col(Dim);
1459 template<typename Other,int Mode, int Options, int Dim, int HDim>
1460 struct transform_left_product_impl<Other,Mode,Options,Dim,HDim, Dim,Dim>
1462 typedef Transform<typename Other::Scalar,Dim,Mode,Options> TransformType;
1469 res.matrix().row(Dim) = tr.matrix().row(Dim);
1470 res.matrix().template topRows<Dim>().noalias()
1471 = other * tr.matrix().template topRows<Dim>();
1480 template<typename Scalar, int Dim, int LhsMode, int LhsOptions, int RhsMode, int RhsOptions>
1481 …uct transform_transform_product_impl<Transform<Scalar,Dim,LhsMode,LhsOptions>,Transform<Scalar,Dim…
1484 typedef Transform<Scalar,Dim,LhsMode,LhsOptions> Lhs;
1485 typedef Transform<Scalar,Dim,RhsMode,RhsOptions> Rhs;
1486 typedef Transform<Scalar,Dim,ResultMode,LhsOptions> ResultType;
1497 template<typename Scalar, int Dim, int LhsMode, int LhsOptions, int RhsMode, int RhsOptions>
1498 …uct transform_transform_product_impl<Transform<Scalar,Dim,LhsMode,LhsOptions>,Transform<Scalar,Dim…
1500 typedef Transform<Scalar,Dim,LhsMode,LhsOptions> Lhs;
1501 typedef Transform<Scalar,Dim,RhsMode,RhsOptions> Rhs;
1502 typedef Transform<Scalar,Dim,Projective> ResultType;
1509 template<typename Scalar, int Dim, int LhsOptions, int RhsOptions>
1510 … transform_transform_product_impl<Transform<Scalar,Dim,AffineCompact,LhsOptions>,Transform<Scalar,…
1512 typedef Transform<Scalar,Dim,AffineCompact,LhsOptions> Lhs;
1513 typedef Transform<Scalar,Dim,Projective,RhsOptions> Rhs;
1514 typedef Transform<Scalar,Dim,Projective> ResultType;
1518 res.matrix().template topRows<Dim>() = lhs.matrix() * rhs.matrix();
1519 res.matrix().row(Dim) = rhs.matrix().row(Dim);
1524 template<typename Scalar, int Dim, int LhsOptions, int RhsOptions>
1525 …ct transform_transform_product_impl<Transform<Scalar,Dim,Projective,LhsOptions>,Transform<Scalar,D…
1527 typedef Transform<Scalar,Dim,Projective,LhsOptions> Lhs;
1528 typedef Transform<Scalar,Dim,AffineCompact,RhsOptions> Rhs;
1529 typedef Transform<Scalar,Dim,Projective> ResultType;
1532 ResultType res(lhs.matrix().template leftCols<Dim>() * rhs.matrix());
1533 res.matrix().col(Dim) += lhs.matrix().col(Dim);