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,295 @@
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 libgramops.so gramops_capi.cpp
10
+ #include "gramops.hpp"
11
+ #include <vector>
12
+ #include <algorithm>
13
+
14
+ extern "C" std::int64_t scm2cpp_spd_inverse(double* a, double* inv, double* l, double* z, std::int64_t p) {
15
+ return spd_inverse(a, inv, l, z, p);
16
+ }
17
+ extern "C" std::int64_t scm2cpp_enet_gap(double* w, double* q, double* qw, double* xta, double* out, double alpha, double ynorm2, std::int64_t m) {
18
+ return enet_gap(w, q, qw, xta, *reinterpret_cast<std::array<double,2>*>(out), alpha, ynorm2, m);
19
+ }
20
+ extern "C" std::int64_t scm2cpp_enet_safe_rule(double* w, double* qm, double* qw, double* xta, int* active, int* excl, double* out, double alpha, std::int64_t m) {
21
+ return enet_safe_rule(w, qm, qw, xta, active, excl, *reinterpret_cast<std::array<double,2>*>(out), alpha, m);
22
+ }
23
+ extern "C" std::int64_t scm2cpp_enet_gram(double* w, double* qm, double* q, double* qw, double* xta, int* active, int* excl, double* out, double alpha, std::int64_t maxiter, double tol, std::int64_t m) {
24
+ return enet_gram(w, qm, q, qw, xta, active, excl, *reinterpret_cast<std::array<double,2>*>(out), alpha, maxiter, tol, m);
25
+ }
26
+ extern "C" std::int64_t scm2cpp_graphical_lasso(double* emp, double* cov, double* prec, double alpha, std::int64_t maxiter, double tol, double enettol, std::int64_t p) {
27
+ return graphical_lasso(emp, cov, prec, alpha, maxiter, tol, enettol, p);
28
+ }
29
+ extern "C" std::int64_t scm2cpp_omp(double* x, double* y, double* coef, double* path, std::int64_t rec, std::int64_t kmax, std::int64_t n, std::int64_t p) {
30
+ return omp(x, y, coef, path, rec, kmax, n, p);
31
+ }
32
+ extern "C" double scm2cpp_logistic_fg(double* coef, double* g, double* x, double* y, double* z, double l2, std::int64_t multi, std::int64_t fitint, std::int64_t n, std::int64_t p, std::int64_t k) {
33
+ return logistic_fg(coef, g, x, y, z, l2, multi, fitint, n, p, k);
34
+ }
35
+ extern "C" std::int64_t scm2cpp_logistic_lbfgs(double* x, double* y, double* coef, double* out, double c, std::int64_t maxiter, double tol, std::int64_t multi, std::int64_t fitint, std::int64_t n, std::int64_t p, std::int64_t k) {
36
+ return logistic_lbfgs(x, y, coef, out, c, maxiter, tol, multi, fitint, n, p, k);
37
+ }
38
+ extern "C" double scm2cpp_huber_fg(double* coef, double* g, double* x, double* y, double* z, double epsilon, double alpha, std::int64_t fitint, std::int64_t n, std::int64_t p) {
39
+ return huber_fg(coef, g, x, y, z, epsilon, alpha, fitint, n, p);
40
+ }
41
+ extern "C" std::int64_t scm2cpp_huber(double* x, double* y, double* coef, double* out, double epsilon, double alpha, std::int64_t maxiter, double tol, std::int64_t fitint, std::int64_t n, std::int64_t p) {
42
+ return huber(x, y, coef, out, epsilon, alpha, maxiter, tol, fitint, n, p);
43
+ }
44
+ extern "C" double scm2cpp_glm_fg(double* coef, double* g, double* x, double* y, double* z, std::int64_t family, double power, double l2, std::int64_t fitint, std::int64_t n, std::int64_t p) {
45
+ return glm_fg(coef, g, x, y, z, family, power, l2, fitint, n, p);
46
+ }
47
+ extern "C" std::int64_t scm2cpp_glm(double* x, double* y, double* coef, double* out, std::int64_t family, double power, double alpha, std::int64_t maxiter, double tol, std::int64_t fitint, std::int64_t n, std::int64_t p) {
48
+ return glm(x, y, coef, out, family, power, alpha, maxiter, tol, fitint, n, p);
49
+ }
50
+ extern "C" double scm2cpp_lb_abs(double a) {
51
+ return lb_abs(a);
52
+ }
53
+ extern "C" double scm2cpp_lb_max(double a, double b) {
54
+ return lb_max(a, b);
55
+ }
56
+ extern "C" double scm2cpp_lb_min(double a, double b) {
57
+ return lb_min(a, b);
58
+ }
59
+ extern "C" std::int64_t scm2cpp_lb_dcstep(double* cs, double fp, double dp, double stpmin, double stpmax) {
60
+ return lb_dcstep(*reinterpret_cast<std::array<double,8>*>(cs), fp, dp, stpmin, stpmax);
61
+ }
62
+ extern "C" std::int64_t scm2cpp_lb_search_start(double* ls, double f, double g, double stp, double stpmin, double stpmax, double ftol) {
63
+ return lb_search_start(*reinterpret_cast<std::array<double,16>*>(ls), f, g, stp, stpmin, stpmax, ftol);
64
+ }
65
+ extern "C" std::int64_t scm2cpp_lb_search_step(double* ls, double* cs, double f, double g, double ftol, double gtol, double xtol, double stpmin, double stpmax) {
66
+ return lb_search_step(*reinterpret_cast<std::array<double,16>*>(ls), *reinterpret_cast<std::array<double,8>*>(cs), f, g, ftol, gtol, xtol, stpmin, stpmax);
67
+ }
68
+ extern "C" double scm2cpp_lb_dot(double* a, double* b, std::int64_t nv) {
69
+ return lb_dot(a, b, nv);
70
+ }
71
+ extern "C" double scm2cpp_lb_dot_row(double* mem, std::int64_t slot, double* v, std::int64_t nv) {
72
+ return lb_dot_row(mem, slot, v, nv);
73
+ }
74
+ extern "C" double scm2cpp_lb_dot_rows(double* a, std::int64_t ra, double* b, std::int64_t rb, std::int64_t nv) {
75
+ return lb_dot_rows(a, ra, b, rb, nv);
76
+ }
77
+ extern "C" double scm2cpp_lb_projgr(double* g, double* w, std::int64_t ib, double lbv, std::int64_t nv) {
78
+ return lb_projgr(g, w, ib, lbv, nv);
79
+ }
80
+ extern "C" std::int64_t scm2cpp_lb_hv(double* q, double* smem, double* ymem, double* rho, double* al, double theta, std::int64_t col, std::int64_t head, std::int64_t m, std::int64_t nv) {
81
+ return lb_hv(q, smem, ymem, rho, al, theta, col, head, m, nv);
82
+ }
83
+ extern "C" double scm2cpp_lb_vbv(double* v, double* smem, double* ymem, double* rho, double* bm, double* sb, double theta, std::int64_t col, std::int64_t head, std::int64_t m, std::int64_t nv) {
84
+ return lb_vbv(v, smem, ymem, rho, bm, sb, theta, col, head, m, nv);
85
+ }
86
+ extern "C" std::int64_t scm2cpp_lb_direction(double* w, double* g, double* d, double* q, double* e, double* smem, double* ymem, double* rho, double* al, double* bm, double* sb, double theta, std::int64_t col, std::int64_t head, std::int64_t m, std::int64_t ib, double lbv, std::int64_t nv) {
87
+ return lb_direction(w, g, d, q, e, smem, ymem, rho, al, bm, sb, theta, col, head, m, ib, lbv, nv);
88
+ }
89
+ extern "C" std::int64_t scm2cpp_lbfgs(std::int64_t kind, double* w, double* x, double* y, double* aux, double* work, double* out, std::int64_t m, std::int64_t maxiter, double pgtol, double ftol, std::int64_t maxls, std::int64_t ib, double lbv, std::int64_t nv, std::int64_t n, std::int64_t p, std::int64_t k) {
90
+ return lbfgs(kind, w, x, y, *reinterpret_cast<std::array<double,4>*>(aux), work, out, m, maxiter, pgtol, ftol, maxls, ib, lbv, nv, n, p, k);
91
+ }
92
+ extern "C" double scm2cpp_lbfgs_fg(std::int64_t kind, double* w, double* g, double* x, double* y, double* aux, double* work, std::int64_t n, std::int64_t p, std::int64_t k) {
93
+ return lbfgs_fg(kind, w, g, x, y, *reinterpret_cast<std::array<double,4>*>(aux), work, n, p, k);
94
+ }
95
+ extern "C" std::int64_t scm2cpp_gmm_mstep(double* x, double* resp, double* weights, double* means, double* prec, double* dw, double* cov, double* l, double* u, double reg, std::int64_t norm, std::int64_t n, std::int64_t p, std::int64_t kc) {
96
+ return gmm_mstep(x, resp, weights, means, prec, dw, cov, l, u, reg, norm, n, p, kc);
97
+ }
98
+ extern "C" double scm2cpp_gmm_estep(double* x, double* resp, double* weights, double* means, double* prec, double* wlp, double* y, double* u, double* mu, std::int64_t n, std::int64_t p, std::int64_t kc) {
99
+ return gmm_estep(x, resp, weights, means, prec, wlp, y, u, mu, n, p, kc);
100
+ }
101
+ extern "C" double scm2cpp_gmm_abs(double a) {
102
+ return gmm_abs(a);
103
+ }
104
+ extern "C" std::int64_t scm2cpp_gmm(double* x, double* resp, double* weights, double* means, double* prec, double* labels, double* out, std::int64_t maxiter, double tol, double reg, std::int64_t n, std::int64_t p, std::int64_t kc) {
105
+ return gmm(x, resp, weights, means, prec, labels, out, maxiter, tol, reg, n, p, kc);
106
+ }
107
+ extern "C" double scm2cpp_eig_hypot(double a, double b) {
108
+ return eig_hypot(a, b);
109
+ }
110
+ extern "C" std::int64_t scm2cpp_sym_eigen(double* a, double* v, double* ev, double* e, std::int64_t m) {
111
+ return sym_eigen(a, v, ev, e, m);
112
+ }
113
+ extern "C" double scm2cpp_eig_abs(double a) {
114
+ return eig_abs(a);
115
+ }
116
+ extern "C" std::int64_t scm2cpp_eig_order(double* ev, int* ord, std::int64_t m) {
117
+ return eig_order(ev, ord, m);
118
+ }
119
+ extern "C" double scm2cpp_ica_tanh(double x) {
120
+ return ica_tanh(x);
121
+ }
122
+ extern "C" std::int64_t scm2cpp_ica_sym(double* w, double* a, double* v, double* ev, double* e, double* t, std::int64_t m) {
123
+ return ica_sym(w, a, v, ev, e, t, m);
124
+ }
125
+ extern "C" std::int64_t scm2cpp_fastica(double* x, double* winit, double* comps, double* white, double* unmix, double* mean, std::int64_t maxiter, double tol, std::int64_t n, std::int64_t p, std::int64_t nc) {
126
+ return fastica(x, winit, comps, white, unmix, mean, maxiter, tol, n, p, nc);
127
+ }
128
+ 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) {
129
+ return pca(x, comps, ev, sv, mean, n, p);
130
+ }
131
+ extern "C" std::int64_t scm2cpp_ard_pinvh(double* a, double* s, double* v, double* ev, double* e, std::int64_t k) {
132
+ return ard_pinvh(a, s, v, ev, e, k);
133
+ }
134
+ extern "C" std::int64_t scm2cpp_ard_sigma_coef(double* xy, int* idx, double* lam, double* coef, double* sigma, double* a, double* v, double* ev, double* e, double* gk, double alpha, std::int64_t k) {
135
+ return ard_sigma_coef(xy, idx, lam, coef, sigma, a, v, ev, e, gk, alpha, k);
136
+ }
137
+ extern "C" std::int64_t scm2cpp_ard(double* x, double* y, double* coef, double* sigma, double* lam, double* out, std::int64_t maxiter, double tol, double alpha1, double alpha2, double lambda1, double lambda2, double thresh, std::int64_t hoist, std::int64_t n, std::int64_t p) {
138
+ return ard(x, y, coef, sigma, lam, out, maxiter, tol, alpha1, alpha2, lambda1, lambda2, thresh, hoist, n, p);
139
+ }
140
+ 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) {
141
+ return f_regression(x, y, r, f, center, n, p, q);
142
+ }
143
+ 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) {
144
+ return f_classif(x, lab, f, n, p, k);
145
+ }
146
+ extern "C" double scm2cpp_min_pos(double* v, std::int64_t m) {
147
+ return min_pos(v, m);
148
+ }
149
+ extern "C" double scm2cpp_round_even(double y) {
150
+ return round_even(y);
151
+ }
152
+ extern "C" std::int64_t scm2cpp_cholesky_delete(double* l, std::int64_t go, std::int64_t n, std::int64_t k) {
153
+ return cholesky_delete(l, go, n, k);
154
+ }
155
+ extern "C" std::int64_t scm2cpp_swap_rc(double* g, std::int64_t a, std::int64_t b, std::int64_t p) {
156
+ return swap_rc(g, a, b, p);
157
+ }
158
+ 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) {
159
+ return lars(g, cov, coef, path, alphas, rec, nsamples, alphamin, method, maxiter, eps, p);
160
+ }
161
+ extern "C" std::int64_t scm2cpp_rfe_chol(double* g, int* idx, double* l, double alpha, std::int64_t k, std::int64_t p) {
162
+ return rfe_chol(g, idx, l, alpha, k, p);
163
+ }
164
+ extern "C" std::int64_t scm2cpp_rfe_solve(double* c, int* idx, double* w, double* l, std::int64_t k, std::int64_t p) {
165
+ return rfe_solve(c, idx, w, l, k, p);
166
+ }
167
+ 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) {
168
+ return rfe(x, y, coef, support, ranking, alpha, nsel, step, n, p);
169
+ }
170
+ extern "C" std::int64_t scm2cpp_gram_xx(double* x, double* g, std::int64_t n, std::int64_t p) {
171
+ return gram_xx(x, g, n, p);
172
+ }
173
+ 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) {
174
+ return gram_xy(x, y, c, n, p, q);
175
+ }
176
+ extern "C" std::int64_t scm2cpp_spd_solve(double* a, double* b, std::int64_t m, std::int64_t q) {
177
+ return spd_solve(a, b, m, q);
178
+ }
179
+ extern "C" double scm2cpp_gram_abs(double x) {
180
+ return gram_abs(x);
181
+ }
182
+ extern "C" double scm2cpp_spd_solve_rcond(double* a, double* b, std::int64_t m, std::int64_t q) {
183
+ return spd_solve_rcond(a, b, m, q);
184
+ }
185
+ extern "C" std::int64_t scm2cpp_gram_ridge_solve(double* g, double* c, double alpha, std::int64_t m, std::int64_t q) {
186
+ return gram_ridge_solve(g, c, alpha, m, q);
187
+ }
188
+ extern "C" std::int64_t scm2cpp_ridge_gcv_primal(double* x, double* xm, double* yc, double* g, double* v, double* lam, double* z, double* r, std::int64_t n, std::int64_t p, std::int64_t t) {
189
+ return ridge_gcv_primal(x, xm, yc, g, v, lam, z, r, n, p, t);
190
+ }
191
+ extern "C" std::int64_t scm2cpp_ridge_gcv_dual(double* k, double* q, double* mu, double* yc, double* r, std::int64_t n, std::int64_t t, std::int64_t icpt) {
192
+ return ridge_gcv_dual(k, q, mu, yc, r, n, t, icpt);
193
+ }
194
+ extern "C" std::int64_t scm2cpp_ridge_gcv_scan_dual(double* q, double* mu, double* r, double* alphas, std::int64_t drop, double* mse, double* loo, std::int64_t store, std::int64_t n, std::int64_t t, std::int64_t na) {
195
+ return ridge_gcv_scan_dual(q, mu, r, alphas, drop, mse, loo, store, n, t, na);
196
+ }
197
+ extern "C" std::int64_t scm2cpp_ridge_gcv_scan(double* z, double* lam, double* r, double* yc, double* alphas, double h0, double* mse, double* loo, std::int64_t store, std::int64_t n, std::int64_t m, std::int64_t t, std::int64_t na) {
198
+ return ridge_gcv_scan(z, lam, r, yc, alphas, h0, mse, loo, store, n, m, t, na);
199
+ }
200
+ extern "C" std::int64_t scm2cpp_kpca_row_norms(double* x, double* s, std::int64_t n, std::int64_t p) {
201
+ return kpca_row_norms(x, s, n, p);
202
+ }
203
+ extern "C" std::int64_t scm2cpp_kpca_apply(double* g, double* sa, double* sb, std::int64_t kind, double gamma, double degree, double coef0, std::int64_t na, std::int64_t nb) {
204
+ return kpca_apply(g, sa, sb, kind, gamma, degree, coef0, na, nb);
205
+ }
206
+ extern "C" std::int64_t scm2cpp_kpca_kernel(double* x, double* y, double* k, std::int64_t kind, double gamma, double degree, double coef0, std::int64_t na, std::int64_t nb, std::int64_t p) {
207
+ return kpca_kernel(x, y, k, kind, gamma, degree, coef0, na, nb, p);
208
+ }
209
+ extern "C" std::int64_t scm2cpp_kpca_kernel_self(double* x, double* k, std::int64_t kind, double gamma, double degree, double coef0, std::int64_t n, std::int64_t p) {
210
+ return kpca_kernel_self(x, k, kind, gamma, degree, coef0, n, p);
211
+ }
212
+ extern "C" std::int64_t scm2cpp_kpca_centre(double* k, double* m, std::int64_t n) {
213
+ return kpca_centre(k, m, n);
214
+ }
215
+ extern "C" std::int64_t scm2cpp_kpca_centre_new(double* k, double* m, std::int64_t nb, std::int64_t n) {
216
+ return kpca_centre_new(k, m, nb, n);
217
+ }
218
+ extern "C" std::int64_t scm2cpp_kpca_flip(double* vecs, double* vals, std::int64_t n, std::int64_t c) {
219
+ return kpca_flip(vecs, vals, n, c);
220
+ }
221
+ extern "C" std::int64_t scm2cpp_kpca_top_dense(double* k, double* vecs, double* vals, std::int64_t n, std::int64_t c) {
222
+ return kpca_top_dense(k, vecs, vals, n, c);
223
+ }
224
+ extern "C" std::int64_t scm2cpp_kpca_orth(double* y, double* g, std::int64_t n, std::int64_t b) {
225
+ return kpca_orth(y, g, n, b);
226
+ }
227
+ extern "C" std::int64_t scm2cpp_kpca_top_subspace(double* k, double* q, double* vecs, double* vals, std::int64_t n, std::int64_t b, std::int64_t c, double tol, std::int64_t maxit) {
228
+ return kpca_top_subspace(k, q, vecs, vals, n, b, c, tol, maxit);
229
+ }
230
+ extern "C" std::int64_t scm2cpp_kpca_linear(double* x, double* xm, double* g, double* vecs, double* vals, std::int64_t n, std::int64_t p, std::int64_t c) {
231
+ return kpca_linear(x, xm, g, vecs, vals, n, p, c);
232
+ }
233
+ extern "C" std::int64_t scm2cpp_lda_moments(double* x, int* lab, double* g, double* means, double* counts, std::int64_t n, std::int64_t p, std::int64_t k) {
234
+ return lda_moments(x, lab, g, means, counts, n, p, k);
235
+ }
236
+ extern "C" std::int64_t scm2cpp_lda_within(double* g, double* means, double* counts, double n, std::int64_t p, std::int64_t k) {
237
+ return lda_within(g, means, counts, n, p, k);
238
+ }
239
+ extern "C" std::int64_t scm2cpp_lda_svd_first(double* sw, double* std, double* v, double* s, std::int64_t p) {
240
+ return lda_svd_first(sw, std, v, s, p);
241
+ }
242
+ extern "C" std::int64_t scm2cpp_lda_eigen(double* sb, double* sw, double* v, double* ev, std::int64_t p) {
243
+ return lda_eigen(sb, sw, v, ev, p);
244
+ }
245
+ extern "C" std::int64_t scm2cpp_tsvd_flip(double* v, double* z, std::int64_t n, std::int64_t p, std::int64_t k) {
246
+ return tsvd_flip(v, z, n, p, k);
247
+ }
248
+ extern "C" std::int64_t scm2cpp_tsvd_tall(double* x, double* v, double* s, double* z, std::int64_t n, std::int64_t p, std::int64_t k) {
249
+ return tsvd_tall(x, v, s, z, n, p, k);
250
+ }
251
+ extern "C" std::int64_t scm2cpp_tsvd_wide(double* x, double* v, double* s, double* z, std::int64_t n, std::int64_t p, std::int64_t k) {
252
+ return tsvd_wide(x, v, s, z, n, p, k);
253
+ }
254
+ extern "C" std::int64_t scm2cpp_tsvd_gram(double* g, double* v, double* s, std::int64_t m, std::int64_t k) {
255
+ return tsvd_gram(g, v, s, m, k);
256
+ }
257
+ extern "C" std::int64_t scm2cpp_svd_jacobi(double* w, double* q, std::int64_t r, std::int64_t c) {
258
+ return svd_jacobi(w, q, r, c);
259
+ }
260
+ extern "C" std::int64_t scm2cpp_svd_collect(double* w, double* q, double* s, double* l, double* rr, int* ord, std::int64_t r, std::int64_t c) {
261
+ return svd_collect(w, q, s, l, rr, ord, r, c);
262
+ }
263
+ extern "C" std::int64_t scm2cpp_sym_svd(double* a, double* u, double* s, double* vt, std::int64_t m, std::int64_t n) {
264
+ return sym_svd(a, u, s, vt, m, n);
265
+ }
266
+ extern "C" std::int64_t scm2cpp_pls_pinv(double* a, double* pv, std::int64_t m) {
267
+ return pls_pinv(a, pv, m);
268
+ }
269
+ extern "C" std::int64_t scm2cpp_pls_mv(double* a, double* x, double* y, std::int64_t m, std::int64_t n) {
270
+ return pls_mv(a, x, y, m, n);
271
+ }
272
+ extern "C" std::int64_t scm2cpp_pls_mtv(double* a, double* x, double* y, std::int64_t m, std::int64_t n) {
273
+ return pls_mtv(a, x, y, m, n);
274
+ }
275
+ extern "C" double scm2cpp_pls_dot(double* x, double* y, std::int64_t m) {
276
+ return pls_dot(x, y, m);
277
+ }
278
+ extern "C" std::int64_t scm2cpp_pls_fit(double* cxx, double* cxy, double* cyy, double* xw, double* yw, double* xl, double* yl, int* niter, std::int64_t p, std::int64_t q, std::int64_t k, std::int64_t mode, std::int64_t canon, std::int64_t algo, std::int64_t maxit, double tol) {
279
+ return pls_fit(cxx, cxy, cyy, xw, yw, xl, yl, niter, p, q, k, mode, canon, algo, maxit, tol);
280
+ }
281
+ extern "C" std::int64_t scm2cpp_fa_fit(double* c, double* var, double* psi, double* w, double* ll, double n, std::int64_t p, std::int64_t k, std::int64_t maxit, double tol) {
282
+ return fa_fit(c, var, psi, w, ll, n, p, k, maxit, tol);
283
+ }
284
+ extern "C" std::int64_t scm2cpp_linreg_solve(double* g, double* b, double* coef, std::int64_t p, std::int64_t t, double ratio, double tol) {
285
+ return linreg_solve(g, b, coef, p, t, ratio, tol);
286
+ }
287
+ extern "C" std::int64_t scm2cpp_linreg_singular(double* g, double* s, std::int64_t p, double tol) {
288
+ return linreg_singular(g, s, p, tol);
289
+ }
290
+ extern "C" std::int64_t scm2cpp_csr_gram(std::int64_t* rp, int* ci, double* v, double* g, std::int64_t p, std::int64_t r0, std::int64_t r1) {
291
+ return csr_gram(rp, ci, v, g, p, r0, r1);
292
+ }
293
+ extern "C" std::int64_t scm2cpp_csr_mm(std::int64_t* rp, int* ci, double* v, double* b, double* c, std::int64_t n, std::int64_t k) {
294
+ return csr_mm(rp, ci, v, b, c, n, k);
295
+ }