Tpetra parallel linear algebra Version of the Day
Loading...
Searching...
No Matches
Classes | 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.

Classes

class  Tpetra::Details::Blas::Impl::Fill< ViewType, ValueType, ExecutionSpace, IndexType, rank >
 Implementation of Tpetra::Details::Blas::fill. More...
 
class  Tpetra::Details::Blas::Impl::Fill< ViewType, ValueType, ExecutionSpace, IndexType, 1 >
 Specialization for rank-1 Views. More...
 
class  Tpetra::Details::Blas::Impl::Fill< ViewType, ValueType, ExecutionSpace, IndexType, 2 >
 Specialization for rank-2 Views. More...
 

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

void * Tpetra::Details::Blas::Impl::memsetWrapper (void *dest, int ch, std::size_t count)
 Wrap std::memset, to avoid exposing unnecessary includes.
 
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.

Search for "SKIP TO HERE FOR THE ACTUAL INTERFACE" (sans quotes) to find the actual interface that Tpetra developers are supposed to use.

Definition in file Tpetra_Details_fill.hpp.

Function Documentation

◆ memsetWrapper()

void * Tpetra::Details::Blas::Impl::memsetWrapper ( void *  dest,
int  ch,
std::size_t  count 
)

Wrap std::memset, to avoid exposing unnecessary includes.

Definition at line 51 of file Tpetra_Details_fill.cpp.

◆ 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 291 of file Tpetra_Details_fill.hpp.