40 template<
class ValueType>
45 KOKKOS_INLINE_FUNCTION
47 : ptr(
nullptr), extent0(0)
50 KOKKOS_INLINE_FUNCTION
51 RawView1D(ValueType* ptr_,
const size_type extent0_)
52 : ptr(ptr_), extent0(extent0_)
55 KOKKOS_INLINE_FUNCTION
56 ValueType& operator()(
const ordinal_type i)
const {
60 KOKKOS_INLINE_FUNCTION
61 ValueType& operator[](
const ordinal_type i)
const {
65 KOKKOS_INLINE_FUNCTION
66 ordinal_type extent_int(
const ordinal_type i)
const {
67 return (i == 0) ?
static_cast<ordinal_type
>(extent0) : 1;
70 KOKKOS_INLINE_FUNCTION
71 size_type extent(
const ordinal_type i)
const {
72 return (i == 0) ? extent0 : 1;
75 KOKKOS_INLINE_FUNCTION
76 ValueType* data()
const {
85 UnmanagedOrdinalView rowIndices;
86 UnmanagedOrdinalView offsetsForRowOrdinal;
87 UnmanagedOrdinalView packedColumnIndices;
88 UnmanagedDoubleView packedWeights;
92 bool isWeightedPermutation;
95 KOKKOS_INLINE_FUNCTION
97 UnmanagedOrdinalView offsetsForRowOrdinal_,
98 UnmanagedOrdinalView packedColumnIndices_,
99 UnmanagedDoubleView packedWeights_);
102 KOKKOS_INLINE_FUNCTION
104 UnmanagedOrdinalView packedColumnIndices_,
105 UnmanagedDoubleView packedWeights_);
107 KOKKOS_INLINE_FUNCTION
KOKKOS_INLINE_FUNCTION OrientationOperator(UnmanagedOrdinalView rowIndices_, UnmanagedOrdinalView packedColumnIndices_, UnmanagedDoubleView packedWeights_)
weighted-permutation constructor. Sets isWeightedPermutation to true.
KOKKOS_INLINE_FUNCTION OrientationOperator(UnmanagedOrdinalView rowIndices_, UnmanagedOrdinalView offsetsForRowOrdinal_, UnmanagedOrdinalView packedColumnIndices_, UnmanagedDoubleView packedWeights_)
general constructor. Sets isWeightedPermutation to false.