Stokhos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
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.
 
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.
 

Function Documentation

◆ weighted_inner_product()

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 85 of file Stokhos_SDMUtils.hpp.

◆ saxpy()

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 99 of file Stokhos_SDMUtils.hpp.