Skip to main content
Ctrl+K
NumPy v1.26 Manual - Home
  • User Guide
  • API reference
  • Development
  • Release notes
  • Learn
  • GitHub
  • Twitter
  • User Guide
  • API reference
  • Development
  • Release notes
  • Learn
  • GitHub
  • Twitter

Section Navigation

  • Array objects
  • Array API Standard Compatibility
  • Constants
  • Universal functions (ufunc)
  • Routines
    • Array creation routines
    • Array manipulation routines
    • Binary operations
    • String operations
    • C-Types foreign function interface (numpy.ctypeslib)
    • Datetime support functions
    • Data type routines
    • Mathematical functions with automatic domain
    • Floating point error handling
    • Discrete Fourier Transform (numpy.fft)
    • Functional programming
    • NumPy-specific help functions
    • Input and output
    • Linear algebra (numpy.linalg)
    • Logic functions
    • Masked array operations
    • Mathematical functions
    • Matrix library (numpy.matlib)
    • Miscellaneous routines
    • Padding Arrays
    • Polynomials
    • Random sampling (numpy.random)
      • Random Generator
      • Legacy Generator (RandomState)
      • Bit Generators
      • Upgrading PCG64 with PCG64DXSM
      • Compatibility Policy
      • Parallel Applications
      • Multithreaded Generation
      • What’s New or Different
      • Comparing Performance
      • C API for random
      • Examples of using Numba, Cython, CFFI
        • Numba
        • CFFI + Numba
        • Cython
        • CFFI
    • Set routines
    • Sorting, searching, and counting
    • Statistics
    • Test Support (numpy.testing)
    • Support for testing overrides (numpy.testing.overrides)
    • Window functions
  • Typing (numpy.typing)
  • Global state
  • NumPy C-API
  • CPU/SIMD Optimizations
  • NumPy security
  • NumPy and SWIG
  • NumPy reference
  • Extending
  • Extending...

Extending numpy.random via Cython#

Starting with NumPy 1.26.0, Meson is the default build system for NumPy. See distutils-status-migration.

  • meson.build
  • extending.pyx
  • extending_distributions.pyx

previous

Extending via Numba and CFFI

next

meson.build

© Copyright 2008-2024, NumPy Developers.

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.15.4.