10#ifndef TPETRA_DETAILS_SCALARVIEWTRAITS_HPP
11#define TPETRA_DETAILS_SCALARVIEWTRAITS_HPP
28template <
class T,
class D>
31 using device_type = 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...
Nonmember function that computes a residual Computes R = B - A * X.
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 ...