Page 1 of 1

Ist es so gut, ein Stück Numpy :: pyreadonlyArray in Pyo3 :: degly_threads () zu verwenden?

Posted: 03 Jun 2025, 18:17
by Anonymous
Mein Ziel ist es, eine effiziente (und sichere) Möglichkeit zu implementieren, eine Rostfunktion mit Numpy :: pyreadonlyArray mit Null-Kopie und Gil-Freisetzung während der Berechnung zu wickeln.use crate::indicators::ema::core_ema;
use numpy::{PyArray1, PyArrayMethods};
use pyo3::pyfunction;

#[pyfunction(signature = (data, window_size = 14, alpha = None))]
pub(crate) fn ema,
data: numpy::PyReadonlyArray1