Sacado Package Browser (Single Doxygen Collection) Version of the Day
|
Fad specializations for Teuchos::BLAS wrappers. More...
#include <Sacado_Fad_BLAS.hpp>
Inherits Teuchos::DefaultBLASImpl< OrdinalType, FadType >.
Private Types | |
typedef Teuchos::ScalarTraits< FadType >::magnitudeType | MagnitudeType |
typedef Sacado::ValueType< FadType >::type | ValueType |
typedef Sacado::ScalarType< FadType >::type | scalar_type |
typedef Sacado::dummy< ValueType, scalar_type >::type | ScalarType |
typedef Teuchos::DefaultBLASImpl< OrdinalType, FadType > | BLASType |
Constructor/Destructor. | |
BLAS (bool use_default_impl=true, bool use_dynamic=true, OrdinalType static_workspace_size=0) | |
Default constructor. | |
BLAS (const BLAS &x) | |
Copy constructor. | |
virtual | ~BLAS () |
Destructor. | |
Level 2 BLAS Routines. | |
template<typename alpha_type , typename A_type , typename x_type , typename beta_type > | |
void | GEMV (Teuchos::ETransp trans, const OrdinalType m, const OrdinalType n, const alpha_type &alpha, const A_type *A, const OrdinalType lda, const x_type *x, const OrdinalType incx, const beta_type &beta, FadType *y, const OrdinalType incy) const |
Performs the matrix-std::vector operation: y <- alpha*A*x+beta*y or y <- alpha*A'*x+beta*y where A is a general m by n matrix. | |
template<typename A_type > | |
void | TRMV (Teuchos::EUplo uplo, Teuchos::ETransp trans, Teuchos::EDiag diag, const OrdinalType n, const A_type *A, const OrdinalType lda, FadType *x, const OrdinalType incx) const |
Performs the matrix-std::vector operation: x <- A*x or x <- A'*x where A is a unit/non-unit n by n upper/lower triangular matrix. | |
template<typename alpha_type , typename x_type , typename y_type > | |
void | GER (const OrdinalType m, const OrdinalType n, const alpha_type &alpha, const x_type *x, const OrdinalType incx, const y_type *y, const OrdinalType incy, FadType *A, const OrdinalType lda) const |
Performs the rank 1 operation: A <- alpha*x*y'+A . | |
Fad specializations for Teuchos::BLAS wrappers.
Definition at line 184 of file Sacado_Fad_BLAS.hpp.
|
private |
Definition at line 186 of file Sacado_Fad_BLAS.hpp.
|
private |
Definition at line 187 of file Sacado_Fad_BLAS.hpp.
|
private |
Definition at line 188 of file Sacado_Fad_BLAS.hpp.
|
private |
Definition at line 189 of file Sacado_Fad_BLAS.hpp.
|
private |
Definition at line 190 of file Sacado_Fad_BLAS.hpp.
Sacado::Fad::BLAS< OrdinalType, FadType >::BLAS | ( | bool | use_default_impl = true, |
bool | use_dynamic = true, | ||
OrdinalType | static_workspace_size = 0 ) |
Default constructor.
Definition at line 595 of file Sacado_Fad_BLASImp.hpp.
Sacado::Fad::BLAS< OrdinalType, FadType >::BLAS | ( | const BLAS< OrdinalType, FadType > & | x | ) |
Copy constructor.
Definition at line 606 of file Sacado_Fad_BLASImp.hpp.
|
virtual |
Destructor.
Definition at line 616 of file Sacado_Fad_BLASImp.hpp.
|
inline |
Computes a Givens plane rotation.
Definition at line 213 of file Sacado_Fad_BLAS.hpp.
|
inline |
Applies a Givens plane rotation.
Definition at line 218 of file Sacado_Fad_BLAS.hpp.
void Sacado::Fad::BLAS< OrdinalType, FadType >::SCAL | ( | const OrdinalType | n, |
const FadType & | alpha, | ||
FadType * | x, | ||
const OrdinalType | incx ) const |
Scale the std::vector x
by the constant alpha
.
Definition at line 623 of file Sacado_Fad_BLASImp.hpp.
void Sacado::Fad::BLAS< OrdinalType, FadType >::COPY | ( | const OrdinalType | n, |
const FadType * | x, | ||
const OrdinalType | incx, | ||
FadType * | y, | ||
const OrdinalType | incy ) const |
Copy the std::vector x
to the std::vector y
.
Definition at line 669 of file Sacado_Fad_BLASImp.hpp.
void Sacado::Fad::BLAS< OrdinalType, FadType >::AXPY | ( | const OrdinalType | n, |
const alpha_type & | alpha, | ||
const x_type * | x, | ||
const OrdinalType | incx, | ||
FadType * | y, | ||
const OrdinalType | incy ) const |
Perform the operation: y
<-
y+alpha*x
.
Definition at line 697 of file Sacado_Fad_BLASImp.hpp.
|
inline |
Sum the absolute values of the entries of x
.
Definition at line 241 of file Sacado_Fad_BLAS.hpp.
FadType Sacado::Fad::BLAS< OrdinalType, FadType >::DOT | ( | const OrdinalType | n, |
const x_type * | x, | ||
const OrdinalType | incx, | ||
const y_type * | y, | ||
const OrdinalType | incy ) const |
Form the dot product of the vectors x
and y
.
Definition at line 756 of file Sacado_Fad_BLASImp.hpp.
Sacado::Fad::BLAS< OrdinalType, FadType >::MagnitudeType Sacado::Fad::BLAS< OrdinalType, FadType >::NRM2 | ( | const OrdinalType | n, |
const FadType * | x, | ||
const OrdinalType | incx ) const |
Compute the 2-norm of the std::vector x
.
Definition at line 797 of file Sacado_Fad_BLASImp.hpp.
|
inline |
Return the index of the element of x
with the maximum magnitude.
Definition at line 257 of file Sacado_Fad_BLAS.hpp.
void Sacado::Fad::BLAS< OrdinalType, FadType >::GEMV | ( | Teuchos::ETransp | trans, |
const OrdinalType | m, | ||
const OrdinalType | n, | ||
const alpha_type & | alpha, | ||
const A_type * | A, | ||
const OrdinalType | lda, | ||
const x_type * | x, | ||
const OrdinalType | incx, | ||
const beta_type & | beta, | ||
FadType * | y, | ||
const OrdinalType | incy ) const |
Performs the matrix-std::vector operation:
y
<-
alpha*A*x+beta*y
or y
<-
alpha*A'*x+beta*y
where A
is a general m
by n
matrix.
Definition at line 831 of file Sacado_Fad_BLASImp.hpp.
void Sacado::Fad::BLAS< OrdinalType, FadType >::TRMV | ( | Teuchos::EUplo | uplo, |
Teuchos::ETransp | trans, | ||
Teuchos::EDiag | diag, | ||
const OrdinalType | n, | ||
const A_type * | A, | ||
const OrdinalType | lda, | ||
FadType * | x, | ||
const OrdinalType | incx ) const |
Performs the matrix-std::vector operation:
x
<-
A*x
or x
<-
A'*x
where A
is a unit/non-unit n
by n
upper/lower triangular matrix.
Definition at line 901 of file Sacado_Fad_BLASImp.hpp.
void Sacado::Fad::BLAS< OrdinalType, FadType >::GER | ( | const OrdinalType | m, |
const OrdinalType | n, | ||
const alpha_type & | alpha, | ||
const x_type * | x, | ||
const OrdinalType | incx, | ||
const y_type * | y, | ||
const OrdinalType | incy, | ||
FadType * | A, | ||
const OrdinalType | lda ) const |
Performs the rank 1 operation: A
<-
alpha*x*y'+A
.
Definition at line 966 of file Sacado_Fad_BLASImp.hpp.
void Sacado::Fad::BLAS< OrdinalType, FadType >::GEMM | ( | Teuchos::ETransp | transa, |
Teuchos::ETransp | transb, | ||
const OrdinalType | m, | ||
const OrdinalType | n, | ||
const OrdinalType | k, | ||
const alpha_type & | alpha, | ||
const A_type * | A, | ||
const OrdinalType | lda, | ||
const B_type * | B, | ||
const OrdinalType | ldb, | ||
const beta_type & | beta, | ||
FadType * | C, | ||
const OrdinalType | ldc ) const |
void Sacado::Fad::BLAS< OrdinalType, FadType >::SYMM | ( | Teuchos::ESide | side, |
Teuchos::EUplo | uplo, | ||
const OrdinalType | m, | ||
const OrdinalType | n, | ||
const alpha_type & | alpha, | ||
const A_type * | A, | ||
const OrdinalType | lda, | ||
const B_type * | B, | ||
const OrdinalType | ldb, | ||
const beta_type & | beta, | ||
FadType * | C, | ||
const OrdinalType | ldc ) const |
void Sacado::Fad::BLAS< OrdinalType, FadType >::TRMM | ( | Teuchos::ESide | side, |
Teuchos::EUplo | uplo, | ||
Teuchos::ETransp | transa, | ||
Teuchos::EDiag | diag, | ||
const OrdinalType | m, | ||
const OrdinalType | n, | ||
const alpha_type & | alpha, | ||
const A_type * | A, | ||
const OrdinalType | lda, | ||
FadType * | B, | ||
const OrdinalType | ldb ) const |
void Sacado::Fad::BLAS< OrdinalType, FadType >::TRSM | ( | Teuchos::ESide | side, |
Teuchos::EUplo | uplo, | ||
Teuchos::ETransp | transa, | ||
Teuchos::EDiag | diag, | ||
const OrdinalType | m, | ||
const OrdinalType | n, | ||
const alpha_type & | alpha, | ||
const A_type * | A, | ||
const OrdinalType | lda, | ||
FadType * | B, | ||
const OrdinalType | ldb ) const |
|
protected |
Implementation of DOT.
Definition at line 1297 of file Sacado_Fad_BLASImp.hpp.
|
protected |
Implementation of GEMV.
Definition at line 1351 of file Sacado_Fad_BLASImp.hpp.
|
protected |
Implementation of GER.
Definition at line 1448 of file Sacado_Fad_BLASImp.hpp.
|
protected |
Implementation of GEMM.
Definition at line 1503 of file Sacado_Fad_BLASImp.hpp.
|
protected |
Implementation of SYMM.
Definition at line 1622 of file Sacado_Fad_BLASImp.hpp.
|
protected |
Implementation of TRMM.
Definition at line 1733 of file Sacado_Fad_BLASImp.hpp.
|
protected |
Implementation of TRMM.
Definition at line 1839 of file Sacado_Fad_BLASImp.hpp.
|
protected |
ArrayTraits for packing/unpacking value/derivative arrays.
Definition at line 369 of file Sacado_Fad_BLAS.hpp.
|
protected |
BLAS for values.
Definition at line 372 of file Sacado_Fad_BLAS.hpp.
|
protected |
Use custom or default implementation.
Definition at line 375 of file Sacado_Fad_BLAS.hpp.
|
mutableprotected |
Temporary array for GEMV.
Definition at line 378 of file Sacado_Fad_BLAS.hpp.
|
mutableprotected |
Temporary array for GEMM.
Definition at line 381 of file Sacado_Fad_BLAS.hpp.