Idea: support virtual table of LAPACK functions
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 30/100
Piste de recherche
Start by reviewing the proposed lax::init_from_python(py) entry point, SciPy's scipy.linalg.cython_blas and scipy.linalg.cython_lapack interfaces, and the working approach linked in lenskit/lkpy#960. Define how a PyO3 module would obtain and install the function pointers so lax and ndarray-linalg can reuse SciPy's BLAS and LAPACK without a separate copy.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
This might more properly belong in lapack-sys, but it would be very useful to be able to reuse BLAS and LAPACK from SciPy when using lax and ndarray-linalg to build Python extension modules with PyO3.
SciPy exposes routines from the BLAS and LAPACK it was linked against in a manner that can be imported with Cython's cimport, in the modules scipy.linalg.cython_blas and scipy.linalg.cython_lapack, to allow other Python extension modules implemented using Cython to reuse BLAS and LAPACK instead of needing to supply their own copy. I am not sure the best way to identify and properly link against these functions; I have one working method at lenskit/lkpy#960, fishing a pointer to sposv out of Python at runtime (the Cython modules expose them in a Python dictionary).
I imagine an interface where a PyO3 extension module can do something like use lax with a python feature, then call a method like lax::init_from_python(py) in a module initializer to grab the proper function pointers and set them up for lax to use, after which the lax methods (and therefore ndarray-linalg) will work without needing to compile or link against a separate BLAS and LAPACK.
In shared-library settings, like Pixi/Conda or system packages, all of the different modules can directly link against the same "system" BLAS. However, Python binary wheels do not make that easy, and the general solution is for each package to statically link against BLAS, or to use SciPy's export if it depends on SciPy.
- Langage dominant
- Rust
- Étoiles
- 452
- Forks
- 95
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de rust-ndarray/ndarray-linalg
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
rust-ndarray/ndarray-linalg#420 ·
-
Thin SVDOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 38/100
rust-ndarray/ndarray-linalg#414 ·
-
Cyclically Tridiagonal Matrices?Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
rust-ndarray/ndarray-linalg#404 ·
-
SIGSEGV on qr decompositionOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
rust-ndarray/ndarray-linalg#402 · 1 commentaire ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
rust-ndarray/ndarray-linalg#401 · 2 réactions ·
Toutes les issues de rust-ndarray/ndarray-linalg
Issues similaires
-
Write a support policyOuverte
Difficulté 1/5 1-3 heures Accessibilité débutants 72/100
MattA-Official/vwmcp#20 ·
-
documentation good first issue
Difficulté 1/5 1-3 heures Accessibilité débutants 88/100
undergroundrap/hatchling#15 ·
-
Progress difficulty filter lists Hard before MediumPeut-être pris @Pandamachi l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
sysprog21/codetrial#281 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
CLI: --verdict silently ignores extra program/file argumentsPeut-être pris @oxura l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
HigherOrderCO/Bend#1503 ·
-
Add MySQL test coverage for numeric_precision/numeric_scale and seq_in_fk (follow-up to #939)Peut-être pris @tosinxt l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
TabularisDB/tabularis#977 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour