| 173 | * \sa VectorwiseOp::hnormalized() */ |
| 174 | template<typename Derived> |
| 175 | EIGEN_DEVICE_FUNC inline const typename MatrixBase<Derived>::HNormalizedReturnType |
| 176 | MatrixBase<Derived>::hnormalized() const |
| 177 | { |
| 178 | EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived); |
| 179 | return ConstStartMinusOne(derived(),0,0, |
| 180 | ColsAtCompileTime==1?size()-1:1, |
| 181 | ColsAtCompileTime==1?1:size()-1) / coeff(size()-1); |
| 182 | } |
| 183 | |
| 184 | /** \geometry_module \ingroup Geometry_Module |
| 185 | * |