scm2cpp-learn 0.22.0__py3-none-macosx_15_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. scm2cpp_learn/.dylibs/libgcc_s.1.1.dylib +0 -0
  2. scm2cpp_learn/.dylibs/libgfortran.5.dylib +0 -0
  3. scm2cpp_learn/.dylibs/libomp.dylib +0 -0
  4. scm2cpp_learn/.dylibs/libopenblasp-r0.3.34.dylib +0 -0
  5. scm2cpp_learn/.dylibs/libquadmath.0.dylib +0 -0
  6. scm2cpp_learn/__init__.py +4794 -0
  7. scm2cpp_learn/_classifiers.cpython-312-darwin.so +0 -0
  8. scm2cpp_learn/_compat.py +354 -0
  9. scm2cpp_learn/_generated/__init__.py +0 -0
  10. scm2cpp_learn/_generated/_loader.py +41 -0
  11. scm2cpp_learn/_generated/_loader_accel_cublas.py +185 -0
  12. scm2cpp_learn/_generated/_loader_classifiers.py +308 -0
  13. scm2cpp_learn/_generated/_loader_derived_blas.py +29 -0
  14. scm2cpp_learn/_generated/_loader_derived_cublas.py +29 -0
  15. scm2cpp_learn/_generated/_loader_derived_loops.py +29 -0
  16. scm2cpp_learn/_generated/_loader_gpu_cuda.py +313 -0
  17. scm2cpp_learn/_generated/_loader_gramops_blas.py +836 -0
  18. scm2cpp_learn/_generated/_loader_gramops_loops.py +855 -0
  19. scm2cpp_learn/_generated/_loader_nmf_blas.py +29 -0
  20. scm2cpp_learn/_generated/_loader_nmf_cublas.py +29 -0
  21. scm2cpp_learn/_generated/_loader_nmf_loops.py +29 -0
  22. scm2cpp_learn/_generated/accel_cublas/accel.cpp +26 -0
  23. scm2cpp_learn/_generated/accel_cublas/accel.hpp +1250 -0
  24. scm2cpp_learn/_generated/accel_cublas/accel_capi.cpp +82 -0
  25. scm2cpp_learn/_generated/classifiers.cpp +37 -0
  26. scm2cpp_learn/_generated/classifiers.hpp +3745 -0
  27. scm2cpp_learn/_generated/classifiers_capi.cpp +115 -0
  28. scm2cpp_learn/_generated/derived_blas/lasso_design.cpp +5 -0
  29. scm2cpp_learn/_generated/derived_blas/lasso_design.hpp +156 -0
  30. scm2cpp_learn/_generated/derived_blas/lasso_design_capi.cpp +19 -0
  31. scm2cpp_learn/_generated/derived_cublas/lasso_design.cpp +5 -0
  32. scm2cpp_learn/_generated/derived_cublas/lasso_design.hpp +158 -0
  33. scm2cpp_learn/_generated/derived_cublas/lasso_design_capi.cpp +19 -0
  34. scm2cpp_learn/_generated/derived_loops/lasso_design.cpp +5 -0
  35. scm2cpp_learn/_generated/derived_loops/lasso_design.hpp +179 -0
  36. scm2cpp_learn/_generated/derived_loops/lasso_design_capi.cpp +19 -0
  37. scm2cpp_learn/_generated/gpu_cuda/gpu.cpp +37 -0
  38. scm2cpp_learn/_generated/gpu_cuda/gpu.hpp +3846 -0
  39. scm2cpp_learn/_generated/gpu_cuda/gpu_capi.cpp +308 -0
  40. scm2cpp_learn/_generated/gramops_blas/gramops.cpp +99 -0
  41. scm2cpp_learn/_generated/gramops_blas/gramops.hpp +6655 -0
  42. scm2cpp_learn/_generated/gramops_blas/gramops_capi.cpp +295 -0
  43. scm2cpp_learn/_generated/gramops_loops/gramops.cpp +99 -0
  44. scm2cpp_learn/_generated/gramops_loops/gramops.hpp +7711 -0
  45. scm2cpp_learn/_generated/gramops_loops/gramops_capi.cpp +301 -0
  46. scm2cpp_learn/_generated/lasso_cov.cpp +7 -0
  47. scm2cpp_learn/_generated/lasso_cov.hpp +152 -0
  48. scm2cpp_learn/_generated/lasso_cov_capi.cpp +25 -0
  49. scm2cpp_learn/_generated/nmf_blas/nmf_cd.cpp +5 -0
  50. scm2cpp_learn/_generated/nmf_blas/nmf_cd.hpp +132 -0
  51. scm2cpp_learn/_generated/nmf_blas/nmf_cd_capi.cpp +19 -0
  52. scm2cpp_learn/_generated/nmf_cublas/nmf_cd.cpp +5 -0
  53. scm2cpp_learn/_generated/nmf_cublas/nmf_cd.hpp +136 -0
  54. scm2cpp_learn/_generated/nmf_cublas/nmf_cd_capi.cpp +19 -0
  55. scm2cpp_learn/_generated/nmf_loops/nmf_cd.cpp +5 -0
  56. scm2cpp_learn/_generated/nmf_loops/nmf_cd.hpp +167 -0
  57. scm2cpp_learn/_generated/nmf_loops/nmf_cd_capi.cpp +19 -0
  58. scm2cpp_learn/_generated/scm2cpp-blas.hpp +176 -0
  59. scm2cpp_learn/_generated/scm2cpp-cublas.hpp +155 -0
  60. scm2cpp_learn/_generated/scm2cpp-cuda.hpp +285 -0
  61. scm2cpp_learn/_generated/scm2cpp.hpp +1641 -0
  62. scm2cpp_learn/_gramops_blas.cpython-312-darwin.so +0 -0
  63. scm2cpp_learn/_lasso_cov.cpython-312-darwin.so +0 -0
  64. scm2cpp_learn/_lasso_derived_blas.cpython-312-darwin.so +0 -0
  65. scm2cpp_learn/_libfind.py +153 -0
  66. scm2cpp_learn/_nmf_blas.cpython-312-darwin.so +0 -0
  67. scm2cpp_learn/batch_capi.cu +431 -0
  68. scm2cpp_learn-0.22.0.dist-info/METADATA +1350 -0
  69. scm2cpp_learn-0.22.0.dist-info/RECORD +71 -0
  70. scm2cpp_learn-0.22.0.dist-info/WHEEL +6 -0
  71. scm2cpp_learn-0.22.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,82 @@
1
+ // extern "C" wrappers over the translated functions, for Python and
2
+ // any other caller that speaks the C ABI. Array parameters arrive as
3
+ // element pointers: a view parameter takes the pointer as it is, so
4
+ // the caller's buffer is read and written in place with no copy; a
5
+ // fixed-extent one is reinterpreted as the std::array the function
6
+ // expects. The caller guarantees the length either way.
7
+ // Build (boost includes only if the generated header asks for them,
8
+ // which a numeric kernel's does not):
9
+ // g++ -O2 -std=c++17 -shared -fPIC -I. -o libaccel.so accel_capi.cpp
10
+ #include "accel.hpp"
11
+ #include <vector>
12
+ #include <algorithm>
13
+
14
+ extern "C" std::int64_t scm2cpp_f_regression(double* x, double* y, double* r, double* f, std::int64_t center, std::int64_t n, std::int64_t p, std::int64_t q) {
15
+ return f_regression(x, y, r, f, center, n, p, q);
16
+ }
17
+ extern "C" std::int64_t scm2cpp_f_classif(double* x, int* lab, double* f, std::int64_t n, std::int64_t p, std::int64_t k) {
18
+ return f_classif(x, lab, f, n, p, k);
19
+ }
20
+ extern "C" double scm2cpp_min_pos(double* v, std::int64_t m) {
21
+ return min_pos(v, m);
22
+ }
23
+ extern "C" double scm2cpp_round_even(double y) {
24
+ return round_even(y);
25
+ }
26
+ extern "C" std::int64_t scm2cpp_cholesky_delete(double* l, std::int64_t go, std::int64_t n, std::int64_t k) {
27
+ return cholesky_delete(l, go, n, k);
28
+ }
29
+ extern "C" std::int64_t scm2cpp_swap_rc(double* g, std::int64_t a, std::int64_t b, std::int64_t p) {
30
+ return swap_rc(g, a, b, p);
31
+ }
32
+ extern "C" std::int64_t scm2cpp_lars(double* g, double* cov, double* coef, double* path, double* alphas, std::int64_t rec, double nsamples, double alphamin, std::int64_t method, std::int64_t maxiter, double eps, std::int64_t p) {
33
+ return lars(g, cov, coef, path, alphas, rec, nsamples, alphamin, method, maxiter, eps, p);
34
+ }
35
+ extern "C" std::int64_t scm2cpp_rfe_chol(double* g, int* idx, double* l, double alpha, std::int64_t k, std::int64_t p) {
36
+ return rfe_chol(g, idx, l, alpha, k, p);
37
+ }
38
+ extern "C" std::int64_t scm2cpp_rfe_solve(double* c, int* idx, double* w, double* l, std::int64_t k, std::int64_t p) {
39
+ return rfe_solve(c, idx, w, l, k, p);
40
+ }
41
+ extern "C" std::int64_t scm2cpp_rfe(double* x, double* y, double* coef, int* support, int* ranking, double alpha, std::int64_t nsel, std::int64_t step, std::int64_t n, std::int64_t p) {
42
+ return rfe(x, y, coef, support, ranking, alpha, nsel, step, n, p);
43
+ }
44
+ extern "C" double scm2cpp_eig_hypot(double a, double b) {
45
+ return eig_hypot(a, b);
46
+ }
47
+ extern "C" std::int64_t scm2cpp_sym_eigen(double* a, double* v, double* ev, double* e, std::int64_t m) {
48
+ return sym_eigen(a, v, ev, e, m);
49
+ }
50
+ extern "C" double scm2cpp_eig_abs(double a) {
51
+ return eig_abs(a);
52
+ }
53
+ extern "C" std::int64_t scm2cpp_eig_order(double* ev, int* ord, std::int64_t m) {
54
+ return eig_order(ev, ord, m);
55
+ }
56
+ extern "C" std::int64_t scm2cpp_sym_eigen_top(double* a, double* v, double* ev, double* e, std::int64_t m, std::int64_t k) {
57
+ return sym_eigen_top(a, v, ev, e, m, k);
58
+ }
59
+ extern "C" std::int64_t scm2cpp_sym_eigen_gen(double* a, double* b, double* v, double* ev, double* e, std::int64_t m) {
60
+ return sym_eigen_gen(a, b, v, ev, e, m);
61
+ }
62
+ extern "C" std::int64_t scm2cpp_pca(double* x, double* comps, double* ev, double* sv, double* mean, std::int64_t n, std::int64_t p) {
63
+ return pca(x, comps, ev, sv, mean, n, p);
64
+ }
65
+ extern "C" std::int64_t scm2cpp_gram_xx(double* x, double* g, std::int64_t n, std::int64_t p) {
66
+ return gram_xx(x, g, n, p);
67
+ }
68
+ extern "C" std::int64_t scm2cpp_gram_xy(double* x, double* y, double* c, std::int64_t n, std::int64_t p, std::int64_t q) {
69
+ return gram_xy(x, y, c, n, p, q);
70
+ }
71
+ extern "C" std::int64_t scm2cpp_spd_solve(double* a, double* b, std::int64_t m, std::int64_t q) {
72
+ return spd_solve(a, b, m, q);
73
+ }
74
+ extern "C" double scm2cpp_gram_abs(double x) {
75
+ return gram_abs(x);
76
+ }
77
+ extern "C" double scm2cpp_spd_solve_rcond(double* a, double* b, std::int64_t m, std::int64_t q) {
78
+ return spd_solve_rcond(a, b, m, q);
79
+ }
80
+ extern "C" std::int64_t scm2cpp_gram_ridge_solve(double* g, double* c, double alpha, std::int64_t m, std::int64_t q) {
81
+ return gram_ridge_solve(g, c, alpha, m, q);
82
+ }
@@ -0,0 +1,37 @@
1
+
2
+ #include "classifiers.hpp"
3
+ // #include "scm2cpp.hpp"
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+