![]() |
|
|||
File indexing completed on 2025-09-17 08:54:04
0001 //------------------------------- -*- C++ -*- -------------------------------// 0002 // Copyright Celeritas contributors: see top-level COPYRIGHT file for details 0003 // SPDX-License-Identifier: (Apache-2.0 OR MIT) 0004 //---------------------------------------------------------------------------// 0005 //! \file corecel/data/detail/HyperslabIndexerImpl.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 namespace celeritas 0010 { 0011 namespace detail 0012 { 0013 // Utility function for calculating the size of hyperslab data 0014 template<celeritas::size_type N> 0015 inline CELER_FUNCTION celeritas::size_type 0016 hyperslab_size(celeritas::Array<celeritas::size_type, N> const& dims) 0017 { 0018 celeritas::size_type size = 1; 0019 for (auto const dim : dims) 0020 { 0021 size *= dim; 0022 } 0023 return size; 0024 } 0025 //---------------------------------------------------------------------------// 0026 } // namespace detail 0027 } // namespace celeritas
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |