23#ifndef MORPHEUS_FUNCTORS_HPP
24#define MORPHEUS_FUNCTORS_HPP
26#include <Kokkos_Core.hpp>
31template <
typename View,
typename... Types>
34template <
typename View,
typename ValueType,
typename IndexType>
41 : _data(data), _val(val), _ncols(ncols) {}
43 KOKKOS_INLINE_FUNCTION
44 void operator()(
const IndexType& i)
const {
51template <
typename View,
typename ValueType>
58 KOKKOS_INLINE_FUNCTION
59 void operator()(
const size_t& i)
const { _data(i) = _val; }
Generic Morpheus interfaces.
Definition: dummy.cpp:24
Definition: Morpheus_Functors.hpp:32
A wrapper that checks if the provided type is an integral type.
Definition: Morpheus_TypeTraits.hpp:73
A wrapper that checks if the provided type is a scalar type.
Definition: Morpheus_TypeTraits.hpp:85