Intrepid2
Intrepid2_OrientationOperatorDef.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Intrepid2 Package
4//
5// Copyright 2007 NTESS and the Intrepid2 contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10
15#ifndef __INTREPID2_ORIENTATION_OPERATOR_DEF_HPP__
16#define __INTREPID2_ORIENTATION_OPERATOR_DEF_HPP__
17
18// disable clang warnings
19#if defined (__clang__) && !defined (__INTEL_COMPILER)
20#pragma clang system_header
21#endif
22
23namespace Intrepid2 {
24
25template<class DeviceType>
26KOKKOS_INLINE_FUNCTION
27OrientationOperator<DeviceType>::OrientationOperator(typename OrientationOperator<DeviceType>::UnmanagedOrdinalView rowIndices_,
28 typename OrientationOperator<DeviceType>::UnmanagedOrdinalView offsetsForRowOrdinal_,
29 typename OrientationOperator<DeviceType>::UnmanagedOrdinalView packedColumnIndices_,
30 typename OrientationOperator<DeviceType>::UnmanagedDoubleView packedWeights_)
31:
32rowIndices(rowIndices_),
33offsetsForRowOrdinal(offsetsForRowOrdinal_),
34packedColumnIndices(packedColumnIndices_),
35packedWeights(packedWeights_),
36isWeightedPermutation(false)
37{}
38
39template<class DeviceType>
40KOKKOS_INLINE_FUNCTION
41OrientationOperator<DeviceType>::OrientationOperator(typename OrientationOperator<DeviceType>::UnmanagedOrdinalView rowIndices_,
42 typename OrientationOperator<DeviceType>::UnmanagedOrdinalView packedColumnIndices_,
43 typename OrientationOperator<DeviceType>::UnmanagedDoubleView packedWeights_)
44:
45rowIndices(rowIndices_),
46packedColumnIndices(packedColumnIndices_),
47packedWeights(packedWeights_),
48isWeightedPermutation(true)
49{}
50
51template<class DeviceType>
52KOKKOS_INLINE_FUNCTION
53OrientationOperator<DeviceType>::OrientationOperator()
54:
55isWeightedPermutation(true)
56{}
57
58} // namespace Intrepid2
59
60#endif