10 #ifndef EIGEN_SCALING_H
11 #define EIGEN_SCALING_H
39 template <
typename Scalar,
int Dim,
int Mode>
40 struct uniformscaling_times_affine_returntype
46 typedef Transform <Scalar, Dim, NewMode> type;
50 template<
typename Scalar_>
80 template<
int Dim,
int Mode,
int Options>
92 template<
typename Derived>
96 template<
typename Derived,
int Dim>
109 template<
typename NewScalarType>
114 template<
typename OtherScalarType>
135 template<
typename Derived,
typename Scalar>
138 {
return matrix.derived() * s.factor(); }
145 template<
typename RealScalar>
150 template<
typename Scalar>
154 template<
typename Scalar>
161 template<
typename Derived>
166 template<
typename Derived>
180 template<
typename Scalar>
186 res.matrix().setZero();
187 res.linear().diagonal().fill(factor());
188 res.translation() = factor() * t.
vector();
#define EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(EXPR, SCALAR, OPNAME)
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
DiagonalMatrix< Scalar, DiagonalVectorType::SizeAtCompileTime, DiagonalVectorType::MaxSizeAtCompileTime > PlainObject
Represents a diagonal matrix with its storage.
Expression of a diagonal matrix.
Base class for all dense matrices, vectors, and expressions.
const DiagonalWrapper< const Derived > asDiagonal() const
The matrix class, also used for vectors and row-vectors.
Common base class for compact rotation representations.
RotationMatrixType toRotationMatrix() const
Represents a translation transformation.
const VectorType & vector() const
bool isApprox(const Scalar &x, const Scalar &y, const typename NumTraits< Scalar >::Real &precision=NumTraits< Scalar >::dummy_precision())
UniformScaling< float > Scaling(float s)
DiagonalMatrix< double, 3 > AlignedScaling3d
DiagonalMatrix< float, 3 > AlignedScaling3f
DiagonalMatrix< float, 2 > AlignedScaling2f
DiagonalMatrix< double, 2 > AlignedScaling2d
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.