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

Functions that wrap Kokkos::create_mirror_view, in order to avoid deep copies when not necessary, even if the inputs are const. More...

#include "TpetraCore_config.h"
#include "Teuchos_Array.hpp"
#include "Teuchos_ArrayView.hpp"
#include "Tpetra_Details_OrdinalTraits.hpp"
#include "Tpetra_Details_computeOffsets.hpp"
#include "Kokkos_Core.hpp"
#include <memory>
#include <string>

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 OutputDeviceType >
Impl::CreateMirrorViewFromUnmanagedHostArray
< ValueType, OutputDeviceType >
::output_view_type 
Tpetra::Details::create_mirror_view_from_raw_host_array (const OutputDeviceType &, ValueType *inPtr, const size_t inSize, const bool copy=true, const char label[]="")
 Variant of Kokkos::create_mirror_view that takes a raw host 1-d array as input. More...
 

Detailed Description

Functions that wrap Kokkos::create_mirror_view, in order to avoid deep copies when not necessary, even if the inputs are const.

Warning
This file, and its contents, are implementation details of Tpetra. The file itself or its contents may disappear or change at any time.

Definition in file Tpetra_Details_createMirrorView.hpp.