Skip to main content
Ctrl+K
NumPy v2.2 Manual - Home NumPy v2.2 Manual - Home
  • User Guide
  • API reference
  • Building from source
  • Development
  • Release notes
  • Learn
    • NEPs
dev2.2 (stable)2.12.01.261.251.241.231.221.211.201.191.181.171.161.151.141.13
  • GitHub
  • User Guide
  • API reference
  • Building from source
  • Development
  • Release notes
  • Learn
  • NEPs
dev2.2 (stable)2.12.01.261.251.241.231.221.211.201.191.181.171.161.151.141.13
  • GitHub

Section Navigation

  • NumPy’s module structure
  • Array objects
  • Universal functions (ufunc)
  • Routines and objects by topic
    • Constants
    • Array creation routines
    • Array manipulation routines
    • Bit-wise operations
    • String functionality
    • Datetime support functions
    • Data type routines
    • Mathematical functions with automatic domain
    • Floating point error handling
    • Exceptions and Warnings (numpy.exceptions)
    • Discrete Fourier Transform (numpy.fft)
    • Functional programming
    • Input and output
    • Indexing routines
    • Linear algebra (numpy.linalg)
    • Logic functions
    • Masked array operations
    • Mathematical functions
    • Miscellaneous routines
    • 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)
    • Window functions
  • Typing (numpy.typing)
  • Packaging (numpy.distutils)
  • NumPy C-API
  • Array API standard compatibility
  • CPU/SIMD optimizations
  • Thread Safety
  • Global Configuration Options
  • NumPy security
  • Status of numpy.distutils and migration advice
  • numpy.distutils user guide
  • NumPy and SWIG
  • NumPy reference
  • NumPy’s module structure
  • Random sampling (numpy.random)
  • Extending
  • Extending numpy.random via Cython

Extending numpy.random via Cython#

Starting with NumPy 1.26.0, Meson is the default build system for NumPy. See Status of numpy.distutils and migration advice.

  • 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.2.6.

Built with the PyData Sphinx Theme 0.16.0.