| 
    Tpetra parallel linear algebra Version of the Day
    
   | 
 
Traits class for allocating a Kokkos::View<T*, D>. More...
#include <Tpetra_Details_ScalarViewTraits.hpp>
Static Public Member Functions | |
| static Kokkos::View< value_type *, device_type > | allocateArray (const value_type &x, 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 array of value_type.   | |
Traits class for allocating a Kokkos::View<T*, D>.
| T | The type of the data to pack / unpack. | 
| D | The Kokkos "device" type; where the data live. | 
Definition at line 29 of file Tpetra_Details_ScalarViewTraits.hpp.
      
  | 
  inlinestatic | 
Given an instance of value_type allocated with the right size, allocate and return a one-dimensional array of value_type. 
This function lets the pack and unpack code that uses ScalarViewTraits correctly handle types that have a size specified at run time. In particular, it's helpful if that code needs to allocate temporary buffers of value_type. ScalarViewTraits still assumes that all instances of value_type in an input or output array have the same run-time size.
| x | [in] Instance of value_type with the correct (run-time) size. | 
| numEnt | [in] Number of entries in the returned Kokkos::View. | 
| label | [in] Optional string label of the returned Kokkos::View. (Kokkos::View's constructor takes a string label, which Kokkos uses for debugging output.) | 
value_type, all instances of which have the same (run-time) size as x.Definition at line 63 of file Tpetra_Details_ScalarViewTraits.hpp.