Tpetra parallel linear algebra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
Tpetra_Details_reallocDualViewIfNeeded.hpp File Reference

Declaration and definition of Tpetra::Details::reallocDualViewIfNeeded, an implementation detail of Tpetra. More...

#include "Tpetra_Details_Profiling.hpp"
#include "Kokkos_DualView.hpp"

Go to the source code of this file.

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.
 

Functions

template<class ValueType , class DeviceType >
bool Tpetra::Details::reallocDualViewIfNeeded (Kokkos::DualView< ValueType *, DeviceType > &dv, const size_t newSize, const char newLabel[], const size_t tooBigFactor=2, const bool needFenceBeforeRealloc=true)
 Reallocate the DualView in/out argument, if needed. More...
 
template<class ValueType , class DeviceType >
bool Tpetra::Details::reallocDualViewIfNeeded (Kokkos::DualView< ValueType *, DeviceType > &exports, const size_t newSize, const std::string &newLabel, const size_t tooBigFactor=2, const bool needFenceBeforeRealloc=true)
 Like above, but with std::string label argument. More...
 

Detailed Description

Declaration and definition of Tpetra::Details::reallocDualViewIfNeeded, an implementation detail of Tpetra.

Warning
This file, and its contents, are an implementation detail of Tpetra. DO NOT DEPEND ON THEM.

Definition in file Tpetra_Details_reallocDualViewIfNeeded.hpp.