VTK-m  2.2
MapArrayPermutation.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 #ifndef vtk_m_cont_internal_MapArrayPermutation_h
11 #define vtk_m_cont_internal_MapArrayPermutation_h
12 
15 
17 
18 namespace vtkm
19 {
20 namespace cont
21 {
22 namespace internal
23 {
24 
28  const vtkm::cont::UnknownArrayHandle& inputArray,
29  const vtkm::cont::UnknownArrayHandle& permutation,
30  vtkm::Float64 invalidValue = vtkm::Nan64());
31 
34 template <typename T, typename S>
35 vtkm::cont::UnknownArrayHandle MapArrayPermutation(
38  inputArray,
39  vtkm::Float64 invalidValue = vtkm::Nan64())
40 {
43  input = inputArray;
44  return MapArrayPermutation(input.GetValueArray(), input.GetIndexArray(), invalidValue);
45 }
46 
47 }
48 }
49 } // namespace vtkm::cont::internal
50 
51 #endif //vtk_m_cont_internal_MapArrayPermutation_h
vtkm::cont::ArrayHandlePermutation::GetValueArray
ValueArrayHandleType GetValueArray() const
Return the array used for values.
Definition: ArrayHandlePermutation.h:280
vtkm::cont::ArrayHandle
Manages an array-worth of data.
Definition: ArrayHandle.h:300
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::cont::ArrayHandlePermutation::GetIndexArray
IndexArrayHandleType GetIndexArray() const
Return the array used for indices.
Definition: ArrayHandlePermutation.h:270
vtkm::cont::UnknownArrayHandle
An ArrayHandle of an unknown value type and storage.
Definition: UnknownArrayHandle.h:430
vtkm::cont::StorageTagPermutation
Definition: ArrayHandlePermutation.h:93
UnknownArrayHandle.h
ArrayHandlePermutation.h
vtkm::cont::ArrayHandlePermutation
Implicitly permutes the values in an array.
Definition: ArrayHandlePermutation.h:233
VTKM_CONT_EXPORT
#define VTKM_CONT_EXPORT
Definition: vtkm_cont_export.h:44
vtkm_cont_export.h
vtkm::Float64
double Float64
Base type to use for 64-bit floating-point numbers.
Definition: Types.h:161