rsarray 1.2.10__cp315-cp315-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.
- rsarray/__init__.py +12028 -0
- rsarray/_core/__init__.py +213 -0
- rsarray/_core/_exceptions.py +83 -0
- rsarray/_core/_internal.py +331 -0
- rsarray/_core/_multiarray_tests.py +129 -0
- rsarray/_core/_multiarray_umath.py +121 -0
- rsarray/_core/_rational_tests.py +52 -0
- rsarray/_core/arrayprint.py +36 -0
- rsarray/_core/fromnumeric.py +31 -0
- rsarray/_core/function_base.py +84 -0
- rsarray/_core/multiarray.py +385 -0
- rsarray/_core/numeric.py +28 -0
- rsarray/_core/numerictypes.py +233 -0
- rsarray/_core/records.py +14 -0
- rsarray/_core/shape_base.py +23 -0
- rsarray/_core/strings.py +78 -0
- rsarray/_core/umath.py +176 -0
- rsarray/_dtypes.py +1229 -0
- rsarray/_extra.py +6621 -0
- rsarray/_typing.py +24 -0
- rsarray/array_methods.py +1224 -0
- rsarray/array_ops.py +1585 -0
- rsarray/char.py +1590 -0
- rsarray/exceptions.py +45 -0
- rsarray/fft/__init__.py +231 -0
- rsarray/io.py +453 -0
- rsarray/lib/__init__.py +102 -0
- rsarray/lib/_function_base_impl.py +37 -0
- rsarray/lib/_index_tricks_impl.py +98 -0
- rsarray/lib/_nanfunctions_impl.py +1637 -0
- rsarray/lib/_stride_tricks_impl.py +110 -0
- rsarray/lib/recfunctions.py +1222 -0
- rsarray/lib/stride_tricks.py +106 -0
- rsarray/linalg/__init__.py +2603 -0
- rsarray/linalg/_linalg.py +91 -0
- rsarray/linalg/_pylinalg.py +1008 -0
- rsarray/linalg/lapack_lite.py +13 -0
- rsarray/ma/__init__.py +92 -0
- rsarray/ma/core.py +1385 -0
- rsarray/ma/extras.py +711 -0
- rsarray/ma/mrecords.py +144 -0
- rsarray/math_functions.py +965 -0
- rsarray/matlib.py +67 -0
- rsarray/num_core.cp315-win_amd64.pyd +0 -0
- rsarray/polynomial/__init__.py +148 -0
- rsarray/polynomial/_npcompat.py +721 -0
- rsarray/polynomial/polynomial.py +1082 -0
- rsarray/random/__init__.py +2266 -0
- rsarray/random/_distributions.py +773 -0
- rsarray/rec.py +207 -0
- rsarray/statistics.py +1360 -0
- rsarray/strings.py +349 -0
- rsarray/typing/__init__.py +26 -0
- rsarray-1.2.10.dist-info/METADATA +280 -0
- rsarray-1.2.10.dist-info/RECORD +59 -0
- rsarray-1.2.10.dist-info/WHEEL +4 -0
- rsarray-1.2.10.dist-info/licenses/LICENSE +21 -0
- rsarray-1.2.10.dist-info/licenses/NOTICE +7 -0
- rsarray-1.2.10.dist-info/sboms/rsarray.cyclonedx.json +2789 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MIT
|
|
2
|
+
"""linalg.lapack_lite 兼容桩。
|
|
3
|
+
|
|
4
|
+
参考实现中该模块暴露底层 LAPACK 例程;rsarray 无对应 C 层,仅提供
|
|
5
|
+
测试用到的最小接口(xerbla 抛 LinAlgError,与 行为一致)。
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def xerbla(srname, info, **kwargs):
|
|
10
|
+
"""LAPACK 错误报告例程(参考实现中直接抛 LinAlgError)。"""
|
|
11
|
+
from rsarray.linalg import LinAlgError
|
|
12
|
+
raise LinAlgError(
|
|
13
|
+
f"{srname} (info={info})")
|
rsarray/ma/__init__.py
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MIT
|
|
2
|
+
"""掩码数组(ma 兼容层)。
|
|
3
|
+
|
|
4
|
+
子模块布局与 一致:
|
|
5
|
+
|
|
6
|
+
- ``rsarray.ma.core``:核心(MaskedArray / 构造器 / 掩码辅助)
|
|
7
|
+
- ``rsarray.ma.extras``:统计与集合扩展
|
|
8
|
+
- ``rsarray.ma.mrecords``:掩码记录数组
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from . import core
|
|
12
|
+
from . import extras
|
|
13
|
+
from . import mrecords
|
|
14
|
+
from .core import ( # noqa: F401
|
|
15
|
+
MAError,
|
|
16
|
+
MaskError,
|
|
17
|
+
MaskType,
|
|
18
|
+
MaskedArray,
|
|
19
|
+
MaskedArrayFutureWarning,
|
|
20
|
+
anom,
|
|
21
|
+
array,
|
|
22
|
+
asarray,
|
|
23
|
+
common_fill_value,
|
|
24
|
+
concatenate,
|
|
25
|
+
count,
|
|
26
|
+
default_fill_value,
|
|
27
|
+
empty,
|
|
28
|
+
empty_like,
|
|
29
|
+
fix_invalid,
|
|
30
|
+
flatten_mask,
|
|
31
|
+
flatten_structured_array,
|
|
32
|
+
filled,
|
|
33
|
+
full,
|
|
34
|
+
getdata,
|
|
35
|
+
getmask,
|
|
36
|
+
getmaskarray,
|
|
37
|
+
isMaskedArray,
|
|
38
|
+
make_mask,
|
|
39
|
+
make_mask_descr,
|
|
40
|
+
masked,
|
|
41
|
+
masked_array,
|
|
42
|
+
masked_equal,
|
|
43
|
+
masked_greater,
|
|
44
|
+
masked_greater_equal,
|
|
45
|
+
masked_inside,
|
|
46
|
+
masked_invalid,
|
|
47
|
+
masked_less,
|
|
48
|
+
masked_less_equal,
|
|
49
|
+
masked_not_equal,
|
|
50
|
+
masked_object,
|
|
51
|
+
masked_outside,
|
|
52
|
+
masked_print_option,
|
|
53
|
+
masked_values,
|
|
54
|
+
masked_where,
|
|
55
|
+
mask_or,
|
|
56
|
+
maximum_fill_value,
|
|
57
|
+
minimum_fill_value,
|
|
58
|
+
minmax,
|
|
59
|
+
mvoid,
|
|
60
|
+
nomask,
|
|
61
|
+
ones,
|
|
62
|
+
ones_like,
|
|
63
|
+
zeros,
|
|
64
|
+
zeros_like,
|
|
65
|
+
)
|
|
66
|
+
from .mrecords import ( # noqa: F401
|
|
67
|
+
MaskedRecords,
|
|
68
|
+
mrecarray,
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
# ma 顶层暴露 core 的全部公共名(test_old_ma 按此导入)
|
|
72
|
+
for _n in dir(core):
|
|
73
|
+
if not _n.startswith('_') and _n not in globals():
|
|
74
|
+
globals()[_n] = getattr(core, _n)
|
|
75
|
+
del _n
|
|
76
|
+
|
|
77
|
+
# ma 顶层亦暴露 extras 的常用名
|
|
78
|
+
for _n in ('atleast_1d', 'atleast_2d', 'atleast_3d', 'average', 'clump',
|
|
79
|
+
'clump_masked', 'clump_unmasked', 'compress_nd', 'compress_rowcols',
|
|
80
|
+
'corrcoef', 'cov', 'diagflat', 'ediff1d', 'flatnotmasked_contiguous',
|
|
81
|
+
'in1d', 'intersect1d', 'isin', 'masked_all', 'masked_all_like',
|
|
82
|
+
'mask_rowcols', 'mask_rows', 'mask_cols', 'median', 'mr_', 'ndenumerate', 'notmasked_contiguous',
|
|
83
|
+
'notmasked_edges', 'polyfit', 'setdiff1d', 'setxor1d', 'stack',
|
|
84
|
+
'union1d', 'unique', 'unwrap', 'vstack', 'apply_along_axis',
|
|
85
|
+
'apply_over_axes'):
|
|
86
|
+
if hasattr(extras, _n):
|
|
87
|
+
globals()[_n] = getattr(extras, _n)
|
|
88
|
+
del _n
|
|
89
|
+
|
|
90
|
+
__all__ = ['core', 'extras', 'mrecords', 'MaskedArray', 'MaskedRecords',
|
|
91
|
+
'masked', 'nomask', 'array', 'asarray', 'masked_array', 'mrecarray',
|
|
92
|
+
'MAError', 'MaskError', 'MaskType', 'MaskedArrayFutureWarning']
|