arraykit 1.2.0__cp314-cp314t-win32.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.
- arraykit/__init__.py +40 -0
- arraykit/__init__.pyi +211 -0
- arraykit/_arraykit.c +160 -0
- arraykit/_arraykit.cp314t-win32.pyd +0 -0
- arraykit/array_go.c +264 -0
- arraykit/array_go.h +8 -0
- arraykit/array_to_tuple.c +251 -0
- arraykit/array_to_tuple.h +14 -0
- arraykit/auto_map.c +2661 -0
- arraykit/auto_map.h +14 -0
- arraykit/block_index.c +1445 -0
- arraykit/block_index.h +15 -0
- arraykit/delimited_to_arrays.c +2972 -0
- arraykit/delimited_to_arrays.h +16 -0
- arraykit/methods.c +1135 -0
- arraykit/methods.h +81 -0
- arraykit/py.typed +0 -0
- arraykit/tri_map.c +1386 -0
- arraykit/tri_map.h +8 -0
- arraykit/utilities.h +392 -0
- arraykit-1.2.0.dist-info/METADATA +498 -0
- arraykit-1.2.0.dist-info/RECORD +25 -0
- arraykit-1.2.0.dist-info/WHEEL +5 -0
- arraykit-1.2.0.dist-info/licenses/LICENSE.txt +37 -0
- arraykit-1.2.0.dist-info/top_level.txt +1 -0
arraykit/methods.h
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# ifndef ARRAYKIT_SRC_METHODS_H
|
|
2
|
+
# define ARRAYKIT_SRC_METHODS_H
|
|
3
|
+
# include "Python.h"
|
|
4
|
+
|
|
5
|
+
// A fast counter of unsized iterators
|
|
6
|
+
PyObject *
|
|
7
|
+
count_iteration(PyObject *Py_UNUSED(m), PyObject *iterable);
|
|
8
|
+
|
|
9
|
+
// Reshape if necessary a row that might be 2D or 1D is returned as a 1D array.
|
|
10
|
+
PyObject *
|
|
11
|
+
row_1d_filter(PyObject *Py_UNUSED(m), PyObject *a);
|
|
12
|
+
|
|
13
|
+
// Convert any slice to an ascending slice that covers the same values.
|
|
14
|
+
PyObject *
|
|
15
|
+
slice_to_ascending_slice(PyObject *Py_UNUSED(m), PyObject *args);
|
|
16
|
+
|
|
17
|
+
// Reshape if necessary a flat ndim 1 array into a 2D array with one columns and rows of length.
|
|
18
|
+
// related example: https://github.com/RhysU/ar/blob/master/ar-python.cpp
|
|
19
|
+
PyObject *
|
|
20
|
+
column_2d_filter(PyObject *Py_UNUSED(m), PyObject *a);
|
|
21
|
+
|
|
22
|
+
// Reshape if necessary a column that might be 2D or 1D is returned as a 1D array.
|
|
23
|
+
PyObject *
|
|
24
|
+
column_1d_filter(PyObject *Py_UNUSED(m), PyObject *a);
|
|
25
|
+
|
|
26
|
+
// Represent a 1D array as a 2D array with length as rows of a single-column array.
|
|
27
|
+
// https://stackoverflow.com/questions/56182259/how-does-one-acces-numpy-multidimensionnal-array-in-c-extensions
|
|
28
|
+
PyObject *
|
|
29
|
+
shape_filter(PyObject *Py_UNUSED(m), PyObject *a);
|
|
30
|
+
|
|
31
|
+
PyObject *
|
|
32
|
+
name_filter(PyObject *Py_UNUSED(m), PyObject *n);
|
|
33
|
+
|
|
34
|
+
// Return the integer version of the pointer to underlying data-buffer of array.
|
|
35
|
+
PyObject *
|
|
36
|
+
mloc(PyObject *Py_UNUSED(m), PyObject *a);
|
|
37
|
+
|
|
38
|
+
PyObject *
|
|
39
|
+
immutable_filter(PyObject *Py_UNUSED(m), PyObject *a);
|
|
40
|
+
|
|
41
|
+
PyObject *
|
|
42
|
+
resolve_dtype(PyObject *Py_UNUSED(m), PyObject *args);
|
|
43
|
+
|
|
44
|
+
PyObject *
|
|
45
|
+
resolve_dtype_iter(PyObject *Py_UNUSED(m), PyObject *arg);
|
|
46
|
+
|
|
47
|
+
PyObject *
|
|
48
|
+
nonzero_1d(PyObject *Py_UNUSED(m), PyObject *a);
|
|
49
|
+
|
|
50
|
+
PyObject *
|
|
51
|
+
is_objectable_dt64(PyObject *m, PyObject *a);
|
|
52
|
+
|
|
53
|
+
PyObject *
|
|
54
|
+
is_objectable(PyObject *m, PyObject *a);
|
|
55
|
+
|
|
56
|
+
PyObject *
|
|
57
|
+
astype_array(PyObject *m, PyObject *args);
|
|
58
|
+
|
|
59
|
+
PyObject *
|
|
60
|
+
first_true_1d(PyObject *Py_UNUSED(m), PyObject *args, PyObject *kwargs);
|
|
61
|
+
|
|
62
|
+
PyObject *
|
|
63
|
+
first_true_2d(PyObject *Py_UNUSED(m), PyObject *args, PyObject *kwargs);
|
|
64
|
+
|
|
65
|
+
PyObject *
|
|
66
|
+
dtype_from_element(PyObject *Py_UNUSED(m), PyObject *arg);
|
|
67
|
+
|
|
68
|
+
PyObject *
|
|
69
|
+
isna_element(PyObject *m, PyObject *args, PyObject *kwargs);
|
|
70
|
+
|
|
71
|
+
PyObject *
|
|
72
|
+
get_new_indexers_and_screen(PyObject *Py_UNUSED(m), PyObject *args, PyObject *kwargs);
|
|
73
|
+
|
|
74
|
+
// Specialized array deepcopy that stores immutable arrays in an optional memo dict that can be provided with kwargs.
|
|
75
|
+
PyObject *
|
|
76
|
+
array_deepcopy(PyObject *m, PyObject *args, PyObject *kwargs);
|
|
77
|
+
|
|
78
|
+
PyObject *
|
|
79
|
+
immutable_filter(PyObject *Py_UNUSED(m), PyObject *a);
|
|
80
|
+
|
|
81
|
+
# endif /* ARRAYKIT_SRC_METHODS_H */
|
arraykit/py.typed
ADDED
|
File without changes
|