10 #ifndef EIGEN_SCALING_H 11 #define EIGEN_SCALING_H 37 template <
typename Scalar,
int Dim,
int Mode>
38 struct uniformscaling_times_affine_returntype
44 typedef Transform <Scalar, Dim, NewMode> type;
48 template<
typename _Scalar>
66 inline const Scalar& factor()
const {
return m_factor; }
67 inline Scalar& factor() {
return m_factor; }
78 template<
int Dim,
int Mode,
int Options>
84 res.prescale(factor());
90 template<
typename Derived>
92 {
return other * m_factor; }
94 template<
typename Derived,
int Dim>
107 template<
typename NewScalarType>
112 template<
typename OtherScalarType>
114 { m_factor = Scalar(other.factor()); }
121 {
return internal::isApprox(m_factor, other.factor(), prec); }
133 template<
typename Derived,
typename Scalar>
134 EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(Derived,Scalar,product)
136 {
return matrix.derived() * s.factor(); }
143 template<
typename RealScalar>
148 template<
typename Scalar>
152 template<
typename Scalar>
159 template<
typename Derived>
173 template<
typename Scalar>
180 res.
linear().diagonal().fill(factor());
188 #endif // EIGEN_SCALING_H
DiagonalMatrix< float, 3 > AlignedScaling3f
Definition: Scaling.h:168
DiagonalMatrix< float, 2 > AlignedScaling2f
Definition: Scaling.h:164
Represents a diagonal matrix with its storage.
Definition: DiagonalMatrix.h:140
Namespace containing all symbols from the Eigen library.
Definition: Core:141
Definition: Constants.h:457
DiagonalMatrix< double, 3 > AlignedScaling3d
Definition: Scaling.h:170
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
Definition: NumTraits.h:232
RotationMatrixType toRotationMatrix() const
Definition: RotationBase.h:45
UniformScaling< float > Scaling(float s)
Definition: Scaling.h:139
Represents a translation transformation.
Definition: Translation.h:30
const Product< MatrixDerived, PermutationDerived, AliasFreeProduct > operator*(const MatrixBase< MatrixDerived > &matrix, const PermutationBase< PermutationDerived > &permutation)
Definition: PermutationMatrix.h:515
Common base class for compact rotation representations.
Definition: RotationBase.h:29
const DiagonalWrapper< const Derived > asDiagonal() const
Definition: DiagonalMatrix.h:325
DiagonalMatrix< double, 2 > AlignedScaling2d
Definition: Scaling.h:166
Definition: Eigen_Colamd.h:50
Expression of a diagonal matrix.
Definition: DiagonalMatrix.h:293
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:178
Definition: Constants.h:460
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:48