Expand description
Async operations for Python
This module provides async versions of long-running operations that can be awaited in Python.
§Example (Python)
import asyncio
import scirs2
import numpy as np
async def main():
# Async FFT for large arrays
data = np.random.randn(1_000_000)
result = await scirs2.fft_async(data)
# Async matrix decomposition
matrix = np.random.randn(1000, 1000)
svd = await scirs2.svd_async(matrix)
asyncio.run(main())Functions§
- fft_
async - Async FFT operation for large arrays
- minimize_
async - Async optimization for expensive objective functions
- qr_
async - Async QR decomposition for large matrices
- quad_
async - Async numerical integration for expensive integrands
- register_
async_ module - Register async operations with Python module
- svd_
async - Async SVD operation for large matrices