Tpetra parallel linear algebra
Version of the Day
|
Include this file to make Tpetra::for_each work with Tpetra::MultiVector and Tpetra::Vector. More...
#include "Tpetra_for_each.hpp"
#include "Tpetra_withLocalAccess_MultiVector.hpp"
#include "Tpetra_Details_Behavior.hpp"
#include "Tpetra_Map.hpp"
#include "Teuchos_Comm.hpp"
#include "Teuchos_TypeNameTraits.hpp"
#include "Kokkos_Core.hpp"
#include <iostream>
#include <sstream>
Go to the source code of this file.
Classes | |
struct | Tpetra::Details::ForEach< ExecutionSpace,::Tpetra::MultiVector< SC, LO, GO, NT >, UserFunctionType > |
Implementation of Tpetra::for_each for Tpetra::MultiVector. More... | |
struct | Tpetra::Details::ForEach< ExecutionSpace,::Tpetra::Vector< SC, LO, GO, NT >, UserFunctionType > |
Implementation of Tpetra::for_each for Tpetra::Vector. More... | |
Namespaces | |
Tpetra | |
Namespace Tpetra contains the class and methods constituting the Tpetra library. | |
Tpetra::Details | |
Nonmember function that computes a residual Computes R = B - A * X. | |
Include this file to make Tpetra::for_each work with Tpetra::MultiVector and Tpetra::Vector.
The overload of Tpetra::for_each for Tpetra::MultiVector resp. Tpetra::Vector applies a function entrywise to each entry of the MultiVector resp. Vector. It works analogously to std::for_each.
The input function f takes the current entry in read-write fashion as impl_scalar_type&
. impl_scalar_type
is a public typedef in Tpetra::MultiVector and Tpetra::Vector. When scalar_type
is std::complex<T>
, then impl_scalar_type
is Kokkos::complex<T>
. Otherwise, scalar_type
and impl_scalar_type
are the same.
Definition in file Tpetra_for_each_MultiVector.hpp.