10 #ifndef EIGEN_SCALING_H 11 #define EIGEN_SCALING_H 37 template <
typename Scalar,
int Dim,
int Mode>
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>
90 template<
typename Derived>
92 {
return other * m_factor; }
94 template<
typename Derived,
int Dim>
107 template<
typename NewScalarType>
112 template<
typename OtherScalarType>
133 template<
typename Derived,
typename Scalar>
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
#define EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(EXPR, SCALAR, OPNAME)
DiagonalMatrix< float, 3 > AlignedScaling3f
DiagonalMatrix< float, 2 > AlignedScaling2f
Represents a diagonal matrix with its storage.
Namespace containing all symbols from the Eigen library.
DiagonalMatrix< double, 3 > AlignedScaling3d
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
UniformScaling< float > Scaling(float s)
Represents a translation transformation.
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
EIGEN_DEVICE_FUNC const VectorType & vector() const
Common base class for compact rotation representations.
DiagonalMatrix< double, 2 > AlignedScaling2d
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorUInt128< uint64_t, uint64_t > operator*(const TensorUInt128< HL, LL > &lhs, const TensorUInt128< HR, LR > &rhs)
EIGEN_DEVICE_FUNC RotationMatrixType toRotationMatrix() const
EIGEN_DEVICE_FUNC const DiagonalWrapper< const Derived > asDiagonal() const
Expression of a diagonal matrix.
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
The matrix class, also used for vectors and row-vectors.
EIGEN_DEVICE_FUNC bool isApprox(const Scalar &x, const Scalar &y, const typename NumTraits< Scalar >::Real &precision=NumTraits< Scalar >::dummy_precision())
Base class for all dense matrices, vectors, and expressions.
void product(const MatrixType &m)