Skip to main content
Ctrl+K
Logo image Logo image

Site Navigation

  • User Guide
  • API reference
  • Development
  • Release notes
  • Learn
dev2.2 (stable)2.12.01.261.251.241.231.221.211.201.191.181.171.161.151.141.13

Site Navigation

  • User Guide
  • API reference
  • Development
  • Release notes
  • Learn

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
  • Packaging (numpy.distutils)
  • NumPy distutils - users guide
  • Status of numpy.distutils and migration advice
  • NumPy C-API
  • CPU/SIMD Optimizations
  • NumPy security
  • NumPy and SWIG
  • NumPy reference
  • Extending
  • Extending numpy.random via Cython

Extending numpy.random via Cython#

  • setup.py
  • extending.pyx
  • extending_distributions.pyx

previous

Extending via Numba and CFFI

next

setup.py

© Copyright 2008-2022, NumPy Developers.

Created using Sphinx 6.2.1.

Built with the PyData Sphinx Theme 0.13.3.