10#ifndef TPETRA_DETAILS_SCALARVIEWTRAITS_HPP
11#define TPETRA_DETAILS_SCALARVIEWTRAITS_HPP
28template <
class T,
class D>
57 static Kokkos::View<value_type*, device_type>
60 const std::string& label =
"") {
61 using view_type = Kokkos::View<value_type*, device_type>;
62 return view_type(label,
numEnt);
Declaration and generic definition of traits class that tells Tpetra::CrsMatrix how to pack and unpac...
Struct that holds views of the contents of a CrsMatrix.
Implementation details of Tpetra.
Namespace Tpetra contains the class and methods constituting the Tpetra library.
Traits class for allocating a Kokkos::View<T*, D>.
static Kokkos::View< value_type *, device_type > allocateArray(const value_type &, const size_t numEnt, const std::string &label="")
Given an instance of value_type allocated with the right size, allocate and return a one-dimensional ...