Examples ======== Complete, runnable examples live under ``examples/`` in the repository. C++ examples ------------ Basic scalar Xoshiro ~~~~~~~~~~~~~~~~~~~~ .. literalinclude:: ../examples/cpp/basic_xoshiro.cpp :language: cpp Bulk fill with XoshiroSIMD ~~~~~~~~~~~~~~~~~~~~~~~~~~ .. literalinclude:: ../examples/cpp/simd_bulk_fill.cpp :language: cpp XoshiroNative with -march=native ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. literalinclude:: ../examples/cpp/xoshiro_native.cpp :language: cpp OpenMP: per-thread streams ~~~~~~~~~~~~~~~~~~~~~~~~~~ .. literalinclude:: ../examples/cpp/threaded_openmp.cpp :language: cpp Philox counter-based reproducibility ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. literalinclude:: ../examples/cpp/philox_counter_based.cpp :language: cpp Python examples --------------- Quickstart ~~~~~~~~~~ .. literalinclude:: ../examples/python/quickstart.py :language: python scipy integration ~~~~~~~~~~~~~~~~~ .. literalinclude:: ../examples/python/scipy_integration.py :language: python Benchmark vs numpy ~~~~~~~~~~~~~~~~~~ .. literalinclude:: ../examples/python/benchmark_vs_numpy.py :language: python