|
Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
#include <Teuchos_BLAS.hpp>
Public Member Functions | |
| void | ROTG (ScalarType *da, ScalarType *db, ScalarType *c, ScalarType *s) const |
Private Member Functions | |
| ScalarType | SIGN (ScalarType x, ScalarType y) const |
Definition at line 307 of file Teuchos_BLAS.hpp.
| void Teuchos::details::GivensRotator< ScalarType, false >::ROTG | ( | ScalarType * | da, |
| ScalarType * | db, | ||
| ScalarType * | c, | ||
| ScalarType * | s | ||
| ) | const |
Definition at line 418 of file Teuchos_BLAS.hpp.
| ScalarType Teuchos::details::GivensRotator< ScalarType, false >::SIGN | ( | ScalarType | x, |
| ScalarType | y | ||
| ) | const [inline, private] |
Return ABS(x) if y > 0 or y is +0, else -ABS(x) (if y is -0 or < 0).
Note that SIGN respects IEEE 754 floating-point signed zero. This is a hopefully correct implementation of the Fortran type-generic SIGN intrinsic. ROTG for complex arithmetic doesn't require this function. C99 provides a copysign() math library function, but we are not able to rely on the existence of C99 functions here.
We provide this method on purpose only for the real-arithmetic specialization of GivensRotator. Complex numbers don't have a sign; they have an angle.
Definition at line 327 of file Teuchos_BLAS.hpp.
1.7.6.1