Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Macros | Functions
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)
 

Functions

 Register_pymod (pyunits_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.

Function Documentation

◆ Register_pymod()

Register_pymod ( pyunits_init  )

Xmacro X macro to define the conversion constants bindings

Definition at line 25 of file pyUnits.cpp.

+ Here is the call graph for this function: