Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Public Member Functions | Private Member Functions
Teuchos::details::GivensRotator< ScalarType, false > Class Template Reference

#include <Teuchos_BLAS.hpp>

List of all members.

Public Member Functions

void ROTG (ScalarType *da, ScalarType *db, ScalarType *c, ScalarType *s) const

Private Member Functions

ScalarType SIGN (ScalarType x, ScalarType y) const

Detailed Description

template<typename ScalarType>
class Teuchos::details::GivensRotator< ScalarType, false >

Definition at line 295 of file Teuchos_BLAS.hpp.


Member Function Documentation

template<typename ScalarType >
void Teuchos::details::GivensRotator< ScalarType, false >::ROTG ( ScalarType *  da,
ScalarType *  db,
ScalarType *  c,
ScalarType *  s 
) const

Definition at line 407 of file Teuchos_BLAS.hpp.

template<typename ScalarType >
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 316 of file Teuchos_BLAS.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines