Diff for /rpl/lapack/lapack/dlapy3.f between versions 1.10 and 1.18

version 1.10, 2012/08/22 09:48:18 version 1.18, 2023/08/07 08:38:55
Line 1 Line 1
 *> \brief \b DLAPY3  *> \brief \b DLAPY3 returns sqrt(x2+y2+z2).
 *  *
 *  =========== DOCUMENTATION ===========  *  =========== DOCUMENTATION ===========
 *  *
 * Online html documentation available at   * Online html documentation available at
 *            http://www.netlib.org/lapack/explore-html/   *            http://www.netlib.org/lapack/explore-html/
 *  *
 *> \htmlonly  *> \htmlonly
 *> Download DLAPY3 + dependencies   *> Download DLAPY3 + dependencies
 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dlapy3.f">   *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dlapy3.f">
 *> [TGZ]</a>   *> [TGZ]</a>
 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dlapy3.f">   *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dlapy3.f">
 *> [ZIP]</a>   *> [ZIP]</a>
 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dlapy3.f">   *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dlapy3.f">
 *> [TXT]</a>  *> [TXT]</a>
 *> \endhtmlonly   *> \endhtmlonly
 *  *
 *  Definition:  *  Definition:
 *  ===========  *  ===========
 *  *
 *       DOUBLE PRECISION FUNCTION DLAPY3( X, Y, Z )  *       DOUBLE PRECISION FUNCTION DLAPY3( X, Y, Z )
 *   *
 *       .. Scalar Arguments ..  *       .. Scalar Arguments ..
 *       DOUBLE PRECISION   X, Y, Z  *       DOUBLE PRECISION   X, Y, Z
 *       ..  *       ..
 *    *
 *  *
 *> \par Purpose:  *> \par Purpose:
 *  =============  *  =============
Line 31 Line 31
 *> \verbatim  *> \verbatim
 *>  *>
 *> DLAPY3 returns sqrt(x**2+y**2+z**2), taking care not to cause  *> DLAPY3 returns sqrt(x**2+y**2+z**2), taking care not to cause
 *> unnecessary overflow.  *> unnecessary overflow and unnecessary underflow.
 *> \endverbatim  *> \endverbatim
 *  *
 *  Arguments:  *  Arguments:
Line 56 Line 56
 *  Authors:  *  Authors:
 *  ========  *  ========
 *  *
 *> \author Univ. of Tennessee   *> \author Univ. of Tennessee
 *> \author Univ. of California Berkeley   *> \author Univ. of California Berkeley
 *> \author Univ. of Colorado Denver   *> \author Univ. of Colorado Denver
 *> \author NAG Ltd.   *> \author NAG Ltd.
 *  *
 *> \date November 2011  *> \ingroup OTHERauxiliary
 *  
 *> \ingroup auxOTHERauxiliary  
 *  *
 *  =====================================================================  *  =====================================================================
       DOUBLE PRECISION FUNCTION DLAPY3( X, Y, Z )        DOUBLE PRECISION FUNCTION DLAPY3( X, Y, Z )
 *  *
 *  -- LAPACK auxiliary routine (version 3.4.0) --  *  -- LAPACK auxiliary routine --
 *  -- LAPACK is a software package provided by Univ. of Tennessee,    --  *  -- LAPACK is a software package provided by Univ. of Tennessee,    --
 *  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--  *  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
 *     November 2011  
 *  *
 *     .. Scalar Arguments ..  *     .. Scalar Arguments ..
       DOUBLE PRECISION   X, Y, Z        DOUBLE PRECISION   X, Y, Z
Line 84 Line 81
       PARAMETER          ( ZERO = 0.0D0 )        PARAMETER          ( ZERO = 0.0D0 )
 *     ..  *     ..
 *     .. Local Scalars ..  *     .. Local Scalars ..
       DOUBLE PRECISION   W, XABS, YABS, ZABS        DOUBLE PRECISION   W, XABS, YABS, ZABS, HUGEVAL
   *     ..
   *     .. External Subroutines ..
         DOUBLE PRECISION   DLAMCH
 *     ..  *     ..
 *     .. Intrinsic Functions ..  *     .. Intrinsic Functions ..
       INTRINSIC          ABS, MAX, SQRT        INTRINSIC          ABS, MAX, SQRT
 *     ..  *     ..
 *     .. Executable Statements ..  *     .. Executable Statements ..
 *  *
         HUGEVAL = DLAMCH( 'Overflow' )
       XABS = ABS( X )        XABS = ABS( X )
       YABS = ABS( Y )        YABS = ABS( Y )
       ZABS = ABS( Z )        ZABS = ABS( Z )
       W = MAX( XABS, YABS, ZABS )        W = MAX( XABS, YABS, ZABS )
       IF( W.EQ.ZERO ) THEN        IF( W.EQ.ZERO .OR. W.GT.HUGEVAL ) THEN
 *     W can be zero for max(0,nan,0)  *     W can be zero for max(0,nan,0)
 *     adding all three entries together will make sure  *     adding all three entries together will make sure
 *     NaN will not disappear.  *     NaN will not disappear.

Removed from v.1.10  
changed lines
  Added in v.1.18


CVSweb interface <joel.bertrand@systella.fr>