scm2cpp-learn 0.18.0__py3-none-win_amd64.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.
- scm2cpp_learn/__init__.py +3836 -0
- scm2cpp_learn/_classifiers.cp312-win_amd64.pyd +0 -0
- scm2cpp_learn/_compat.py +284 -0
- scm2cpp_learn/_generated/__init__.py +0 -0
- scm2cpp_learn/_generated/_loader.py +41 -0
- scm2cpp_learn/_generated/_loader_accel_cublas.py +173 -0
- scm2cpp_learn/_generated/_loader_classifiers.py +308 -0
- scm2cpp_learn/_generated/_loader_derived_blas.py +29 -0
- scm2cpp_learn/_generated/_loader_derived_cublas.py +29 -0
- scm2cpp_learn/_generated/_loader_derived_loops.py +29 -0
- scm2cpp_learn/_generated/_loader_gpu_cuda.py +313 -0
- scm2cpp_learn/_generated/_loader_gramops_blas.py +692 -0
- scm2cpp_learn/_generated/_loader_gramops_loops.py +711 -0
- scm2cpp_learn/_generated/_loader_nmf_blas.py +29 -0
- scm2cpp_learn/_generated/_loader_nmf_cublas.py +29 -0
- scm2cpp_learn/_generated/_loader_nmf_loops.py +29 -0
- scm2cpp_learn/_generated/accel_cublas/accel.cpp +24 -0
- scm2cpp_learn/_generated/accel_cublas/accel.hpp +1178 -0
- scm2cpp_learn/_generated/accel_cublas/accel_capi.cpp +76 -0
- scm2cpp_learn/_generated/classifiers.cpp +37 -0
- scm2cpp_learn/_generated/classifiers.hpp +3745 -0
- scm2cpp_learn/_generated/classifiers_capi.cpp +115 -0
- scm2cpp_learn/_generated/derived_blas/lasso_design.cpp +5 -0
- scm2cpp_learn/_generated/derived_blas/lasso_design.hpp +156 -0
- scm2cpp_learn/_generated/derived_blas/lasso_design_capi.cpp +19 -0
- scm2cpp_learn/_generated/derived_cublas/lasso_design.cpp +5 -0
- scm2cpp_learn/_generated/derived_cublas/lasso_design.hpp +158 -0
- scm2cpp_learn/_generated/derived_cublas/lasso_design_capi.cpp +19 -0
- scm2cpp_learn/_generated/derived_loops/lasso_design.cpp +5 -0
- scm2cpp_learn/_generated/derived_loops/lasso_design.hpp +179 -0
- scm2cpp_learn/_generated/derived_loops/lasso_design_capi.cpp +19 -0
- scm2cpp_learn/_generated/gpu_cuda/gpu.cpp +37 -0
- scm2cpp_learn/_generated/gpu_cuda/gpu.hpp +3846 -0
- scm2cpp_learn/_generated/gpu_cuda/gpu_capi.cpp +308 -0
- scm2cpp_learn/_generated/gramops_blas/gramops.cpp +82 -0
- scm2cpp_learn/_generated/gramops_blas/gramops.hpp +5411 -0
- scm2cpp_learn/_generated/gramops_blas/gramops_capi.cpp +244 -0
- scm2cpp_learn/_generated/gramops_loops/gramops.cpp +82 -0
- scm2cpp_learn/_generated/gramops_loops/gramops.hpp +6395 -0
- scm2cpp_learn/_generated/gramops_loops/gramops_capi.cpp +250 -0
- scm2cpp_learn/_generated/lasso_cov.cpp +7 -0
- scm2cpp_learn/_generated/lasso_cov.hpp +152 -0
- scm2cpp_learn/_generated/lasso_cov_capi.cpp +25 -0
- scm2cpp_learn/_generated/nmf_blas/nmf_cd.cpp +5 -0
- scm2cpp_learn/_generated/nmf_blas/nmf_cd.hpp +132 -0
- scm2cpp_learn/_generated/nmf_blas/nmf_cd_capi.cpp +19 -0
- scm2cpp_learn/_generated/nmf_cublas/nmf_cd.cpp +5 -0
- scm2cpp_learn/_generated/nmf_cublas/nmf_cd.hpp +136 -0
- scm2cpp_learn/_generated/nmf_cublas/nmf_cd_capi.cpp +19 -0
- scm2cpp_learn/_generated/nmf_loops/nmf_cd.cpp +5 -0
- scm2cpp_learn/_generated/nmf_loops/nmf_cd.hpp +167 -0
- scm2cpp_learn/_generated/nmf_loops/nmf_cd_capi.cpp +19 -0
- scm2cpp_learn/_generated/scm2cpp-blas.hpp +158 -0
- scm2cpp_learn/_generated/scm2cpp-cublas.hpp +155 -0
- scm2cpp_learn/_generated/scm2cpp-cuda.hpp +285 -0
- scm2cpp_learn/_generated/scm2cpp.hpp +1627 -0
- scm2cpp_learn/_gramops_blas.cp312-win_amd64.pyd +0 -0
- scm2cpp_learn/_lasso_cov.cp312-win_amd64.pyd +0 -0
- scm2cpp_learn/_lasso_derived_blas.cp312-win_amd64.pyd +0 -0
- scm2cpp_learn/_libfind.py +153 -0
- scm2cpp_learn/_nmf_blas.cp312-win_amd64.pyd +0 -0
- scm2cpp_learn/batch_capi.cu +428 -0
- scm2cpp_learn-0.18.0.dist-info/DELVEWHEEL +2 -0
- scm2cpp_learn-0.18.0.dist-info/METADATA +1171 -0
- scm2cpp_learn-0.18.0.dist-info/RECORD +72 -0
- scm2cpp_learn-0.18.0.dist-info/WHEEL +5 -0
- scm2cpp_learn-0.18.0.dist-info/top_level.txt +1 -0
- scm2cpp_learn.libs/.load-order-scm2cpp_learn-0.18.0 +4 -0
- scm2cpp_learn.libs/libopenblas-0486735c359a67419d8832e3c40e2837.dll +4 -0
- scm2cpp_learn.libs/msvcp140-73438573e87f9a2fd944b01def13566d.dll +0 -0
- scm2cpp_learn.libs/vcruntime140-052ad6a20d375957e82aa6a3c441ea54.dll +0 -0
- scm2cpp_learn.libs/vcruntime140_1-a198370e11c6e7469d1cf0ef5b3f433d.dll +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# ctypes loader for libnmf_cd.so, generated alongside it.
|
|
2
|
+
# Arrays are numpy arrays of the declared dtype; they are made
|
|
3
|
+
# contiguous on the way in and mutated in place where the translated
|
|
4
|
+
# function mutates them.
|
|
5
|
+
import ctypes
|
|
6
|
+
import numpy as np
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
from .._libfind import load_nmf_lib as _load_nmf_lib
|
|
10
|
+
|
|
11
|
+
_lib = _load_nmf_lib("blas")
|
|
12
|
+
|
|
13
|
+
_lib.scm2cpp_nmf_half.restype = ctypes.c_double
|
|
14
|
+
_lib.scm2cpp_nmf_half.argtypes = [ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_double), ctypes.c_int, ctypes.c_int, ctypes.c_int]
|
|
15
|
+
def nmf_half(x, w, ht, n, p, k):
|
|
16
|
+
x = np.ascontiguousarray(x, dtype=np.float64)
|
|
17
|
+
w = np.ascontiguousarray(w, dtype=np.float64)
|
|
18
|
+
ht = np.ascontiguousarray(ht, dtype=np.float64)
|
|
19
|
+
return _lib.scm2cpp_nmf_half(x.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), w.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), ht.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), n, p, k)
|
|
20
|
+
|
|
21
|
+
_lib.scm2cpp_nmf.restype = ctypes.c_int
|
|
22
|
+
_lib.scm2cpp_nmf.argtypes = [ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_double), ctypes.c_int, ctypes.c_double, ctypes.c_int, ctypes.c_int, ctypes.c_int]
|
|
23
|
+
def nmf(x, xt, w, ht, iters, tol, n, p, k):
|
|
24
|
+
x = np.ascontiguousarray(x, dtype=np.float64)
|
|
25
|
+
xt = np.ascontiguousarray(xt, dtype=np.float64)
|
|
26
|
+
w = np.ascontiguousarray(w, dtype=np.float64)
|
|
27
|
+
ht = np.ascontiguousarray(ht, dtype=np.float64)
|
|
28
|
+
return _lib.scm2cpp_nmf(x.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), xt.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), w.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), ht.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), iters, tol, n, p, k)
|
|
29
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# ctypes loader for libnmf_cd.so, generated alongside it.
|
|
2
|
+
# Arrays are numpy arrays of the declared dtype; they are made
|
|
3
|
+
# contiguous on the way in and mutated in place where the translated
|
|
4
|
+
# function mutates them.
|
|
5
|
+
import ctypes
|
|
6
|
+
import numpy as np
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
from .._libfind import load_nmf_lib as _load_nmf_lib
|
|
10
|
+
|
|
11
|
+
_lib = _load_nmf_lib("cublas")
|
|
12
|
+
|
|
13
|
+
_lib.scm2cpp_nmf_half.restype = ctypes.c_double
|
|
14
|
+
_lib.scm2cpp_nmf_half.argtypes = [ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_double), ctypes.c_int, ctypes.c_int, ctypes.c_int]
|
|
15
|
+
def nmf_half(x, w, ht, n, p, k):
|
|
16
|
+
x = np.ascontiguousarray(x, dtype=np.float64)
|
|
17
|
+
w = np.ascontiguousarray(w, dtype=np.float64)
|
|
18
|
+
ht = np.ascontiguousarray(ht, dtype=np.float64)
|
|
19
|
+
return _lib.scm2cpp_nmf_half(x.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), w.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), ht.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), n, p, k)
|
|
20
|
+
|
|
21
|
+
_lib.scm2cpp_nmf.restype = ctypes.c_int
|
|
22
|
+
_lib.scm2cpp_nmf.argtypes = [ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_double), ctypes.c_int, ctypes.c_double, ctypes.c_int, ctypes.c_int, ctypes.c_int]
|
|
23
|
+
def nmf(x, xt, w, ht, iters, tol, n, p, k):
|
|
24
|
+
x = np.ascontiguousarray(x, dtype=np.float64)
|
|
25
|
+
xt = np.ascontiguousarray(xt, dtype=np.float64)
|
|
26
|
+
w = np.ascontiguousarray(w, dtype=np.float64)
|
|
27
|
+
ht = np.ascontiguousarray(ht, dtype=np.float64)
|
|
28
|
+
return _lib.scm2cpp_nmf(x.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), xt.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), w.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), ht.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), iters, tol, n, p, k)
|
|
29
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# ctypes loader for libnmf_cd.so, generated alongside it.
|
|
2
|
+
# Arrays are numpy arrays of the declared dtype; they are made
|
|
3
|
+
# contiguous on the way in and mutated in place where the translated
|
|
4
|
+
# function mutates them.
|
|
5
|
+
import ctypes
|
|
6
|
+
import numpy as np
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
from .._libfind import load_nmf_lib as _load_nmf_lib
|
|
10
|
+
|
|
11
|
+
_lib = _load_nmf_lib("loops")
|
|
12
|
+
|
|
13
|
+
_lib.scm2cpp_nmf_half.restype = ctypes.c_double
|
|
14
|
+
_lib.scm2cpp_nmf_half.argtypes = [ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_double), ctypes.c_int, ctypes.c_int, ctypes.c_int]
|
|
15
|
+
def nmf_half(x, w, ht, n, p, k):
|
|
16
|
+
x = np.ascontiguousarray(x, dtype=np.float64)
|
|
17
|
+
w = np.ascontiguousarray(w, dtype=np.float64)
|
|
18
|
+
ht = np.ascontiguousarray(ht, dtype=np.float64)
|
|
19
|
+
return _lib.scm2cpp_nmf_half(x.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), w.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), ht.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), n, p, k)
|
|
20
|
+
|
|
21
|
+
_lib.scm2cpp_nmf.restype = ctypes.c_int
|
|
22
|
+
_lib.scm2cpp_nmf.argtypes = [ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_double), ctypes.POINTER(ctypes.c_double), ctypes.c_int, ctypes.c_double, ctypes.c_int, ctypes.c_int, ctypes.c_int]
|
|
23
|
+
def nmf(x, xt, w, ht, iters, tol, n, p, k):
|
|
24
|
+
x = np.ascontiguousarray(x, dtype=np.float64)
|
|
25
|
+
xt = np.ascontiguousarray(xt, dtype=np.float64)
|
|
26
|
+
w = np.ascontiguousarray(w, dtype=np.float64)
|
|
27
|
+
ht = np.ascontiguousarray(ht, dtype=np.float64)
|
|
28
|
+
return _lib.scm2cpp_nmf(x.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), xt.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), w.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), ht.ctypes.data_as(ctypes.POINTER(ctypes.c_double)), iters, tol, n, p, k)
|
|
29
|
+
|