mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 09:59:12 +00:00
01bacbcde0
Add support for masks, vector magnitude range (L2 norm), and finite values only range computations.
34 lines
1004 B
C++
34 lines
1004 B
C++
//============================================================================
|
|
// Copyright (c) Kitware, Inc.
|
|
// All rights reserved.
|
|
// See LICENSE.txt for details.
|
|
//
|
|
// This software is distributed WITHOUT ANY WARRANTY; without even
|
|
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
// PURPOSE. See the above copyright notice for more information.
|
|
//============================================================================
|
|
#ifndef vtk_m_cont_internal_ArrayRangeComputeUtils_h
|
|
#define vtk_m_cont_internal_ArrayRangeComputeUtils_h
|
|
|
|
#include <vtkm/VecTraits.h>
|
|
|
|
#include <vtkm/cont/ArrayHandle.h>
|
|
#include <vtkm/cont/vtkm_cont_export.h>
|
|
|
|
namespace vtkm
|
|
{
|
|
namespace cont
|
|
{
|
|
namespace internal
|
|
{
|
|
|
|
VTKM_CONT_EXPORT vtkm::Id2 GetFirstAndLastUnmaskedIndices(
|
|
const vtkm::cont::ArrayHandle<vtkm::UInt8>& maskArray,
|
|
vtkm::cont::DeviceAdapterId device = vtkm::cont::DeviceAdapterTagAny{});
|
|
|
|
}
|
|
}
|
|
} // vtkm::cont::internal
|
|
|
|
#endif // vtk_m_cont_internal_ArrayRangeComputeUtils_h
|