version 1.5, 2010/08/07 13:22:25
|
version 1.10, 2012/08/22 09:48:24
|
Line 1
|
Line 1
|
|
*> \brief \b DRSCL |
|
* |
|
* =========== DOCUMENTATION =========== |
|
* |
|
* Online html documentation available at |
|
* http://www.netlib.org/lapack/explore-html/ |
|
* |
|
*> \htmlonly |
|
*> Download DRSCL + dependencies |
|
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/drscl.f"> |
|
*> [TGZ]</a> |
|
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/drscl.f"> |
|
*> [ZIP]</a> |
|
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/drscl.f"> |
|
*> [TXT]</a> |
|
*> \endhtmlonly |
|
* |
|
* Definition: |
|
* =========== |
|
* |
|
* SUBROUTINE DRSCL( N, SA, SX, INCX ) |
|
* |
|
* .. Scalar Arguments .. |
|
* INTEGER INCX, N |
|
* DOUBLE PRECISION SA |
|
* .. |
|
* .. Array Arguments .. |
|
* DOUBLE PRECISION SX( * ) |
|
* .. |
|
* |
|
* |
|
*> \par Purpose: |
|
* ============= |
|
*> |
|
*> \verbatim |
|
*> |
|
*> DRSCL multiplies an n-element real vector x by the real scalar 1/a. |
|
*> This is done without overflow or underflow as long as |
|
*> the final result x/a does not overflow or underflow. |
|
*> \endverbatim |
|
* |
|
* Arguments: |
|
* ========== |
|
* |
|
*> \param[in] N |
|
*> \verbatim |
|
*> N is INTEGER |
|
*> The number of components of the vector x. |
|
*> \endverbatim |
|
*> |
|
*> \param[in] SA |
|
*> \verbatim |
|
*> SA is DOUBLE PRECISION |
|
*> The scalar a which is used to divide each component of x. |
|
*> SA must be >= 0, or the subroutine will divide by zero. |
|
*> \endverbatim |
|
*> |
|
*> \param[in,out] SX |
|
*> \verbatim |
|
*> SX is DOUBLE PRECISION array, dimension |
|
*> (1+(N-1)*abs(INCX)) |
|
*> The n-element vector x. |
|
*> \endverbatim |
|
*> |
|
*> \param[in] INCX |
|
*> \verbatim |
|
*> INCX is INTEGER |
|
*> The increment between successive values of the vector SX. |
|
*> > 0: SX(1) = X(1) and SX(1+(i-1)*INCX) = x(i), 1< i<= n |
|
*> \endverbatim |
|
* |
|
* Authors: |
|
* ======== |
|
* |
|
*> \author Univ. of Tennessee |
|
*> \author Univ. of California Berkeley |
|
*> \author Univ. of Colorado Denver |
|
*> \author NAG Ltd. |
|
* |
|
*> \date November 2011 |
|
* |
|
*> \ingroup doubleOTHERauxiliary |
|
* |
|
* ===================================================================== |
SUBROUTINE DRSCL( N, SA, SX, INCX ) |
SUBROUTINE DRSCL( N, SA, SX, INCX ) |
* |
* |
* -- LAPACK auxiliary routine (version 3.2) -- |
* -- LAPACK auxiliary routine (version 3.4.0) -- |
* -- 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 2006 |
* November 2011 |
* |
* |
* .. Scalar Arguments .. |
* .. Scalar Arguments .. |
INTEGER INCX, N |
INTEGER INCX, N |
Line 13
|
Line 97
|
DOUBLE PRECISION SX( * ) |
DOUBLE PRECISION SX( * ) |
* .. |
* .. |
* |
* |
* Purpose |
|
* ======= |
|
* |
|
* DRSCL multiplies an n-element real vector x by the real scalar 1/a. |
|
* This is done without overflow or underflow as long as |
|
* the final result x/a does not overflow or underflow. |
|
* |
|
* Arguments |
|
* ========= |
|
* |
|
* N (input) INTEGER |
|
* The number of components of the vector x. |
|
* |
|
* SA (input) DOUBLE PRECISION |
|
* The scalar a which is used to divide each component of x. |
|
* SA must be >= 0, or the subroutine will divide by zero. |
|
* |
|
* SX (input/output) DOUBLE PRECISION array, dimension |
|
* (1+(N-1)*abs(INCX)) |
|
* The n-element vector x. |
|
* |
|
* INCX (input) INTEGER |
|
* The increment between successive values of the vector SX. |
|
* > 0: SX(1) = X(1) and SX(1+(i-1)*INCX) = x(i), 1< i<= n |
|
* |
|
* ===================================================================== |
* ===================================================================== |
* |
* |
* .. Parameters .. |
* .. Parameters .. |