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 DiagonalMatrix< float, 3 > AlignedScaling3f
Definition: Scaling.h:150
DiagonalMatrix< float, 2 > AlignedScaling2f
Definition: Scaling.h:146
Definition: XprHelper.h:275
Represents a diagonal matrix with its storage.
Definition: DiagonalMatrix.h:116
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:85
DiagonalMatrix< double, 3 > AlignedScaling3d
Definition: Scaling.h:152
Holds information about the various numeric (i.e.
Definition: NumTraits.h:150
UniformScaling< float > Scaling(float s)
Constructs a uniform scaling from scale factor s.
Definition: Scaling.h:121
Definition: ForwardDeclarations.h:271
Common base class for compact rotation representations.
Definition: ForwardDeclarations.h:266
EIGEN_DEVICE_FUNC const DiagonalWrapper< const Derived > asDiagonal() const
Definition: DiagonalMatrix.h:277
DiagonalMatrix< double, 2 > AlignedScaling2d
Definition: Scaling.h:148
EIGEN_DEVICE_FUNC RotationMatrixType toRotationMatrix() const
Definition: RotationBase.h:45
Expression of a diagonal matrix.
Definition: DiagonalMatrix.h:245
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:178
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:48