Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
Stokhos::detail Namespace Reference

Functions

template<typename ordinal_type , typename scalar_type >
scalar_type weighted_inner_product (const Teuchos::SerialDenseVector< ordinal_type, scalar_type > &x, const Teuchos::SerialDenseVector< ordinal_type, scalar_type > &y, const Teuchos::Array< scalar_type > &w)
 Compute weighted inner product between vectors x and y. More...
 
template<typename ordinal_type , typename scalar_type >
void saxpy (const scalar_type &alpha, Teuchos::SerialDenseVector< ordinal_type, scalar_type > &x, const scalar_type &beta, const Teuchos::SerialDenseVector< ordinal_type, scalar_type > &y)
 Overwrite x with alpha*x + beta*y. More...
 

Function Documentation

template<typename ordinal_type , typename scalar_type >
scalar_type Stokhos::detail::weighted_inner_product ( const Teuchos::SerialDenseVector< ordinal_type, scalar_type > &  x,
const Teuchos::SerialDenseVector< ordinal_type, scalar_type > &  y,
const Teuchos::Array< scalar_type > &  w 
)

Compute weighted inner product between vectors x and y.

Definition at line 53 of file Stokhos_SDMUtils.hpp.

template<typename ordinal_type , typename scalar_type >
void Stokhos::detail::saxpy ( const scalar_type &  alpha,
Teuchos::SerialDenseVector< ordinal_type, scalar_type > &  x,
const scalar_type &  beta,
const Teuchos::SerialDenseVector< ordinal_type, scalar_type > &  y 
)

Overwrite x with alpha*x + beta*y.

Definition at line 67 of file Stokhos_SDMUtils.hpp.