Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
pyUnits.cpp File Reference
#include "shambackends/sycl.hpp"
#include "shambackends/typeAliasVec.hpp"
#include "shambindings/pybindaliases.hpp"
#include <pybind11/cast.h>
#include <shamunits/Constants.hpp>
#include <shamunits/Names.hpp>
#include <shamunits/UnitSystem.hpp>
#include <memory>
Include dependency graph for pyUnits.cpp:

Go to the source code of this file.

Macros

#define X(st, conv)

Typedefs

using UnitSystem = shamunits::UnitSystem<f64>

Variables

 ON_PYTHON_INIT

Detailed Description

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file pyUnits.cpp.

Macro Definition Documentation

◆ X

#define X ( st,
conv )
Value:
.def( \
#st, \
[](shamunits::Constants<f64> &cte, i32 power) { \
return sycl::pown(cte.st(), power); \
}, \
py::arg("power") = 1)
std::int32_t i32
32 bit integer
Physical constants.

Typedef Documentation

◆ UnitSystem

using UnitSystem = shamunits::UnitSystem<f64>

Definition at line 28 of file pyUnits.cpp.

Variable Documentation

◆ ON_PYTHON_INIT

ON_PYTHON_INIT
Initial value:
{
auto &m = root_module

Definition at line 25 of file pyUnits.cpp.