mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Added Scaling function overload for vector rvalue reference
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
ba2cb835aa
commit
2c0ef43b48
@@ -162,6 +162,11 @@ template<typename Derived>
|
||||
inline const DiagonalWrapper<const Derived> Scaling(const MatrixBase<Derived>& coeffs)
|
||||
{ return coeffs.asDiagonal(); }
|
||||
|
||||
/** Constructs an axis aligned scaling expression from vector \a coeffs when passed as an rvalue reference */
|
||||
template<typename Derived>
|
||||
inline typename DiagonalWrapper<const Derived>::PlainObject Scaling(MatrixBase<Derived>&& coeffs)
|
||||
{ return typename DiagonalWrapper<const Derived>::PlainObject(std::move(coeffs.derived())); }
|
||||
|
||||
/** \deprecated */
|
||||
typedef DiagonalMatrix<float, 2> AlignedScaling2f;
|
||||
/** \deprecated */
|
||||
|
||||
Reference in New Issue
Block a user