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

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

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

by Anonymous » 03 Jun 2025, 18:17

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

Top