|
|
|||
File indexing completed on 2026-10-26 09:34:38
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/random/params/RanluxppRngParams.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include "corecel/data/ParamsDataInterface.hh" 0010 #include "corecel/data/ParamsDataStore.hh" 0011 #include "corecel/random/data/RanluxppRngData.hh" 0012 #include "corecel/random/data/RanluxppTypes.hh" 0013 0014 namespace celeritas 0015 { 0016 //---------------------------------------------------------------------------// 0017 /*! 0018 * Shared data for Ranluxpp pseudo-random number generator. 0019 */ 0020 class RanluxppRngParams final 0021 : public ParamsDataInterface<RanluxppRngParamsData> 0022 { 0023 public: 0024 // Construct with seed 0025 explicit RanluxppRngParams(RanluxppUInt seed); 0026 0027 //! Access rng params data on host 0028 HostRef const& host_ref() const final { return data_.host_ref(); } 0029 0030 //! Access rng params data on device 0031 DeviceRef const& device_ref() const final { return data_.device_ref(); } 0032 0033 private: 0034 /// DATA /// 0035 // Host/device storage and reference 0036 ParamsDataStore<RanluxppRngParamsData> data_; 0037 }; 0038 0039 //---------------------------------------------------------------------------// 0040 } // 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 |
|