10 #ifndef EIGEN_SCALING_H
11 #define EIGEN_SCALING_H
32 template<
typename _Scalar>
50 inline const Scalar& factor()
const {
return m_factor; }
51 inline Scalar& factor() {
return m_factor; }
62 template<
int Dim,
int Mode,
int Options>
66 res.prescale(factor());
72 template<
typename Derived>
74 {
return other * m_factor; }
76 template<
typename Derived,
int Dim>
89 template<
typename NewScalarType>
94 template<
typename OtherScalarType>
96 { m_factor =
Scalar(other.factor()); }
103 {
return internal::isApprox(m_factor, other.factor(), prec); }
115 template<
typename Derived,
typename Scalar>
116 EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(Derived,Scalar,product)
118 {
return matrix.derived() * s.factor(); }
125 template<
typename RealScalar>
130 template<
typename Scalar>
134 template<
typename Scalar>
141 template<
typename Derived>
155 template<
typename Scalar>
162 res.
linear().diagonal().fill(factor());
170 #endif // EIGEN_SCALING_H
Namespace containing all symbols from the Eigen library.
Definition: Core:309
Represents a diagonal matrix with its storage.
Definition: DiagonalMatrix.h:118
DiagonalMatrix< float, 2 > AlignedScaling2f
Definition: Scaling.h:146
@ Affine
Definition: Constants.h:450
UniformScaling< float > Scaling(float s)
Definition: Scaling.h:121
DiagonalMatrix< double, 3 > AlignedScaling3d
Definition: Scaling.h:152
DiagonalMatrix< float, 3 > AlignedScaling3f
Definition: Scaling.h:150
@ Isometry
Definition: Constants.h:447
Common base class for compact rotation representations.
Definition: RotationBase.h:30
const DiagonalWrapper< const Derived > asDiagonal() const
Definition: DiagonalMatrix.h:277
Expression of a diagonal matrix.
Definition: DiagonalMatrix.h:247
DiagonalMatrix< double, 2 > AlignedScaling2d
Definition: Scaling.h:148
Represents a translation transformation.
Definition: Translation.h:31
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:180
RotationMatrixType toRotationMatrix() const
Definition: RotationBase.h:45
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:50
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
Definition: NumTraits.h:151