mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Various fixes in:
- vector to vector assign - PartialRedux - Vectorization criteria of Product - returned type of normalized - SSE integer mul
This commit is contained in:
@@ -135,7 +135,7 @@ template<typename Derived>
|
||||
const CwiseUnaryOp<ei_scalar_multiple_op<typename ei_traits<Derived>::Scalar>, Derived>
|
||||
MatrixBase<Derived>::normalized() const
|
||||
{
|
||||
return (*this) / norm();
|
||||
return (*this) * (Scalar(1)/norm());
|
||||
}
|
||||
|
||||
/** \returns true if *this is approximately orthogonal to \a other,
|
||||
|
||||
Reference in New Issue
Block a user