Tpetra parallel linear algebra Version of the Day
Loading...
Searching...
No Matches
Namespaces | Functions
Tpetra_Details_fill.hpp File Reference

Declaration and definition of Tpetra::Details::Blas::fill, an implementation detail of Tpetra::MultiVector. More...

#include "Tpetra_Details_Blas.hpp"
#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  Tpetra
 Namespace Tpetra contains the class and methods constituting the Tpetra library.
 
namespace  Tpetra::Details
 Nonmember function that computes a residual Computes R = B - A * X.
 

Functions

template<class ViewType , class ValueType , class IndexType , class ExecutionSpace >
void Tpetra::Details::Blas::fill (const ExecutionSpace &execSpace, const ViewType &X, const ValueType &alpha, const IndexType numRows, const IndexType numCols)
 Fill the entries of the given 1-D or 2-D Kokkos::View with the given scalar value alpha.
 

Detailed Description

Declaration and definition of Tpetra::Details::Blas::fill, an implementation detail of Tpetra::MultiVector.

Warning
This file, and its contents, are an implementation detail of Tpetra::MultiVector. Either may disappear or change at any time.

Definition in file Tpetra_Details_fill.hpp.

Function Documentation

◆ fill()

template<class ViewType , class ValueType , class IndexType , class ExecutionSpace >
void Tpetra::Details::Blas::fill ( const ExecutionSpace execSpace,
const ViewType X,
const ValueType alpha,
const IndexType  numRows,
const IndexType  numCols 
)

Fill the entries of the given 1-D or 2-D Kokkos::View with the given scalar value alpha.

Template Parameters
ViewTypeKokkos::View specialization.
ValueTypeType of the scalar value alpha to assign to each entry of X.
IndexTypeType of the index to use in loops.

Definition at line 40 of file Tpetra_Details_fill.hpp.