diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-01-23 22:40:11 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-01-23 22:40:11 +0100 |
commit | 1cf85bd875ecbcfa1240b4ec08122d40d79101fd (patch) | |
tree | 64dacc9ef8e8f8fd6d4de1a707fff0c3d73c917f /Eigen/src/Core/MatrixBase.h | |
parent | 369d6d1ae31c3e1a0f03196ccb9c792c6913ed76 (diff) |
bug #977: add stableNormalize[d] methods: they are analogues to normalize[d] but with carefull handling of under/over-flow
Diffstat (limited to 'Eigen/src/Core/MatrixBase.h')
-rw-r--r-- | Eigen/src/Core/MatrixBase.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Eigen/src/Core/MatrixBase.h b/Eigen/src/Core/MatrixBase.h index f3935802d..338879c73 100644 --- a/Eigen/src/Core/MatrixBase.h +++ b/Eigen/src/Core/MatrixBase.h @@ -204,7 +204,9 @@ template<typename Derived> class MatrixBase RealScalar blueNorm() const; RealScalar hypotNorm() const; EIGEN_DEVICE_FUNC const PlainObject normalized() const; + EIGEN_DEVICE_FUNC const PlainObject stableNormalized() const; EIGEN_DEVICE_FUNC void normalize(); + EIGEN_DEVICE_FUNC void stableNormalize(); EIGEN_DEVICE_FUNC const AdjointReturnType adjoint() const; EIGEN_DEVICE_FUNC void adjointInPlace(); |