Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Teuchos::BLAS< int, float > Class Reference

#include <Teuchos_BLAS.hpp>

Inheritance diagram for Teuchos::BLAS< int, float >:

Public Member Functions

 BLAS (void)
 BLAS (const BLAS< int, float > &)
virtual ~BLAS (void)
void ROTG (float *da, float *db, float *c, float *s) const
void ROT (const int &n, float *dx, const int &incx, float *dy, const int &incy, float *c, float *s) const
float ASUM (const int &n, const float *x, const int &incx) const
void AXPY (const int &n, const float &alpha, const float *x, const int &incx, float *y, const int &incy) const
void COPY (const int &n, const float *x, const int &incx, float *y, const int &incy) const
float DOT (const int &n, const float *x, const int &incx, const float *y, const int &incy) const
float NRM2 (const int &n, const float *x, const int &incx) const
void SCAL (const int &n, const float &alpha, float *x, const int &incx) const
int IAMAX (const int &n, const float *x, const int &incx) const
void GEMV (ETransp trans, const int &m, const int &n, const float &alpha, const float *A, const int &lda, const float *x, const int &incx, const float &beta, float *y, const int &incy) const
void TRMV (EUplo uplo, ETransp trans, EDiag diag, const int &n, const float *A, const int &lda, float *x, const int &incx) const
void GER (const int &m, const int &n, const float &alpha, const float *x, const int &incx, const float *y, const int &incy, float *A, const int &lda) const
void GEMM (ETransp transa, ETransp transb, const int &m, const int &n, const int &k, const float &alpha, const float *A, const int &lda, const float *B, const int &ldb, const float &beta, float *C, const int &ldc) const
void SWAP (const int &n, float *const x, const int &incx, float *const y, const int &incy) const
void SYMM (ESide side, EUplo uplo, const int &m, const int &n, const float &alpha, const float *A, const int &lda, const float *B, const int &ldb, const float &beta, float *C, const int &ldc) const
void SYRK (EUplo uplo, ETransp trans, const int &n, const int &k, const float &alpha, const float *A, const int &lda, const float &beta, float *C, const int &ldc) const
void HERK (EUplo uplo, ETransp trans, const int &n, const int &k, const float &alpha, const float *A, const int &lda, const float &beta, float *C, const int &ldc) const
void TRMM (ESide side, EUplo uplo, ETransp transa, EDiag diag, const int &m, const int &n, const float &alpha, const float *A, const int &lda, float *B, const int &ldb) const
void TRSM (ESide side, EUplo uplo, ETransp transa, EDiag diag, const int &m, const int &n, const float &alpha, const float *A, const int &lda, float *B, const int &ldb) const
void ROTG (ScalarType *da, ScalarType *db, rotg_c_type *c, ScalarType *s) const
 Computes a Givens plane rotation.
void ROT (const OrdinalType &n, ScalarType *dx, const OrdinalType &incx, ScalarType *dy, const OrdinalType &incy, MagnitudeType *c, ScalarType *s) const
 Applies a Givens plane rotation.
void SCAL (const OrdinalType &n, const ScalarType &alpha, ScalarType *x, const OrdinalType &incx) const
 Scale the vector x by the constant alpha.
void COPY (const OrdinalType &n, const ScalarType *x, const OrdinalType &incx, ScalarType *y, const OrdinalType &incy) const
 Copy the vector x to the vector y.
template<typename alpha_type, typename x_type>
void AXPY (const OrdinalType &n, const alpha_type alpha, const x_type *x, const OrdinalType &incx, ScalarType *y, const OrdinalType &incy) const
 Perform the operation: y <- y+alpha*x.
ScalarTraits< ScalarType >::magnitudeType ASUM (const OrdinalType &n, const ScalarType *x, const OrdinalType &incx) const
 Sum the absolute values of the entries of x.
template<typename x_type, typename y_type>
ScalarType 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.
ScalarTraits< ScalarType >::magnitudeType NRM2 (const OrdinalType &n, const ScalarType *x, const OrdinalType &incx) const
 Compute the 2-norm of the vector x.
OrdinalType IAMAX (const OrdinalType &n, const ScalarType *x, const OrdinalType &incx) const
 Return the index of the element of x with the maximum magnitude.
 DefaultBLASImpl (void)
 Default constructor.
 DefaultBLASImpl (const DefaultBLASImpl< OrdinalType, ScalarType > &)
 Copy constructor.
virtual ~DefaultBLASImpl (void)
 Destructor.
template<typename alpha_type, typename A_type, typename x_type, typename beta_type>
void GEMV (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, ScalarType *y, const OrdinalType &incy) const
 Performs the matrix-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 (EUplo uplo, ETransp trans, EDiag diag, const OrdinalType &n, const A_type *A, const OrdinalType &lda, ScalarType *x, const OrdinalType &incx) const
 Performs the matrix-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, ScalarType *A, const OrdinalType &lda) const
 Performs the rank 1 operation: A <- alpha*x*y'+A.
template<typename alpha_type, typename A_type, typename B_type, typename beta_type>
void GEMM (ETransp transa, 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, ScalarType *C, const OrdinalType &ldc) const
 General matrix-matrix multiply.
void SWAP (const OrdinalType &n, ScalarType *const x, const OrdinalType &incx, ScalarType *const y, const OrdinalType &incy) const
 Swap the entries of x and y.
template<typename alpha_type, typename A_type, typename B_type, typename beta_type>
void SYMM (ESide side, 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, ScalarType *C, const OrdinalType &ldc) const
 Performs the matrix-matrix operation: C <- alpha*A*B+beta*C or C <- alpha*B*A+beta*C where A is an m by m or n by n symmetric matrix and B is a general matrix.
template<typename alpha_type, typename A_type, typename beta_type>
void SYRK (EUplo uplo, ETransp trans, const OrdinalType &n, const OrdinalType &k, const alpha_type alpha, const A_type *A, const OrdinalType &lda, const beta_type beta, ScalarType *C, const OrdinalType &ldc) const
 Performs the symmetric rank k operation: C <- alpha*A*A'+beta*C or C <- alpha*A'*A+beta*C, where alpha and beta are scalars, C is an n by n symmetric matrix and A is an n by k matrix in the first case or k by n matrix in the second case.
template<typename alpha_type, typename A_type>
void TRMM (ESide side, EUplo uplo, ETransp transa, EDiag diag, const OrdinalType &m, const OrdinalType &n, const alpha_type alpha, const A_type *A, const OrdinalType &lda, ScalarType *B, const OrdinalType &ldb) const
 Performs the matrix-matrix operation: B <- alpha*op(A)*B or B <- alpha*B*op(A) where op(A) is an unit/non-unit, upper/lower triangular matrix and B is a general matrix.
template<typename alpha_type, typename A_type>
void TRSM (ESide side, EUplo uplo, ETransp transa, EDiag diag, const OrdinalType &m, const OrdinalType &n, const alpha_type alpha, const A_type *A, const OrdinalType &lda, ScalarType *B, const OrdinalType &ldb) const
 Solves the matrix equations: op(A)*X=alpha*B or X*op(A)=alpha*B where X and B are m by n matrices, A is a unit/non-unit, upper/lower triangular matrix and op(A) is A or A'. The matrix X is overwritten on B.

Private Types

typedef Teuchos::ScalarTraits< float >::magnitudeType MagnitudeType

Constructor/Destructor.

 BLAS (void)
 Default constructor.
 BLAS (const BLAS< int, float > &)
 Copy constructor.
virtual ~BLAS (void)
 Destructor.

Additional Inherited Members

typedef details::GivensRotator< ScalarType >::c_type rotg_c_type
 The type used for c in ROTG.

Detailed Description

Definition at line 2255 of file Teuchos_BLAS.hpp.

Member Typedef Documentation

◆ MagnitudeType

typedef Teuchos::ScalarTraits<float>::magnitudeType Teuchos::BLAS< int, float >::MagnitudeType
private

Definition at line 247 of file Teuchos_BLAS.hpp.

Constructor & Destructor Documentation

◆ BLAS() [1/4]

Teuchos::BLAS< int, float >::BLAS ( void )
inline

Definition at line 2258 of file Teuchos_BLAS.hpp.

◆ BLAS() [2/4]

Teuchos::BLAS< int, float >::BLAS ( const BLAS< int, float > & )
inline

Definition at line 2259 of file Teuchos_BLAS.hpp.

◆ ~BLAS() [1/2]

virtual Teuchos::BLAS< int, float >::~BLAS ( void )
inlinevirtual

Definition at line 2260 of file Teuchos_BLAS.hpp.

◆ BLAS() [3/4]

Teuchos::BLAS< int, float >::BLAS ( void )
inline

Default constructor.

Definition at line 254 of file Teuchos_BLAS.hpp.

◆ BLAS() [4/4]

Teuchos::BLAS< int, float >::BLAS ( const BLAS< int, float > & )
inline

Copy constructor.

Definition at line 257 of file Teuchos_BLAS.hpp.

◆ ~BLAS() [2/2]

virtual Teuchos::BLAS< int, float >::~BLAS ( void )
inlinevirtual

Destructor.

Definition at line 260 of file Teuchos_BLAS.hpp.

Member Function Documentation

◆ ROTG()

void Teuchos::BLAS< int, float >::ROTG ( float * da,
float * db,
float * c,
float * s ) const

Definition at line 125 of file Teuchos_BLAS.cpp.

◆ ROT()

void Teuchos::BLAS< int, float >::ROT ( const int & n,
float * dx,
const int & incx,
float * dy,
const int & incy,
float * c,
float * s ) const

Definition at line 128 of file Teuchos_BLAS.cpp.

◆ ASUM()

float Teuchos::BLAS< int, float >::ASUM ( const int & n,
const float * x,
const int & incx ) const

Definition at line 132 of file Teuchos_BLAS.cpp.

◆ AXPY()

void Teuchos::BLAS< int, float >::AXPY ( const int & n,
const float & alpha,
const float * x,
const int & incx,
float * y,
const int & incy ) const

Definition at line 154 of file Teuchos_BLAS.cpp.

◆ COPY()

void Teuchos::BLAS< int, float >::COPY ( const int & n,
const float * x,
const int & incx,
float * y,
const int & incy ) const

Definition at line 157 of file Teuchos_BLAS.cpp.

◆ DOT()

float Teuchos::BLAS< int, float >::DOT ( const int & n,
const float * x,
const int & incx,
const float * y,
const int & incy ) const

Definition at line 160 of file Teuchos_BLAS.cpp.

◆ NRM2()

float Teuchos::BLAS< int, float >::NRM2 ( const int & n,
const float * x,
const int & incx ) const

Definition at line 174 of file Teuchos_BLAS.cpp.

◆ SCAL()

void Teuchos::BLAS< int, float >::SCAL ( const int & n,
const float & alpha,
float * x,
const int & incx ) const

Definition at line 185 of file Teuchos_BLAS.cpp.

◆ IAMAX()

int Teuchos::BLAS< int, float >::IAMAX ( const int & n,
const float * x,
const int & incx ) const

Definition at line 171 of file Teuchos_BLAS.cpp.

◆ GEMV()

void Teuchos::BLAS< int, float >::GEMV ( ETransp trans,
const int & m,
const int & n,
const float & alpha,
const float * A,
const int & lda,
const float * x,
const int & incx,
const float & beta,
float * y,
const int & incy ) const

Definition at line 188 of file Teuchos_BLAS.cpp.

◆ TRMV()

void Teuchos::BLAS< int, float >::TRMV ( EUplo uplo,
ETransp trans,
EDiag diag,
const int & n,
const float * A,
const int & lda,
float * x,
const int & incx ) const

Definition at line 194 of file Teuchos_BLAS.cpp.

◆ GER()

void Teuchos::BLAS< int, float >::GER ( const int & m,
const int & n,
const float & alpha,
const float * x,
const int & incx,
const float * y,
const int & incy,
float * A,
const int & lda ) const

Definition at line 191 of file Teuchos_BLAS.cpp.

◆ GEMM()

void Teuchos::BLAS< int, float >::GEMM ( ETransp transa,
ETransp transb,
const int & m,
const int & n,
const int & k,
const float & alpha,
const float * A,
const int & lda,
const float * B,
const int & ldb,
const float & beta,
float * C,
const int & ldc ) const

Definition at line 197 of file Teuchos_BLAS.cpp.

◆ SWAP()

void Teuchos::BLAS< int, float >::SWAP ( const int & n,
float *const x,
const int & incx,
float *const y,
const int & incy ) const

Definition at line 200 of file Teuchos_BLAS.cpp.

◆ SYMM()

void Teuchos::BLAS< int, float >::SYMM ( ESide side,
EUplo uplo,
const int & m,
const int & n,
const float & alpha,
const float * A,
const int & lda,
const float * B,
const int & ldb,
const float & beta,
float * C,
const int & ldc ) const

Definition at line 205 of file Teuchos_BLAS.cpp.

◆ SYRK()

void Teuchos::BLAS< int, float >::SYRK ( EUplo uplo,
ETransp trans,
const int & n,
const int & k,
const float & alpha,
const float * A,
const int & lda,
const float & beta,
float * C,
const int & ldc ) const

Definition at line 208 of file Teuchos_BLAS.cpp.

◆ HERK()

void Teuchos::BLAS< int, float >::HERK ( EUplo uplo,
ETransp trans,
const int & n,
const int & k,
const float & alpha,
const float * A,
const int & lda,
const float & beta,
float * C,
const int & ldc ) const

Definition at line 211 of file Teuchos_BLAS.cpp.

◆ TRMM()

void Teuchos::BLAS< int, float >::TRMM ( ESide side,
EUplo uplo,
ETransp transa,
EDiag diag,
const int & m,
const int & n,
const float & alpha,
const float * A,
const int & lda,
float * B,
const int & ldb ) const

Definition at line 214 of file Teuchos_BLAS.cpp.

◆ TRSM()

void Teuchos::BLAS< int, float >::TRSM ( ESide side,
EUplo uplo,
ETransp transa,
EDiag diag,
const int & m,
const int & n,
const float & alpha,
const float * A,
const int & lda,
float * B,
const int & ldb ) const

Definition at line 217 of file Teuchos_BLAS.cpp.


The documentation for this class was generated from the following files: