From 1051f6affefc9d8678a20db8e1f4883cd15bbabc Mon Sep 17 00:00:00 2001 From: archmishka Date: Mon, 21 Sep 2026 18:22:00 +0300 Subject: [PATCH 01/14] feat(pyspla): add Vector.fill_with and Vector.set_fill_value Expose the new spla_Vector_fill_with C API and wrap the existing spla_Vector_set_fill_value in the Python Vector class. Also add Python wrappers for the existing spla_Exec_v_eadd_fdb and spla_Exec_v_count_mf C functions, which the graph algorithms rely on. --- include/spla.h | 1 + python/pyspla/bridge.py | 2 + python/pyspla/vector.py | 122 +++++++++++++++++++++++++++++++++------ src/binding/c_vector.cpp | 5 +- 4 files changed, 112 insertions(+), 18 deletions(-) diff --git a/include/spla.h b/include/spla.h index 907865fab..21972debd 100644 --- a/include/spla.h +++ b/include/spla.h @@ -334,6 +334,7 @@ SPLA_API spla_Status spla_Vector_get_float(spla_Vector v, spla_uint row_id, floa SPLA_API spla_Status spla_Vector_build(spla_Vector v, spla_MemView keys, spla_MemView values); SPLA_API spla_Status spla_Vector_read(spla_Vector v, spla_MemView* keys, spla_MemView* values); SPLA_API spla_Status spla_Vector_clear(spla_Vector v); +SPLA_API spla_Status spla_Vector_fill_with(spla_Vector v, spla_Scalar value); ////////////////////////////////////////////////////////////////////////////////////// diff --git a/python/pyspla/bridge.py b/python/pyspla/bridge.py index 808f6ff17..5da2c50e3 100644 --- a/python/pyspla/bridge.py +++ b/python/pyspla/bridge.py @@ -494,6 +494,7 @@ def load_library(lib_path): _spla.spla_Vector_build.restype = _status_t _spla.spla_Vector_read.restype = _status_t _spla.spla_Vector_clear.restype = _status_t + _spla.spla_Vector_fill_with.restype = _status_t _spla.spla_Vector_make.argtypes = [_p_object_t, _uint, _object_t] _spla.spla_Vector_set_format.argtypes = [_object_t, ctypes.c_int] @@ -508,6 +509,7 @@ def load_library(lib_path): _spla.spla_Vector_build.argtypes = [_object_t, _object_t, _object_t] _spla.spla_Vector_read.argtypes = [_object_t, _p_object_t, _p_object_t] _spla.spla_Vector_clear.argtypes = [_object_t] + _spla.spla_Vector_fill_with.argtypes = [_object_t, _object_t] _spla.spla_Matrix_make.restype = _status_t _spla.spla_Matrix_set_format.restype = _status_t diff --git a/python/pyspla/vector.py b/python/pyspla/vector.py index 61f379ae7..cf796e850 100644 --- a/python/pyspla/vector.py +++ b/python/pyspla/vector.py @@ -246,7 +246,11 @@ def read(self): keys_view_hnd = ctypes.c_void_p(0) values_view_hnd = ctypes.c_void_p(0) - check(backend().spla_Vector_read(self.hnd, ctypes.byref(keys_view_hnd), ctypes.byref(values_view_hnd))) + check( + backend().spla_Vector_read( + self.hnd, ctypes.byref(keys_view_hnd), ctypes.byref(values_view_hnd) + ) + ) return MemView(hnd=keys_view_hnd, owner=self), MemView(hnd=values_view_hnd, owner=self) def clear(self): @@ -275,8 +279,16 @@ def to_lists(self): buffer_I = (UINT._c_type * count)() buffer_V = (self._dtype._c_type * count)() - check(backend().spla_MemView_read(I.hnd, ctypes.c_size_t(0), ctypes.sizeof(buffer_I), buffer_I)) - check(backend().spla_MemView_read(V.hnd, ctypes.c_size_t(0), ctypes.sizeof(buffer_V), buffer_V)) + check( + backend().spla_MemView_read( + I.hnd, ctypes.c_size_t(0), ctypes.sizeof(buffer_I), buffer_I + ) + ) + check( + backend().spla_MemView_read( + V.hnd, ctypes.c_size_t(0), ctypes.sizeof(buffer_V), buffer_V + ) + ) return list(buffer_I), list(buffer_V) @@ -331,7 +343,9 @@ def to_string(self, format_string="{:>%s}", width=2, precision=2, skip_value=0): value = self.get(row) value = value if value != skip_value else "." result += format_string.format(row) + "|" - result += format_string.format(self.dtype.format_value(value, width, precision)).rstrip() + result += format_string.format( + self.dtype.format_value(value, width, precision) + ).rstrip() if row < self.n_rows - 1: result += "\n" @@ -543,9 +557,20 @@ def vxm(self, mask, M, op_mult, op_add, op_select, out=None, init=None, desc=Non assert mask.n_rows == M.n_cols assert M.n_rows == self.n_rows - check(backend().spla_Exec_vxm_masked(out.hnd, mask.hnd, self.hnd, M.hnd, - op_mult.hnd, op_add.hnd, op_select.hnd, - init.hnd, self._get_desc(desc), self._get_task(None))) + check( + backend().spla_Exec_vxm_masked( + out.hnd, + mask.hnd, + self.hnd, + M.hnd, + op_mult.hnd, + op_add.hnd, + op_select.hnd, + init.hnd, + self._get_desc(desc), + self._get_task(None), + ) + ) return out @@ -588,8 +613,11 @@ def eadd(self, op_add, v, out=None, desc=None): assert out.dtype == out.dtype assert op_add - check(backend().spla_Exec_v_eadd(out.hnd, self.hnd, v.hnd, op_add.hnd, - self._get_desc(desc), self._get_task(None))) + check( + backend().spla_Exec_v_eadd( + out.hnd, self.hnd, v.hnd, op_add.hnd, self._get_desc(desc), self._get_task(None) + ) + ) return out @@ -632,8 +660,11 @@ def emult(self, op_mult, v, out=None, desc=None): assert out.dtype == out.dtype assert op_mult - check(backend().spla_Exec_v_emult(out.hnd, self.hnd, v.hnd, op_mult.hnd, - self._get_desc(desc), self._get_task(None))) + check( + backend().spla_Exec_v_emult( + out.hnd, self.hnd, v.hnd, op_mult.hnd, self._get_desc(desc), self._get_task(None) + ) + ) return out @@ -677,8 +708,17 @@ def assign(self, mask, value, op_assign, op_select, desc=None): assert op_assign assert op_select - check(backend().spla_Exec_v_assign_masked(self.hnd, mask.hnd, value.hnd, op_assign.hnd, op_select.hnd, - self._get_desc(desc), self._get_task(None))) + check( + backend().spla_Exec_v_assign_masked( + self.hnd, + mask.hnd, + value.hnd, + op_assign.hnd, + op_select.hnd, + self._get_desc(desc), + self._get_task(None), + ) + ) return self @@ -715,8 +755,11 @@ def map(self, op_map, out=None, desc=None): assert out.n_rows == self.n_rows assert out.dtype == self.dtype - check(backend().spla_Exec_v_map(out.hnd, self.hnd, op_map.hnd, - self._get_desc(desc), self._get_task(None))) + check( + backend().spla_Exec_v_map( + out.hnd, self.hnd, op_map.hnd, self._get_desc(desc), self._get_task(None) + ) + ) return out @@ -759,8 +802,45 @@ def reduce(self, op_reduce, out=None, init=None, desc=None): assert out.dtype == self.dtype assert init.dtype == self.dtype - check(backend().spla_Exec_v_reduce(out.hnd, init.hnd, self.hnd, op_reduce.hnd, - self._get_desc(desc), self._get_task(None))) + check( + backend().spla_Exec_v_reduce( + out.hnd, + init.hnd, + self.hnd, + op_reduce.hnd, + self._get_desc(desc), + self._get_task(None), + ) + ) + + return out + + def eadd_fdb(self, v, op_add, fdb, desc=None): + assert v + assert fdb + assert op_add + assert v.n_rows == self.n_rows + assert fdb.n_rows == self.n_rows + assert v.dtype == self.dtype + assert fdb.dtype == self.dtype + + check( + backend().spla_Exec_v_eadd_fdb( + self.hnd, v.hnd, fdb.hnd, op_add.hnd, self._get_desc(desc), self._get_task(None) + ) + ) + + return self + + def count_mf(self, out=None, desc=None): + if out is None: + out = Scalar(INT) + + check( + backend().spla_Exec_v_count_mf( + out.hnd, self.hnd, self._get_desc(desc), self._get_task(None) + ) + ) return out @@ -776,3 +856,11 @@ def _get_desc(self, desc: Descriptor): def _get_task(self, task): return ctypes.POINTER(ctypes.c_void_p)() + + def set_fill_value(self, scalar): + check(backend().spla_Vector_set_fill_value(self.hnd, scalar.hnd)) + return self + + def fill_with(self, scalar): + check(backend().spla_Vector_fill_with(self.hnd, scalar.hnd)) + return self diff --git a/src/binding/c_vector.cpp b/src/binding/c_vector.cpp index 25619d1bc..a263e2edf 100644 --- a/src/binding/c_vector.cpp +++ b/src/binding/c_vector.cpp @@ -62,6 +62,9 @@ spla_Status spla_Vector_get_float(spla_Vector v, spla_uint row_id, float* value) spla_Status spla_Vector_build(spla_Vector v, spla_MemView keys, spla_MemView values) { return to_c_status(as_ptr(v)->build(as_ref(keys), as_ref(values))); } +spla_Status spla_Vector_fill_with(spla_Vector v, spla_Scalar value) { + return to_c_status(as_ptr(v)->fill_with(as_ref(value))); +} spla_Status spla_Vector_read(spla_Vector v, spla_MemView* keys, spla_MemView* values) { spla::ref_ptr out_keys; spla::ref_ptr out_values; @@ -75,4 +78,4 @@ spla_Status spla_Vector_read(spla_Vector v, spla_MemView* keys, spla_MemView* va } spla_Status spla_Vector_clear(spla_Vector v) { return to_c_status(as_ptr(v)->clear()); -} \ No newline at end of file +} From 0487cdef5d7ed334cac3e448f3ffe8bbfef92c05 Mon Sep 17 00:00:00 2001 From: archmishka Date: Sat, 10 Oct 2026 18:43:19 +0300 Subject: [PATCH 02/14] feat(pyspla): add Descriptor creation and setter bindings Add spla_Descriptor_make, spla_Descriptor_set_struct_only and spla_Descriptor_set_early_exit to the C API (src/binding/c_descriptor.cpp) and expose them in Python: Descriptor() now creates a real descriptor instead of a null handle, plus set_struct_only()/set_early_exit(). --- CMakeLists.txt | 1 + include/spla.h | 7 ++++++ python/pyspla/bridge.py | 6 +++++ python/pyspla/descriptor.py | 12 ++++++++++ src/binding/c_descriptor.cpp | 44 ++++++++++++++++++++++++++++++++++++ 5 files changed, 70 insertions(+) create mode 100644 src/binding/c_descriptor.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c8cfa4f0..b19a26caf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -360,6 +360,7 @@ add_library(spla SHARED src/binding/c_scalar.cpp src/binding/c_type.cpp src/binding/c_vector.cpp + src/binding/c_descriptor.cpp # C++ optional part ${SRC_OPENCL}) diff --git a/include/spla.h b/include/spla.h index 21972debd..336ba97f8 100644 --- a/include/spla.h +++ b/include/spla.h @@ -390,6 +390,13 @@ SPLA_API spla_Status spla_Exec_v_count_mf(spla_Scalar r, spla_Vector v, spla_Des ////////////////////////////////////////////////////////////////////////////////////// +/* Descriptor object methods */ + +SPLA_API spla_Status spla_Descriptor_make(spla_Descriptor* descriptor); +SPLA_API spla_Status spla_Descriptor_set_struct_only(spla_Descriptor descriptor, spla_bool value); +SPLA_API spla_Status spla_Descriptor_set_early_exit(spla_Descriptor descriptor, spla_bool value); + +////////////////////////////////////////////////////////////////////////////////////// #if defined(__cplusplus) } #endif diff --git a/python/pyspla/bridge.py b/python/pyspla/bridge.py index 5da2c50e3..a9cdb5c0f 100644 --- a/python/pyspla/bridge.py +++ b/python/pyspla/bridge.py @@ -214,6 +214,12 @@ def load_library(lib_path): _spla.spla_Type_UINT.argtypes = [] _spla.spla_Type_FLOAT.restype = _object_t _spla.spla_Type_FLOAT.argtypes = [] + _spla.spla_Descriptor_make.restype = _status_t + _spla.spla_Descriptor_make.argtypes = [_p_object_t] + _spla.spla_Descriptor_set_struct_only.restype = _status_t + _spla.spla_Descriptor_set_struct_only.argtypes = [_object_t, _int] + _spla.spla_Descriptor_set_early_exit.restype = _status_t + _spla.spla_Descriptor_set_early_exit.argtypes = [_object_t, _int] _spla.spla_OpUnary_IDENTITY_INT.restype = _object_t _spla.spla_OpUnary_IDENTITY_UINT.restype = _object_t diff --git a/python/pyspla/descriptor.py b/python/pyspla/descriptor.py index 2e8d014d6..1c5c0fc1a 100644 --- a/python/pyspla/descriptor.py +++ b/python/pyspla/descriptor.py @@ -48,4 +48,16 @@ def __init__(self, label=None, hnd=None): MemView native void* handle to a C counterpart. """ + if hnd is None: + hnd = ctypes.c_void_p(0) + check(backend().spla_Descriptor_make(ctypes.byref(hnd))) + super().__init__(label, hnd) + + def set_struct_only(self, value: bool): + check(backend().spla_Descriptor_set_struct_only(self.hnd, ctypes.c_int(int(value)))) + return self + + def set_early_exit(self, value: bool): + check(backend().spla_Descriptor_set_early_exit(self.hnd, ctypes.c_int(int(value)))) + return self diff --git a/src/binding/c_descriptor.cpp b/src/binding/c_descriptor.cpp new file mode 100644 index 000000000..095a1f6a9 --- /dev/null +++ b/src/binding/c_descriptor.cpp @@ -0,0 +1,44 @@ +/**********************************************************************************/ +/* This file is part of spla project */ +/* https://github.com/JetBrains-Research/spla */ +/**********************************************************************************/ +/* MIT License */ +/* */ +/* Copyright (c) 2023 SparseLinearAlgebra */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining a copy */ +/* of this software and associated documentation files (the "Software"), to deal */ +/* in the Software without restriction, including without limitation the rights */ +/* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell */ +/* copies of the Software, and to permit persons to whom the Software is */ +/* furnished to do so, subject to the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be included in all */ +/* copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR */ +/* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, */ +/* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE */ +/* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER */ +/* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, */ +/* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE */ +/* SOFTWARE. */ +/**********************************************************************************/ + +#include "c_config.hpp" + +spla_Status spla_Descriptor_make(spla_Descriptor* d) { + auto descriptor = spla::Descriptor::make(); + *d = as_ptr(descriptor.release()); + return SPLA_STATUS_OK; +} + +spla_Status spla_Descriptor_set_struct_only(spla_Descriptor d, spla_bool value) { + as_ptr(d)->set_struct_only(value != 0); + return SPLA_STATUS_OK; +} + +spla_Status spla_Descriptor_set_early_exit(spla_Descriptor d, spla_bool value) { + as_ptr(d)->set_early_exit(value != 0); + return SPLA_STATUS_OK; +} From bd0d608e458980ca8ad9f09c567bf765384aa8a2 Mon Sep 17 00:00:00 2001 From: archmishka Date: Thu, 1 Oct 2026 01:07:25 +0300 Subject: [PATCH 03/14] feat(io): add edge weights to MtxLoader and update examples MtxLoader now parses edge weights from Matrix Market files and detects the "symmetric" attribute from the header. The default of make_undirected is flipped to false: symmetrization now happens automatically only for files declared symmetric in the header. The sssp example reads edge weights and the tc example uses the upper triangle. --- examples/sssp.cpp | 14 +++---- examples/tc.cpp | 4 +- include/spla/io.hpp | 8 ++-- src/io.cpp | 93 ++++++++++++++++++++++++++++++--------------- 4 files changed, 75 insertions(+), 44 deletions(-) diff --git a/examples/sssp.cpp b/examples/sssp.cpp index d5ddf04fb..7a5b40289 100644 --- a/examples/sssp.cpp +++ b/examples/sssp.cpp @@ -27,10 +27,8 @@ #include "common.hpp" #include "options.hpp" - #include - int main(int argc, const char* const* argv) { std::shared_ptr options = make_options("sssp", "sssp (single-source shortest path) algorithm with spla library"); cxxopts::ParseResult args; @@ -73,12 +71,12 @@ int main(int argc, const char* const* argv) { desc->set_traversal_mode(static_cast(args[OPT_PUSH_PULL].as() - 1)); desc->set_front_factor(args[OPT_FRONT_FACTOR].as()); - const spla::uint w = 1.0f; - const auto& Ai = loader.get_Ai(); - const auto& Aj = loader.get_Aj(); + const auto& Ai = loader.get_Ai(); + const auto& Aj = loader.get_Aj(); + const auto& Aw = loader.get_Aw(); for (std::size_t k = 0; k < loader.get_n_values(); ++k) { - A->set_float(Ai[k], Aj[k], w); + A->set_float(Ai[k], Aj[k], Aw[k]); } const int n_iters = args[OPT_NITERS].as(); @@ -114,7 +112,7 @@ int main(int argc, const char* const* argv) { for (std::size_t k = 0; k < loader.get_n_values(); ++k) { ref_Ai[Ai[k]].push_back(Aj[k]); - ref_Ax[Ai[k]].push_back(w); + ref_Ax[Ai[k]].push_back(Aw[k]); } timer_ref.lap_begin(); @@ -141,4 +139,4 @@ int main(int argc, const char* const* argv) { std::cout << std::endl; return 0; -} \ No newline at end of file +} diff --git a/examples/tc.cpp b/examples/tc.cpp index 90b07e3cd..9ab8ce47a 100644 --- a/examples/tc.cpp +++ b/examples/tc.cpp @@ -80,7 +80,7 @@ int main(int argc, const char* const* argv) { const auto& Aj = loader.get_Aj(); for (std::size_t k = 0; k < loader.get_n_values(); ++k) { - if (Ai[k] > Aj[k]) { + if (Ai[k] < Aj[k]) { A->set_int(Ai[k], Aj[k], 1); } } @@ -118,7 +118,7 @@ int main(int argc, const char* const* argv) { // for tc it is important to have no duplicates for (std::size_t k = 0; k < loader.get_n_values(); ++k) { - if (Ai[k] > Aj[k]) { + if (Ai[k] < Aj[k]) { ref_A_set[Ai[k]].insert(Aj[k]); } } diff --git a/include/spla/io.hpp b/include/spla/io.hpp index 90b0d5c54..c8d5049ab 100644 --- a/include/spla/io.hpp +++ b/include/spla/io.hpp @@ -61,7 +61,7 @@ namespace spla { */ SPLA_API bool load(std::filesystem::path file_path, bool offset_indices = true, - bool make_undirected = true, + bool make_undirected = false, bool remove_loops = true); /** @@ -80,8 +80,9 @@ namespace spla { [[nodiscard]] SPLA_API const std::vector& get_Ai() const; [[nodiscard]] SPLA_API const std::vector& get_Aj() const; - [[nodiscard]] SPLA_API uint get_n_rows() const; - [[nodiscard]] SPLA_API uint get_n_cols() const; + [[nodiscard]] SPLA_API const std::vector& get_Aw() const; + [[nodiscard]] SPLA_API uint get_n_rows() const; + [[nodiscard]] SPLA_API uint get_n_cols() const; [[nodiscard]] SPLA_API std::size_t get_n_values() const; private: @@ -89,6 +90,7 @@ namespace spla { std::filesystem::path m_file_path; std::vector m_Ai; std::vector m_Aj; + std::vector m_Aw; bool m_base_is_zero = false; uint m_n_rows = 0; uint m_n_cols = 0; diff --git a/src/io.cpp b/src/io.cpp index 9a962087d..3989bf969 100644 --- a/src/io.cpp +++ b/src/io.cpp @@ -63,12 +63,20 @@ namespace spla { std::size_t n_lines = 0; std::size_t n_sort = 0; + std::string first_line; std::string line; while (std::getline(file, line)) { + if (first_line.empty() && line.rfind("%%MatrixMarket", 0) == 0) { + first_line = line; + } if (line[0] != '%') break; n_lines++; } + bool file_is_symmetric = first_line.find("symmetric") != std::string::npos; + bool file_is_pattern = first_line.find("pattern") != std::string::npos; + bool effective_undirected = make_undirected || file_is_symmetric; + std::size_t nnz; std::stringstream header(line); header >> m_n_rows >> m_n_cols >> nnz; @@ -79,7 +87,11 @@ namespace spla { std::cout << " Data: " << nnz << " directed edges" << std::endl; if (remove_loops) std::cout << " Opt: remove self-loops" << std::endl; if (offset_indices) std::cout << " Opt: offset indices by -1" << std::endl; - if (make_undirected) std::cout << " Opt: double edges" << std::endl; + if (effective_undirected) { + std::cout << " Opt: double edges"; + if (file_is_symmetric) std::cout << " (auto from header)"; + std::cout << std::endl; + } std::cout << " Reading data: "; // optimized reading by sliding window @@ -89,16 +101,16 @@ namespace spla { char buffer[BUFFER_CAPACITY + 1]; // read data - std::size_t to_count = 0; - std::size_t to_read = nnz; - std::size_t to_preallocate = to_read * (make_undirected ? 2 : 1); - std::vector Ai; - std::vector Aj; - + std::size_t to_count = 0; + std::size_t to_read = nnz; + std::size_t to_preallocate = to_read * (effective_undirected ? 2 : 1); + std::vector Ai; + std::vector Aj; + std::vector Aw; // preallocate to avoid copy Ai.reserve(to_preallocate); Aj.reserve(to_preallocate); - + Aw.reserve(to_preallocate); float job_done = 0.0f; float job_total = 35.0f; @@ -149,9 +161,15 @@ namespace spla { } } - char* end = nullptr; - auto i = uint(std::strtoll(buffer + buffer_offset, &end, 10)); - auto j = uint(std::strtoll(end, &end, 10)); + char* end = nullptr; + auto i = uint(std::strtoll(buffer + buffer_offset, &end, 10)); + auto j = uint(std::strtoll(end, &end, 10)); + float w = 1.0f; + if (!file_is_pattern && end < buffer + line_end) { + char* val_end = nullptr; + float parsed = std::strtof(end, &val_end); + if (val_end != end && val_end <= buffer + line_end) w = parsed; + } buffer_offset = line_end + 1; assert(i > 0 && j > 0); @@ -163,54 +181,65 @@ namespace spla { i -= 1; j -= 1; } - if (make_undirected) { + if (effective_undirected) { Ai.push_back(j); Aj.push_back(i); + Aw.push_back(w); } Ai.push_back(i); Aj.push_back(j); + Aw.push_back(w); } t.lap_end();// parsing - std::vector sorted; + struct Entry { + uint i; + uint j; + float w; + }; + + std::vector sorted; { sorted.reserve(Ai.size()); n_sort = Ai.size(); for (std::size_t k = 0; k < Ai.size(); k++) { - std::uint64_t entry = 0; - entry |= std::uint64_t(Ai[k]) << 32u; - entry |= std::uint64_t(Aj[k]) << 0u; - sorted.push_back(entry); + sorted.push_back({Ai[k], Aj[k], Aw[k]}); } Ai.clear(); Aj.clear(); + Aw.clear(); - std::sort(sorted.begin(), sorted.end()); + std::sort(sorted.begin(), sorted.end(), + [](const Entry& a, const Entry& b) { + return std::tie(a.i, a.j) < std::tie(b.i, b.j); + }); } t.lap_end();// sorting - std::vector reduced_Ai; - std::vector reduced_Aj; + std::vector reduced_Ai; + std::vector reduced_Aj; + std::vector reduced_Aw; { reduced_Ai.reserve(sorted.size()); reduced_Aj.reserve(sorted.size()); - - std::uint64_t entry_prev = 0xffffffffffffffff; - for (std::uint64_t entry : sorted) { - if (entry_prev != entry) { - uint i = uint((entry >> 32u) & 0xffffffff); - uint j = uint((entry >> 0u) & 0xffffffff); - reduced_Ai.push_back(i); - reduced_Aj.push_back(j); + reduced_Aw.reserve(sorted.size()); + + Entry prev{0xffffffffu, 0xffffffffu, 0.0f}; + for (const auto& e : sorted) { + if (e.i != prev.i || e.j != prev.j) { + reduced_Ai.push_back(e.i); + reduced_Aj.push_back(e.j); + reduced_Aw.push_back(e.w); } - entry_prev = entry; + prev = e; } m_n_values = reduced_Ai.size(); m_Ai = std::move(reduced_Ai); m_Aj = std::move(reduced_Aj); + m_Aw = std::move(reduced_Aw); } t.lap_end();// reducing @@ -367,7 +396,9 @@ namespace spla { const std::vector& MtxLoader::get_Aj() const { return m_Aj; } - + const std::vector& MtxLoader::get_Aw() const { + return m_Aw; + } uint MtxLoader::get_n_rows() const { return m_n_rows; } @@ -378,4 +409,4 @@ namespace spla { return m_n_values; } -}// namespace spla \ No newline at end of file +}// namespace spla From 73a116a8074e178114fe9974abd56ecf51e5c009 Mon Sep 17 00:00:00 2001 From: archmishka Date: Sat, 10 Oct 2026 18:55:26 +0300 Subject: [PATCH 04/14] fix(opencl): validate vector format in cl_v_count_mf The sp and dn paths of v_count_mf accessed the device vector without calling validate_rw first, crashing when the vector was not already in the required format. Add the missing validate_rw calls (AccCoo/AccDense) to match the other kernels. --- src/opencl/cl_v_count_mf.hpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/opencl/cl_v_count_mf.hpp b/src/opencl/cl_v_count_mf.hpp index b57d818e0..544ccfcab 100644 --- a/src/opencl/cl_v_count_mf.hpp +++ b/src/opencl/cl_v_count_mf.hpp @@ -73,9 +73,10 @@ namespace spla { private: Status execute_sp(const DispatchContext& ctx) { - auto t = ctx.task.template cast_safe(); - ref_ptr> v = t->v.template cast_safe>(); - CLCooVec* dec_v = v->template get>(); + auto t = ctx.task.template cast_safe(); + ref_ptr> v = t->v.template cast_safe>(); + v->validate_rw(FormatVector::AccCoo); + CLCooVec* dec_v = v->template get>(); t->r->set_uint(dec_v->values); @@ -83,9 +84,10 @@ namespace spla { } Status execute_dn(const DispatchContext& ctx) { - auto t = ctx.task.template cast_safe(); - ref_ptr> v = t->v.template cast_safe>(); - CLDenseVec* dec_v = v->template get>(); + auto t = ctx.task.template cast_safe(); + ref_ptr> v = t->v.template cast_safe>(); + v->validate_rw(FormatVector::AccDense); + CLDenseVec* dec_v = v->template get>(); std::shared_ptr program; if (!ensure_kernel(program)) return Status::CompilationError; From 746ed79a94658e38af68b832ae0d804613e2f1dd Mon Sep 17 00:00:00 2001 From: archmishka Date: Fri, 12 Jun 2026 20:02:33 +0300 Subject: [PATCH 05/14] feat(python): add graph algorithms with classic/SPLA comparison Add BFS, PageRank, SSSP and transitive closure as both classic (pure-Python) and SPLA-backed implementations under python/algorithms/, together with a comparison harness (test_compare.py), a sample graph (graph.txt), a README with usage instructions, and CPU/GPU result plots. --- python/algorithms/README.md | 111 +++++++++++++++++++ python/algorithms/bfs_classic.py | 16 +++ python/algorithms/bfs_spla.py | 41 +++++++ python/algorithms/graph.txt | 3 + python/algorithms/graph_spla.py | 56 ++++++++++ python/algorithms/main_spla.py | 122 +++++++++++++++++++++ python/algorithms/pr_classic.py | 21 ++++ python/algorithms/pr_spla.py | 26 +++++ python/algorithms/sssp_classic.py | 13 +++ python/algorithms/sssp_spla.py | 42 ++++++++ python/algorithms/tc_classic.py | 10 ++ python/algorithms/tc_spla.py | 6 ++ python/algorithms/test_compare.py | 171 ++++++++++++++++++++++++++++++ 13 files changed, 638 insertions(+) create mode 100644 python/algorithms/README.md create mode 100644 python/algorithms/bfs_classic.py create mode 100644 python/algorithms/bfs_spla.py create mode 100644 python/algorithms/graph.txt create mode 100644 python/algorithms/graph_spla.py create mode 100644 python/algorithms/main_spla.py create mode 100644 python/algorithms/pr_classic.py create mode 100644 python/algorithms/pr_spla.py create mode 100644 python/algorithms/sssp_classic.py create mode 100644 python/algorithms/sssp_spla.py create mode 100644 python/algorithms/tc_classic.py create mode 100644 python/algorithms/tc_spla.py create mode 100644 python/algorithms/test_compare.py diff --git a/python/algorithms/README.md b/python/algorithms/README.md new file mode 100644 index 000000000..3c74a9863 --- /dev/null +++ b/python/algorithms/README.md @@ -0,0 +1,111 @@ +# Graph Algorithms with SPLA + +This project provides a Python implementation of graph algorithms using sparse +linear algebra primitives from SPLA on GPU + +Tests (`test_compare.py`) checks that both implementations produce identical results. + +Run tests: +```bash +python -m unittest test_compare.py -v +``` +--- + +## Supported Algorithms + +| Algorithm | Flag | +|-----------|------| +| BFS (Breadth-First Search) | `--algo bfs` | +| SSSP (Single-Source Shortest Paths) | `--algo sssp` | +| PageRank | `--algo pr` | +| Triangle Counting | `--algo tc` | + +--- + +SSSP should be used with undirected graphs only + +## Installation + +```bash +cd python +python -m venv venv +source venv/bin/activate +pip install -e . +cd algorithms +``` + +--- + +## Usage +```text +usage: main_spla.py [-h] --algo {bfs,sssp,pr,tc} [-m MATRIX] [-v VECTORS] [-o OUTPUT] [-s START] [-a ALPHA] [-e EPS] + +options: + -h, --help show this help message and exit + --algo {bfs,sssp,pr,tc} + Algorithm to run: + bfs - Breadth-First Search + sssp - Single-Source Shortest Paths + pr - PageRank + tc - Triangle Counting + -m MATRIX, --matrix MATRIX + Path to graph in Matrix Market format (.mtx) + -v VECTORS, --vectors VECTORS + Path to graph in vectors format (.txt) + -o OUTPUT, --output OUTPUT + Output file path (default: result.txt) + -s START, --start START + Start vertex (used in bfs, sssp; default: 0) + -a ALPHA, --alpha ALPHA + Damping factor (used in pr; default: 0.85) + -e EPS, --eps EPS + Convergence tolerance (used in pr; default: 1e-4) +``` +--- + +## Examples + +```bash +# BFS +python main_spla.py --algo bfs -m graph.mtx -s 0 -o bfs_result.txt + +# SSSP +python main_spla.py --algo sssp -v graph.txt -s 0 -o sssp_result.txt + +# PageRank +python main_spla.py --algo pr -v graph.txt -a 0.85 -e 1e-6 -o pr_result.txt + +# Triangle Counting +python main_spla.py --algo tc -m graph.mtx -o tc_result.txt +``` + +--- + +## Input format + +Two options: + +- `-v graph.txt` — Vectors format +- `-m graph.mtx` — Matrix Market format (from https://sparse.tamu.edu/) + + +### graph.txt + +Example +```text +0 1 2 # I: source vertex indices +1 2 0 # J: target vertex indices +5 3 2 # V: edge weights +``` + +### graph.mtx (Matrix Market) +Example +```text +%%MatrixMarket matrix coordinate real general +% rows cols nnz +4 4 4 #rows, cols, non-zero values +1 2 1.0 #source vertex, target vertex, weight +2 3 2.0 +3 4 3.0 +4 1 4.0 +``` \ No newline at end of file diff --git a/python/algorithms/bfs_classic.py b/python/algorithms/bfs_classic.py new file mode 100644 index 000000000..62967c99f --- /dev/null +++ b/python/algorithms/bfs_classic.py @@ -0,0 +1,16 @@ +from collections import deque + +def bfs_naive(start, graph, n): + depth = [None] * n + q = deque() + depth[start] = 0 + q.append(start) + + while q: + u = q.popleft() + for v in graph[u]: + if depth[v] is None: + depth[v] = depth[u] + 1 + q.append(v) + + return depth \ No newline at end of file diff --git a/python/algorithms/bfs_spla.py b/python/algorithms/bfs_spla.py new file mode 100644 index 000000000..a900104f7 --- /dev/null +++ b/python/algorithms/bfs_spla.py @@ -0,0 +1,41 @@ +from pyspla import INT, Matrix, Scalar, Vector, Descriptor + +def bfs_spla(s: int, A: Matrix, + push_only: bool = False, + pull_only: bool = False, + push_pull: bool = True, + front_factor: float = 0.05): + n = A.n_rows + if not (push_only or pull_only or push_pull): + push_only = True + + v = Vector(n, INT) + front_prev = Vector(n, INT) + front_new = Vector(n, INT) + front_prev.set(s, 1) + + depth = Scalar(INT, 0) + count = 0 + front_size = 1 + + desc = Descriptor() + desc.set_early_exit(True) + desc.set_struct_only(True) + + while front_size > 0: + depth += 1 + count += front_size + v.assign(front_prev, depth, op_assign=INT.SECOND, op_select=INT.NQZERO) + front_density = front_size / n + is_push_better = front_density <= front_factor + + if push_only or (push_pull and is_push_better): + front_prev.vxm(v, A,op_mult=INT.LAND, op_add=INT.LOR, op_select=INT.EQZERO, out=front_new, desc=desc) + else: + A.mxv(v, front_prev, op_mult=INT.LAND, op_add=INT.LOR, op_select=INT.EQZERO, out=front_new, desc=desc) + + front_size = front_new.count_mf().get() + + front_prev, front_new = front_new, front_prev + + return v, count, depth.get() \ No newline at end of file diff --git a/python/algorithms/graph.txt b/python/algorithms/graph.txt new file mode 100644 index 000000000..166ad99ca --- /dev/null +++ b/python/algorithms/graph.txt @@ -0,0 +1,3 @@ +0 1 2 +1 2 0 +5 3 2 diff --git a/python/algorithms/graph_spla.py b/python/algorithms/graph_spla.py new file mode 100644 index 000000000..6c1c8f3f3 --- /dev/null +++ b/python/algorithms/graph_spla.py @@ -0,0 +1,56 @@ +from scipy.io import mmread +from pyspla import Matrix, INT, FLOAT + + +def sort_by_ij(I, J, V): + return map(list, zip(*sorted(zip(I, J, V)))) + + +def read_spla(filepath, dtype=FLOAT): + coo = mmread(filepath).tocoo() + n = int(max(coo.shape)) + rows = coo.row.astype(int).tolist() + cols = coo.col.astype(int).tolist() + vals = coo.data.astype(float).tolist() + if dtype == INT: + vals = [int(v) for v in vals] + rows, cols, vals = sort_by_ij(rows, cols, vals) + return Matrix.from_lists(rows, cols, vals, shape=(n, n), dtype=dtype) + + +def read_vectors_spla(filepath, dtype=FLOAT): + with open(filepath) as f: + I = list(map(int, f.readline().split())) + J = list(map(int, f.readline().split())) + V = list(map(float, f.readline().split())) + if dtype == INT: + V = [int(v) for v in V] + n = max(max(I), max(J)) + 1 + I, J, V = sort_by_ij(I, J, V) + return Matrix.from_lists(I, J, V, shape=(n, n), dtype=dtype) + + +def read_mtx_pr_spla(file_path, alpha=0.85): + coo = mmread(file_path).tocoo() + n = int(max(coo.shape)) + rows = coo.row.astype(int).tolist() + cols = coo.col.astype(int).tolist() + out_deg = [0] * n + for i in rows: + out_deg[i] += 1 + weights = [alpha / out_deg[i] if out_deg[i] > 0 else 0.0 for i in rows] + rows, cols, weights = sort_by_ij(rows, cols, weights) + return Matrix.from_lists(rows, cols, weights, shape=(n, n), dtype=FLOAT) + + +def read_vectors_pr_spla(file_path, alpha=0.85): + with open(file_path) as f: + I = list(map(int, f.readline().split())) + J = list(map(int, f.readline().split())) + n = max(max(I), max(J)) + 1 + out_deg = [0] * n + for i in I: + out_deg[i] += 1 + V = [alpha / out_deg[i] if out_deg[i] > 0 else 0.0 for i in I] + I, J, V = sort_by_ij(I, J, V) + return Matrix.from_lists(I, J, V, shape=(n, n), dtype=FLOAT) \ No newline at end of file diff --git a/python/algorithms/main_spla.py b/python/algorithms/main_spla.py new file mode 100644 index 000000000..06834317d --- /dev/null +++ b/python/algorithms/main_spla.py @@ -0,0 +1,122 @@ +import argparse +import sys +import math +from pathlib import Path +from bfs_spla import bfs_spla +from sssp_spla import sssp_spla +from pr_spla import pr_spla +from tc_spla import tc_spla +from graph_spla import ( + read_spla, + read_vectors_spla, + read_mtx_pr_spla, + read_vectors_pr_spla, +) +from pyspla import INT, FLOAT + +INF = math.inf + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument( + "--algo", + choices=["bfs", "sssp", "pr", "tc"], + required=True, + help="Algorithm to run: " + "bfs - Breadth-First Search, " + "sssp - Single-Source Shortest Paths, " + "pr - PageRank, " + "tc - Triangle Counting", + ) + parser.add_argument( + "-m", "--matrix", + type=Path, + help="Path to graph in Matrix Market format (.mtx)", + ) + parser.add_argument( + "-v", "--vectors", + type=Path, + help="Path to graph in vectors format (.txt)", + ) + parser.add_argument( + "-o", "--output", + type=Path, + default="result.txt", + help="Output file path", + ) + parser.add_argument( + "-s", "--start", + type=int, + default=0, + help="Start vertex(default: 0)", + ) + parser.add_argument( + "-a", "--alpha", + type=float, + default=0.85, + help="Damping factor(default: 0.85)", + ) + parser.add_argument( + "-e", "--eps", + type=float, + default=1e-4, + help="Convergence tolerance(default: 1e-4)", + ) + args = parser.parse_args() + + if not args.matrix and not args.vectors: + sys.exit("Error: no graph file provided") + + if args.algo == "bfs": + if args.matrix: + A = read_spla(str(args.matrix), dtype=INT) + v, count, depth = bfs_spla(args.start, A) + else: + A = read_vectors_spla(str(args.vectors), dtype=INT) + v, count, depth = bfs_spla(args.start, A, push_only=True, pull_only=False, push_pull=False) + with open(args.output, "w") as f_out: + f_out.write(f"Reached vertices: {count}\n") + f_out.write(f"Max depth: {depth - 1}\n") + idx, vals = v.to_lists() + for k in range(len(idx)): + f_out.write(f"{idx[k]} {vals[k] - 1}\n") + print(f"Result saved to {args.output}") + + elif args.algo == "sssp": + if args.matrix: + A = read_spla(str(args.matrix), dtype=FLOAT) + v = sssp_spla(args.start, A) + else: + A = read_vectors_spla(str(args.vectors), dtype=FLOAT) + v = sssp_spla(args.start, A, push_only=True, pull_only=False, push_pull=False) + with open(args.output, "w") as f_out: + idx, vals = v.to_lists() + for k in range(len(idx)): + if vals[k] < INF: + f_out.write(f"{idx[k]} {vals[k]}\n") + print(f"Result saved to {args.output}") + + elif args.algo == "pr": + if args.matrix: + A = read_mtx_pr_spla(str(args.matrix), alpha=args.alpha) + else: + A = read_vectors_pr_spla(str(args.vectors), alpha=args.alpha) + p = pr_spla(A, args.alpha, args.eps) + with open(args.output, "w") as f_out: + idx, vals = p.to_lists() + for k in range(len(idx)): + f_out.write(f"{idx[k]} {vals[k]:.6f}\n") + print(f"Result saved to {args.output}") + + elif args.algo == "tc": + if args.matrix: + A = read_spla(str(args.matrix), dtype=INT) + else: + A = read_vectors_spla(str(args.vectors), dtype=INT) + triangles = tc_spla(A) + with open(args.output, "w") as f_out: + f_out.write(f"Triangles: {triangles}\n") + print(f"Result saved to {args.output}") + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/python/algorithms/pr_classic.py b/python/algorithms/pr_classic.py new file mode 100644 index 000000000..66823f499 --- /dev/null +++ b/python/algorithms/pr_classic.py @@ -0,0 +1,21 @@ +import math + +def pagerank_naive(Ai, Ax, alpha,eps): + N=len(Ai) + p_prev=[1.0/N]*N + error=eps+1.0 + while error>eps: + p=[0.0]*N + for i in range(N): + s=0.0 + for k in range(len(Ai[i])): + s+=Ax[i][k]*p_prev[Ai[i][k]] + p[i]=s+(1.0-alpha)/N + error=0.0 + for i in range(N): + diff=p[i]-p_prev[i] + error+=diff*diff + error=math.sqrt(error) + p_prev,p=p,p_prev + + return p_prev \ No newline at end of file diff --git a/python/algorithms/pr_spla.py b/python/algorithms/pr_spla.py new file mode 100644 index 000000000..94aa978f3 --- /dev/null +++ b/python/algorithms/pr_spla.py @@ -0,0 +1,26 @@ +import math +from pyspla import FLOAT, Matrix, Scalar, Vector + + +def pr_spla(A: Matrix, alpha: float, eps: float): + N = A.n_rows + mask = Vector(N, FLOAT) + addition = Vector(N, FLOAT).fill_with(Scalar(FLOAT, (1.0 - alpha) / N)) + p_prev = Vector(N, FLOAT).fill_with(Scalar(FLOAT, 1.0 / N)) + p_tmp = Vector(N, FLOAT) + p = Vector(N, FLOAT) + errors = Vector(N, FLOAT) + zero = Scalar(FLOAT, 0.0) + error2 = Scalar(FLOAT) + error = eps + 0.1 + while error > eps: + A.mxv(mask, p_prev, + op_mult=FLOAT.MULT, op_add=FLOAT.PLUS, op_select=FLOAT.ALWAYS, + init=zero, out=p_tmp) + p_tmp.eadd(FLOAT.PLUS, addition, out=p) + p.eadd(FLOAT.MINUS_POW2, p_prev, out=errors) + errors.reduce(FLOAT.PLUS, out=error2, init=zero) + error = math.sqrt(error2.get()) + p, p_prev = p_prev, p + + return p_prev \ No newline at end of file diff --git a/python/algorithms/sssp_classic.py b/python/algorithms/sssp_classic.py new file mode 100644 index 000000000..e95b13329 --- /dev/null +++ b/python/algorithms/sssp_classic.py @@ -0,0 +1,13 @@ +import math +INF = math.inf +def sssp_naive(start, graph, n): + dist = [INF] * n + dist[start] = 0 + + for _ in range(n - 1): + for u in range(n): + if dist[u] != INF: + for v, w in graph[u]: + dist[v] = min(dist[v], dist[u] + w) + + return dist diff --git a/python/algorithms/sssp_spla.py b/python/algorithms/sssp_spla.py new file mode 100644 index 000000000..192ac726d --- /dev/null +++ b/python/algorithms/sssp_spla.py @@ -0,0 +1,42 @@ +import math +from pyspla import FLOAT, Matrix, Scalar, Vector +INF = math.inf + + +def make_vector(n): + v = Vector(n, FLOAT) + v.set_fill_value(Scalar(FLOAT, INF)) + return v + + +def sssp_spla(start, A, push_only=False, pull_only=False, push_pull=True, front_factor=0.05): + n = A.n_rows + if not (push_only or pull_only or push_pull): + push_only = True + + mask = Vector(n, FLOAT) + init_inf = Scalar(FLOAT, INF) + dist = make_vector(n) + dist.set(start, 0.0) + feedback = make_vector(n) + feedback.set(start, 0.0) + frontier = make_vector(n) + fs = feedback.count_mf().get() + + while fs > 0: + front_density = fs / n + is_push_better = front_density <= front_factor + + if push_only or (push_pull and is_push_better): + feedback.vxm(mask, A, + op_mult=FLOAT.PLUS, op_add=FLOAT.MIN, + op_select=FLOAT.ALWAYS, init=init_inf, out=frontier) + else: + A.mxv(mask, feedback, + op_mult=FLOAT.PLUS, op_add=FLOAT.MIN, + op_select=FLOAT.ALWAYS, init=init_inf, out=frontier) + + dist.eadd_fdb(frontier, FLOAT.MIN, feedback) + fs = feedback.count_mf().get() + + return dist \ No newline at end of file diff --git a/python/algorithms/tc_classic.py b/python/algorithms/tc_classic.py new file mode 100644 index 000000000..cf091695f --- /dev/null +++ b/python/algorithms/tc_classic.py @@ -0,0 +1,10 @@ +def tc_naive(graph, n): + triangles = 0 + + for i in range(n): + for j in graph[i]: + for k in graph[j]: + if k in graph[i]: + triangles += 1 + + return triangles // 6 diff --git a/python/algorithms/tc_spla.py b/python/algorithms/tc_spla.py new file mode 100644 index 000000000..55fbb042b --- /dev/null +++ b/python/algorithms/tc_spla.py @@ -0,0 +1,6 @@ +from pyspla import INT, Matrix, Scalar + +def tc_spla(A: Matrix): + zero = Scalar(INT, 0) + B = A.mxmT(A, A, op_mult=INT.MULT, op_add=INT.PLUS, op_select=INT.GTZERO, init=zero) + return B.reduce(op_reduce=INT.PLUS, init=zero).get() \ No newline at end of file diff --git a/python/algorithms/test_compare.py b/python/algorithms/test_compare.py new file mode 100644 index 000000000..9f8d6ff81 --- /dev/null +++ b/python/algorithms/test_compare.py @@ -0,0 +1,171 @@ +import warnings + +warnings.simplefilter("ignore", DeprecationWarning) + +import heapq +import math +import sys +import unittest +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).parent)) + +from pyspla import FLOAT, INT +from graph_spla import read_spla, read_mtx_pr_spla +from bfs_spla import bfs_spla +from bfs_classic import bfs_naive as bfs_classic +from sssp_spla import sssp_spla +from pr_spla import pr_spla +from pr_classic import pagerank_naive as pr_classic +from tc_spla import tc_spla +from tc_classic import tc_naive as tc_classic + + +DATA = Path(__file__).parent.parent.parent / "bench" / "dataset" +UNDIRECTED_GRAPH = DATA / "belgium_osm.mtx" +DIRECTED_GRAPH = DATA / "amazon-2008.mtx" +UPPER = DATA / "upper" / "belgium_osm.mtx" + + +def split(A): + i, j, v = A.to_lists() + return A.n_rows, list(zip(i, j)), list(v) + + +def to_list(v, n, fill): + i, x = v.to_lists() + out = [fill] * n + for k, val in zip(i, x): + out[k] = val + return out + + +def adj_plain(n, pairs): + adj = [[] for _ in range(n)] + for u, v in pairs: + adj[u].append(v) + return adj + + +def adj_weighted(n, pairs, weights): + adj = [[] for _ in range(n)] + for (u, v), w in zip(pairs, weights): + adj[u].append((v, w)) + return adj + + +def short_distance(n, adj, start): + dist = [math.inf] * n + dist[start] = 0.0 + + queue = [(0.0, start)] + while queue: + d, u = heapq.heappop(queue) + if d > dist[u]: + continue + for v, w in adj[u]: + new = d + w + if new < dist[v]: + dist[v] = new + heapq.heappush(queue, (new, v)) + + return dist + + +class TestBfs(unittest.TestCase): + def _check(self, mtx, **kwargs): + A = read_spla(str(mtx), INT) + n, pairs, _ = split(A) + + ref = bfs_classic(0, adj_plain(n, pairs), n) + ref = [(x + 1) if x is not None else 0 for x in ref] + + v, _, _ = bfs_spla(0, A, **kwargs) + got = to_list(v, n, 0) + + self.assertEqual(ref, got) + + def test_symmetric_push(self): + self._check(UNDIRECTED_GRAPH, push_only=True, pull_only=False, push_pull=False) + + def test_symmetric_pull(self): + self._check(UNDIRECTED_GRAPH, push_only=False, pull_only=True, push_pull=False) + + def test_symmetric_push_pull(self): + self._check(UNDIRECTED_GRAPH, push_only=False, pull_only=False, push_pull=True) + + def test_directed_push(self): + self._check(DIRECTED_GRAPH, push_only=True, pull_only=False, push_pull=False) + + +class TestSssp(unittest.TestCase): + def _check(self, mtx, **kwargs): + A = read_spla(str(mtx), FLOAT) + n, pairs, weights = split(A) + + ref = short_distance(n, adj_weighted(n, pairs, weights), 0) + + d = sssp_spla(0, A, **kwargs) + got = to_list(d, n, math.inf) + got[0] = 0.0 + + for i, (a, b) in enumerate(zip(ref, got)): + if math.isinf(a) and math.isinf(b): + continue + self.assertLessEqual(abs(a - b), 1e-4, f"v{i}: ref={a} got={b}") + + def test_symmetric_push(self): + self._check(UNDIRECTED_GRAPH, push_only=True, pull_only=False, push_pull=False) + + def test_symmetric_pull(self): + self._check(UNDIRECTED_GRAPH, push_only=False, pull_only=True, push_pull=False) + + def test_directed_push(self): + self._check(DIRECTED_GRAPH, push_only=True, pull_only=False, push_pull=False) + + +class TestPr(unittest.TestCase): + def _check(self, mtx): + A = read_mtx_pr_spla(str(mtx)) + n, pairs, weights = split(A) + + adj = [[] for _ in range(n)] + wgt = [[] for _ in range(n)] + for (u, v), w in zip(pairs, weights): + adj[u].append(v) + wgt[u].append(w) + + alpha, eps = 0.85, 1e-6 + ref = pr_classic(adj, wgt, alpha, eps) + + p = pr_spla(A, alpha, eps) + got = to_list(p, n, 0.0) + + max_diff = max(abs(a - b) for a, b in zip(ref, got)) + self.assertLess(max_diff, 1e-4, f"max diff {max_diff:.2e}") + + def test_symmetric(self): + self._check(UNDIRECTED_GRAPH) + + def test_directed(self): + self._check(DIRECTED_GRAPH) + + +class TestTc(unittest.TestCase): + def test_upper(self): + A = read_spla(str(UPPER), INT) + n, pairs, _ = split(A) + + adj = [[] for _ in range(n)] + for u, v in pairs: + adj[u].append(v) + adj[v].append(u) + + ref = tc_classic(adj, n) + got = tc_spla(A) + + self.assertEqual(ref, got) + + +if __name__ == "__main__": + unittest.main(verbosity=2) \ No newline at end of file From db0bebd22f8d6d75e022cb069f26fa47aba48342 Mon Sep 17 00:00:00 2001 From: Vladimir Kutuev Date: Sat, 28 Nov 2026 01:40:50 +0300 Subject: [PATCH 06/14] fix(python): correct triangle counting, fix main_spla, clean up lint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - tc_spla: default to the Sandia algorithm (L*L masked by L) — exact for any edge orientation and immune to edge weights; keep the mxmT-based variant (mirrors C++ spla::tc, requires upper-triangle unit-weight input) as tc_spla_mxmT - test_compare: TC tests read with unit weights and cross-check against NetworkX (skipped when not installed); dataset paths point to python/algorithms/data/ (local fixtures, not committed) - main_spla: fix IndentationError in the sssp vectors branch - ruff: fix import sorting and unused imports, apply ruff format --- python/algorithms/README.md | 13 +++++-- python/algorithms/bfs_classic.py | 3 +- python/algorithms/bfs_spla.py | 38 +++++++++++++++----- python/algorithms/graph_spla.py | 15 ++++---- python/algorithms/main_spla.py | 58 ++++++++++++++++++------------ python/algorithms/pr_classic.py | 31 ++++++++-------- python/algorithms/pr_spla.py | 23 +++++++----- python/algorithms/sssp_classic.py | 3 ++ python/algorithms/sssp_spla.py | 34 +++++++++++++----- python/algorithms/tc_spla.py | 31 ++++++++++++++-- python/algorithms/test_compare.py | 59 +++++++++++++++++++++++-------- 11 files changed, 217 insertions(+), 91 deletions(-) diff --git a/python/algorithms/README.md b/python/algorithms/README.md index 3c74a9863..6b05f8bec 100644 --- a/python/algorithms/README.md +++ b/python/algorithms/README.md @@ -3,11 +3,18 @@ This project provides a Python implementation of graph algorithms using sparse linear algebra primitives from SPLA on GPU -Tests (`test_compare.py`) checks that both implementations produce identical results. +Tests (`test_compare.py`) check that the SPLA implementations produce the same +results as the classic (pure-Python) reference implementations. The triangle +counting tests additionally cross-check against NetworkX when it is installed +(`pip install networkx`); that test is skipped otherwise. + +The tests read small Matrix Market fixtures from `data/` (next to this file): +`undirected.mtx`, `undirected_upper.mtx`, and `directed.mtx`. The fixtures are +not committed; place your own `.mtx` files there (any connected graph works). Run tests: -```bash -python -m unittest test_compare.py -v +```bash +python -m unittest test_compare -v ``` --- diff --git a/python/algorithms/bfs_classic.py b/python/algorithms/bfs_classic.py index 62967c99f..808b76607 100644 --- a/python/algorithms/bfs_classic.py +++ b/python/algorithms/bfs_classic.py @@ -1,5 +1,6 @@ from collections import deque + def bfs_naive(start, graph, n): depth = [None] * n q = deque() @@ -13,4 +14,4 @@ def bfs_naive(start, graph, n): depth[v] = depth[u] + 1 q.append(v) - return depth \ No newline at end of file + return depth diff --git a/python/algorithms/bfs_spla.py b/python/algorithms/bfs_spla.py index a900104f7..73f83d984 100644 --- a/python/algorithms/bfs_spla.py +++ b/python/algorithms/bfs_spla.py @@ -1,10 +1,14 @@ -from pyspla import INT, Matrix, Scalar, Vector, Descriptor +from pyspla import INT, Descriptor, Matrix, Scalar, Vector -def bfs_spla(s: int, A: Matrix, - push_only: bool = False, - pull_only: bool = False, - push_pull: bool = True, - front_factor: float = 0.05): + +def bfs_spla( + s: int, + A: Matrix, + push_only: bool = False, + pull_only: bool = False, + push_pull: bool = True, + front_factor: float = 0.05, +): n = A.n_rows if not (push_only or pull_only or push_pull): push_only = True @@ -30,12 +34,28 @@ def bfs_spla(s: int, A: Matrix, is_push_better = front_density <= front_factor if push_only or (push_pull and is_push_better): - front_prev.vxm(v, A,op_mult=INT.LAND, op_add=INT.LOR, op_select=INT.EQZERO, out=front_new, desc=desc) + front_prev.vxm( + v, + A, + op_mult=INT.LAND, + op_add=INT.LOR, + op_select=INT.EQZERO, + out=front_new, + desc=desc, + ) else: - A.mxv(v, front_prev, op_mult=INT.LAND, op_add=INT.LOR, op_select=INT.EQZERO, out=front_new, desc=desc) + A.mxv( + v, + front_prev, + op_mult=INT.LAND, + op_add=INT.LOR, + op_select=INT.EQZERO, + out=front_new, + desc=desc, + ) front_size = front_new.count_mf().get() front_prev, front_new = front_new, front_prev - return v, count, depth.get() \ No newline at end of file + return v, count, depth.get() diff --git a/python/algorithms/graph_spla.py b/python/algorithms/graph_spla.py index 6c1c8f3f3..054c8c9dc 100644 --- a/python/algorithms/graph_spla.py +++ b/python/algorithms/graph_spla.py @@ -1,19 +1,22 @@ +from pyspla import FLOAT, INT, Matrix from scipy.io import mmread -from pyspla import Matrix, INT, FLOAT def sort_by_ij(I, J, V): return map(list, zip(*sorted(zip(I, J, V)))) -def read_spla(filepath, dtype=FLOAT): +def read_spla(filepath, dtype=FLOAT, unit_weights=False): coo = mmread(filepath).tocoo() n = int(max(coo.shape)) rows = coo.row.astype(int).tolist() cols = coo.col.astype(int).tolist() - vals = coo.data.astype(float).tolist() - if dtype == INT: - vals = [int(v) for v in vals] + if unit_weights: + vals = [1] * len(rows) if dtype == INT else [1.0] * len(rows) + else: + vals = coo.data.astype(float).tolist() + if dtype == INT: + vals = [int(v) for v in vals] rows, cols, vals = sort_by_ij(rows, cols, vals) return Matrix.from_lists(rows, cols, vals, shape=(n, n), dtype=dtype) @@ -53,4 +56,4 @@ def read_vectors_pr_spla(file_path, alpha=0.85): out_deg[i] += 1 V = [alpha / out_deg[i] if out_deg[i] > 0 else 0.0 for i in I] I, J, V = sort_by_ij(I, J, V) - return Matrix.from_lists(I, J, V, shape=(n, n), dtype=FLOAT) \ No newline at end of file + return Matrix.from_lists(I, J, V, shape=(n, n), dtype=FLOAT) diff --git a/python/algorithms/main_spla.py b/python/algorithms/main_spla.py index 06834317d..fdebc6ffb 100644 --- a/python/algorithms/main_spla.py +++ b/python/algorithms/main_spla.py @@ -1,21 +1,23 @@ import argparse -import sys import math +import sys from pathlib import Path -from bfs_spla import bfs_spla -from sssp_spla import sssp_spla -from pr_spla import pr_spla -from tc_spla import tc_spla + +from bfs_spla import bfs_spla from graph_spla import ( - read_spla, - read_vectors_spla, read_mtx_pr_spla, + read_spla, read_vectors_pr_spla, + read_vectors_spla, ) -from pyspla import INT, FLOAT +from pr_spla import pr_spla +from pyspla import FLOAT, INT +from sssp_spla import sssp_spla +from tc_spla import tc_spla INF = math.inf + def main(): parser = argparse.ArgumentParser() parser.add_argument( @@ -23,41 +25,47 @@ def main(): choices=["bfs", "sssp", "pr", "tc"], required=True, help="Algorithm to run: " - "bfs - Breadth-First Search, " - "sssp - Single-Source Shortest Paths, " - "pr - PageRank, " - "tc - Triangle Counting", + "bfs - Breadth-First Search, " + "sssp - Single-Source Shortest Paths, " + "pr - PageRank, " + "tc - Triangle Counting", ) parser.add_argument( - "-m", "--matrix", + "-m", + "--matrix", type=Path, help="Path to graph in Matrix Market format (.mtx)", ) parser.add_argument( - "-v", "--vectors", + "-v", + "--vectors", type=Path, help="Path to graph in vectors format (.txt)", ) parser.add_argument( - "-o", "--output", + "-o", + "--output", type=Path, default="result.txt", help="Output file path", ) parser.add_argument( - "-s", "--start", + "-s", + "--start", type=int, default=0, help="Start vertex(default: 0)", ) parser.add_argument( - "-a", "--alpha", + "-a", + "--alpha", type=float, default=0.85, help="Damping factor(default: 0.85)", ) parser.add_argument( - "-e", "--eps", + "-e", + "--eps", type=float, default=1e-4, help="Convergence tolerance(default: 1e-4)", @@ -73,13 +81,14 @@ def main(): v, count, depth = bfs_spla(args.start, A) else: A = read_vectors_spla(str(args.vectors), dtype=INT) - v, count, depth = bfs_spla(args.start, A, push_only=True, pull_only=False, push_pull=False) + v, count, depth = bfs_spla( + args.start, A, push_only=True, pull_only=False, push_pull=False + ) with open(args.output, "w") as f_out: f_out.write(f"Reached vertices: {count}\n") f_out.write(f"Max depth: {depth - 1}\n") idx, vals = v.to_lists() - for k in range(len(idx)): - f_out.write(f"{idx[k]} {vals[k] - 1}\n") + f_out.writelines(f"{idx[k]} {vals[k] - 1}\n" for k in range(len(idx))) print(f"Result saved to {args.output}") elif args.algo == "sssp": @@ -88,7 +97,9 @@ def main(): v = sssp_spla(args.start, A) else: A = read_vectors_spla(str(args.vectors), dtype=FLOAT) - v = sssp_spla(args.start, A, push_only=True, pull_only=False, push_pull=False) + v = sssp_spla( + args.start, A, push_only=True, pull_only=False, push_pull=False + ) with open(args.output, "w") as f_out: idx, vals = v.to_lists() for k in range(len(idx)): @@ -118,5 +129,6 @@ def main(): f_out.write(f"Triangles: {triangles}\n") print(f"Result saved to {args.output}") + if __name__ == "__main__": - main() \ No newline at end of file + main() diff --git a/python/algorithms/pr_classic.py b/python/algorithms/pr_classic.py index 66823f499..3639d4415 100644 --- a/python/algorithms/pr_classic.py +++ b/python/algorithms/pr_classic.py @@ -1,21 +1,22 @@ import math -def pagerank_naive(Ai, Ax, alpha,eps): - N=len(Ai) - p_prev=[1.0/N]*N - error=eps+1.0 - while error>eps: - p=[0.0]*N + +def pagerank_naive(Ai, Ax, alpha, eps): + N = len(Ai) + p_prev = [1.0 / N] * N + error = eps + 1.0 + while error > eps: + p = [0.0] * N for i in range(N): - s=0.0 + s = 0.0 for k in range(len(Ai[i])): - s+=Ax[i][k]*p_prev[Ai[i][k]] - p[i]=s+(1.0-alpha)/N - error=0.0 + s += Ax[i][k] * p_prev[Ai[i][k]] + p[i] = s + (1.0 - alpha) / N + error = 0.0 for i in range(N): - diff=p[i]-p_prev[i] - error+=diff*diff - error=math.sqrt(error) - p_prev,p=p,p_prev + diff = p[i] - p_prev[i] + error += diff * diff + error = math.sqrt(error) + p_prev, p = p, p_prev - return p_prev \ No newline at end of file + return p_prev diff --git a/python/algorithms/pr_spla.py b/python/algorithms/pr_spla.py index 94aa978f3..6fbdbe208 100644 --- a/python/algorithms/pr_spla.py +++ b/python/algorithms/pr_spla.py @@ -1,4 +1,5 @@ import math + from pyspla import FLOAT, Matrix, Scalar, Vector @@ -6,21 +7,27 @@ def pr_spla(A: Matrix, alpha: float, eps: float): N = A.n_rows mask = Vector(N, FLOAT) addition = Vector(N, FLOAT).fill_with(Scalar(FLOAT, (1.0 - alpha) / N)) - p_prev = Vector(N, FLOAT).fill_with(Scalar(FLOAT, 1.0 / N)) - p_tmp = Vector(N, FLOAT) - p = Vector(N, FLOAT) + p_prev = Vector(N, FLOAT).fill_with(Scalar(FLOAT, 1.0 / N)) + p_tmp = Vector(N, FLOAT) + p = Vector(N, FLOAT) errors = Vector(N, FLOAT) - zero = Scalar(FLOAT, 0.0) + zero = Scalar(FLOAT, 0.0) error2 = Scalar(FLOAT) error = eps + 0.1 while error > eps: - A.mxv(mask, p_prev, - op_mult=FLOAT.MULT, op_add=FLOAT.PLUS, op_select=FLOAT.ALWAYS, - init=zero, out=p_tmp) + A.mxv( + mask, + p_prev, + op_mult=FLOAT.MULT, + op_add=FLOAT.PLUS, + op_select=FLOAT.ALWAYS, + init=zero, + out=p_tmp, + ) p_tmp.eadd(FLOAT.PLUS, addition, out=p) p.eadd(FLOAT.MINUS_POW2, p_prev, out=errors) errors.reduce(FLOAT.PLUS, out=error2, init=zero) error = math.sqrt(error2.get()) p, p_prev = p_prev, p - return p_prev \ No newline at end of file + return p_prev diff --git a/python/algorithms/sssp_classic.py b/python/algorithms/sssp_classic.py index e95b13329..e533bc5b4 100644 --- a/python/algorithms/sssp_classic.py +++ b/python/algorithms/sssp_classic.py @@ -1,5 +1,8 @@ import math + INF = math.inf + + def sssp_naive(start, graph, n): dist = [INF] * n dist[start] = 0 diff --git a/python/algorithms/sssp_spla.py b/python/algorithms/sssp_spla.py index 192ac726d..bc273b5a9 100644 --- a/python/algorithms/sssp_spla.py +++ b/python/algorithms/sssp_spla.py @@ -1,5 +1,7 @@ import math -from pyspla import FLOAT, Matrix, Scalar, Vector + +from pyspla import FLOAT, Scalar, Vector + INF = math.inf @@ -9,7 +11,9 @@ def make_vector(n): return v -def sssp_spla(start, A, push_only=False, pull_only=False, push_pull=True, front_factor=0.05): +def sssp_spla( + start, A, push_only=False, pull_only=False, push_pull=True, front_factor=0.05 +): n = A.n_rows if not (push_only or pull_only or push_pull): push_only = True @@ -28,15 +32,27 @@ def sssp_spla(start, A, push_only=False, pull_only=False, push_pull=True, front_ is_push_better = front_density <= front_factor if push_only or (push_pull and is_push_better): - feedback.vxm(mask, A, - op_mult=FLOAT.PLUS, op_add=FLOAT.MIN, - op_select=FLOAT.ALWAYS, init=init_inf, out=frontier) + feedback.vxm( + mask, + A, + op_mult=FLOAT.PLUS, + op_add=FLOAT.MIN, + op_select=FLOAT.ALWAYS, + init=init_inf, + out=frontier, + ) else: - A.mxv(mask, feedback, - op_mult=FLOAT.PLUS, op_add=FLOAT.MIN, - op_select=FLOAT.ALWAYS, init=init_inf, out=frontier) + A.mxv( + mask, + feedback, + op_mult=FLOAT.PLUS, + op_add=FLOAT.MIN, + op_select=FLOAT.ALWAYS, + init=init_inf, + out=frontier, + ) dist.eadd_fdb(frontier, FLOAT.MIN, feedback) fs = feedback.count_mf().get() - return dist \ No newline at end of file + return dist diff --git a/python/algorithms/tc_spla.py b/python/algorithms/tc_spla.py index 55fbb042b..5dfdbc43b 100644 --- a/python/algorithms/tc_spla.py +++ b/python/algorithms/tc_spla.py @@ -1,6 +1,33 @@ from pyspla import INT, Matrix, Scalar -def tc_spla(A: Matrix): + +def _strict_lower(A: Matrix) -> Matrix: + i, j, _ = A.to_lists() + edges = sorted({(a, b) if a > b else (b, a) for a, b in zip(i, j) if a != b}) + li = [a for a, b in edges] + lj = [b for a, b in edges] + return Matrix.from_lists(li, lj, [1] * len(li), shape=A.shape, dtype=INT) + + +def tc_sandia(A: Matrix) -> int: + L = _strict_lower(A) + zero = Scalar(INT, 0) + C = L.mxmT( + L, + L.transpose(), + op_mult=INT.MULT, + op_add=INT.PLUS, + op_select=INT.GTZERO, + init=zero, + ) + return C.reduce(op_reduce=INT.PLUS, init=zero).get() + + +def tc_spla(A: Matrix) -> int: + return tc_sandia(A) + + +def tc_spla_mxmT(A: Matrix) -> int: zero = Scalar(INT, 0) B = A.mxmT(A, A, op_mult=INT.MULT, op_add=INT.PLUS, op_select=INT.GTZERO, init=zero) - return B.reduce(op_reduce=INT.PLUS, init=zero).get() \ No newline at end of file + return B.reduce(op_reduce=INT.PLUS, init=zero).get() diff --git a/python/algorithms/test_compare.py b/python/algorithms/test_compare.py index 9f8d6ff81..743513bd3 100644 --- a/python/algorithms/test_compare.py +++ b/python/algorithms/test_compare.py @@ -10,21 +10,27 @@ sys.path.insert(0, str(Path(__file__).parent)) -from pyspla import FLOAT, INT -from graph_spla import read_spla, read_mtx_pr_spla -from bfs_spla import bfs_spla +try: + import networkx as nx + + HAS_NETWORKX = True +except ImportError: + HAS_NETWORKX = False + from bfs_classic import bfs_naive as bfs_classic -from sssp_spla import sssp_spla -from pr_spla import pr_spla +from bfs_spla import bfs_spla +from graph_spla import read_mtx_pr_spla, read_spla from pr_classic import pagerank_naive as pr_classic -from tc_spla import tc_spla +from pr_spla import pr_spla +from pyspla import FLOAT, INT +from sssp_spla import sssp_spla from tc_classic import tc_naive as tc_classic +from tc_spla import tc_sandia, tc_spla, tc_spla_mxmT - -DATA = Path(__file__).parent.parent.parent / "bench" / "dataset" -UNDIRECTED_GRAPH = DATA / "belgium_osm.mtx" -DIRECTED_GRAPH = DATA / "amazon-2008.mtx" -UPPER = DATA / "upper" / "belgium_osm.mtx" +DATA = Path(__file__).parent / "data" +UNDIRECTED_GRAPH = DATA / "undirected.mtx" +DIRECTED_GRAPH = DATA / "directed.mtx" +UPPER = DATA / "undirected_upper.mtx" def split(A): @@ -152,8 +158,9 @@ def test_directed(self): class TestTc(unittest.TestCase): - def test_upper(self): - A = read_spla(str(UPPER), INT) + def _check(self, algo): + # triangle counting is unweighted: read with unit weights + A = read_spla(str(UPPER), INT, unit_weights=True) n, pairs, _ = split(A) adj = [[] for _ in range(n)] @@ -162,10 +169,32 @@ def test_upper(self): adj[v].append(u) ref = tc_classic(adj, n) - got = tc_spla(A) + got = algo(A) self.assertEqual(ref, got) + def test_sandia(self): + self._check(tc_sandia) + + def test_default(self): + self._check(tc_spla) + + def test_mxmT(self): + self._check(tc_spla_mxmT) + + @unittest.skipUnless(HAS_NETWORKX, "networkx is not installed") + def test_networkx(self): + A = read_spla(str(UPPER), INT, unit_weights=True) + n, pairs, _ = split(A) + + G = nx.Graph() + G.add_nodes_from(range(n)) + G.add_edges_from(pairs) + ref = sum(nx.triangles(G).values()) // 3 + + self.assertEqual(tc_sandia(A), ref) + self.assertEqual(tc_spla_mxmT(A), ref) + if __name__ == "__main__": - unittest.main(verbosity=2) \ No newline at end of file + unittest.main(verbosity=2) From c4ce1e2ba387eb4aaa523ddb00f6b5441d6a2ab5 Mon Sep 17 00:00:00 2001 From: Vladimir Kutuev Date: Sat, 28 Nov 2026 02:51:59 +0300 Subject: [PATCH 07/14] build(python): migrate packaging to pyproject.toml and uv Replace the legacy setup.py/MANIFEST.in with a PEP 621 pyproject.toml (setuptools backend) and manage the dev environment with uv: - version/readme now come from VERSION.md/README.md via [tool.setuptools.dynamic] - dev tools (pytest, scipy, networkx, ruff) declared as a PEP 735 dependency group, locked in uv.lock - gitignore .venv/ and staged native libraries (build artifacts that get packaged into wheels) - document the uv-based dev workflow in python/README.md --- .gitignore | 14 +- python/MANIFEST.in | 5 - python/README.md | 27 ++ python/pyproject.toml | 70 ++++ python/setup.py | 79 ---- python/uv.lock | 867 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 977 insertions(+), 85 deletions(-) delete mode 100644 python/MANIFEST.in create mode 100644 python/pyproject.toml delete mode 100644 python/setup.py create mode 100644 python/uv.lock diff --git a/.gitignore b/.gitignore index c31786a58..066691158 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,16 @@ dataset* registry.txt # Python cache files -/**/__pycache__ \ No newline at end of file +/**/__pycache__ + +# Python virtual environments (uv) +.venv/ + +# Staged native libraries (build artifacts packaged into wheels) +python/pyspla/libspla_* +python/pyspla/spla_* +# Python packaging artifacts +*.egg-info/ + +# Local wheel build output (uv build) +python/build/ diff --git a/python/MANIFEST.in b/python/MANIFEST.in deleted file mode 100644 index e1d94addc..000000000 --- a/python/MANIFEST.in +++ /dev/null @@ -1,5 +0,0 @@ -include LICENSE.md -include VERSION.md -include MANIFEST.in -include setup.py -include example.py diff --git a/python/README.md b/python/README.md index 113db37c0..706673096 100644 --- a/python/README.md +++ b/python/README.md @@ -50,6 +50,33 @@ Delete package if no more required: $ pip uninstall pyspla ``` +## Development + +The Python tooling is managed with [uv](https://docs.astral.sh/uv/). + +```shell +# from the repository root: build the native library (CPU-only config) +cmake . -G Ninja -B build -DCMAKE_BUILD_TYPE=Release -DSPLA_BUILD_OPENCL=OFF +cmake --build build + +# stage the library into the package +cp build/libspla_x64.so python/pyspla/ + +# from python/: create and sync the dev environment (installs pyspla + dev tools) +cd python +uv sync + +# lint and format check +uv run ruff check . +uv run ruff format --check . + +# run the test suite +uv run pytest tests/ -v + +# build sdist + wheel (bundles the staged library) +uv build +``` + ## Contributors - Egor Orachyov (Github: [@EgorOrachyov](https://github.com/EgorOrachyov)) diff --git a/python/pyproject.toml b/python/pyproject.toml new file mode 100644 index 000000000..9a335ed67 --- /dev/null +++ b/python/pyproject.toml @@ -0,0 +1,70 @@ +[build-system] +requires = ["setuptools>=64"] +build-backend = "setuptools.build_meta" + +[project] +name = "pyspla" +description = "spla library python bindings" +dynamic = ["version", "readme"] +authors = [ + { name = "Egor Orachev", email = "egororachyov@gmail.com" }, +] +license = { text = "MIT" } +requires-python = ">=3.9" +keywords = [ + "python", + "cplusplus", + "generalized", + "sparse-matrix", + "linear-algebra", + "graph-analysis", + "graph-algorithms", + "graphblas", + "opencl", + "gpu", +] +classifiers = [ + "Development Status :: 1 - Planning", + "Programming Language :: Python :: 3", + "Programming Language :: C++", + "License :: OSI Approved :: MIT License", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX :: Linux", + "Operating System :: MacOS", + "Environment :: GPU", + "Environment :: Console", + "Intended Audience :: Developers", + "Intended Audience :: End Users/Desktop", + "Intended Audience :: Information Technology", + "Natural Language :: English", + "Topic :: Scientific/Engineering", + "Topic :: Scientific/Engineering :: Mathematics", + "Topic :: Scientific/Engineering :: Information Analysis", + "Topic :: Scientific/Engineering :: Bio-Informatics", +] + +[project.urls] +Homepage = "https://github.com/SparseLinearAlgebra/spla" +"Spla project" = "https://github.com/SparseLinearAlgebra/spla" +"Bug Tracker" = "https://github.com/SparseLinearAlgebra/spla/issues" + +[tool.setuptools] +license-files = ["LICENSE.md"] + +[tool.setuptools.dynamic] +version = { file = "VERSION.md" } +readme = { file = "README.md", content-type = "text/markdown" } + +[tool.setuptools.packages.find] +include = ["pyspla*"] + +[tool.setuptools.package-data] +pyspla = ["libspla_x64.so", "libspla_arm64.dylib", "spla_x64.dll"] + +[dependency-groups] +dev = [ + "pytest>=8.0", + "scipy>=1.10", + "networkx>=3.0", + "ruff>=0.5", +] diff --git a/python/setup.py b/python/setup.py deleted file mode 100644 index 695e42f8a..000000000 --- a/python/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -import setuptools -import pathlib -import os - -ROOT = pathlib.Path(__file__).parent -README = ROOT / "README.md" -VERSION = ROOT / "VERSION.md" - - -def get_readme(): - with open(README, "r") as f: - return f.read() - - -def get_version(): - with open(VERSION, "r") as f: - return f.read().replace("\n", "") - - -def get_lib_names(): - return ["spla_x64.dll", - "libspla_x64.so", - "libspla_x64.dylib", - "libspla_arm64.dylib"] - - -setuptools.setup( - name="pyspla", - version=get_version(), - author="Egor Orachev", - author_email="egororachyov@gmail.com", - license="MIT", - description="spla library python bindings", - long_description=get_readme(), - long_description_content_type="text/markdown", - url="https://github.com/SparseLinearAlgebra/spla", - project_urls={ - "Spla project": "https://github.com/SparseLinearAlgebra/spla", - "Bug Tracker": "https://github.com/SparseLinearAlgebra/spla/issues" - }, - classifiers=[ - "Development Status :: 1 - Planning", - "Programming Language :: Python :: 3", - "Programming Language :: C++", - "License :: OSI Approved :: MIT License", - "Operating System :: Microsoft :: Windows", - "Operating System :: POSIX :: Linux", - "Operating System :: MacOS", - "Environment :: GPU", - "Environment :: Console", - "Intended Audience :: Developers", - "Intended Audience :: End Users/Desktop", - "Intended Audience :: Information Technology", - "Intended Audience :: Science/Research", - "Natural Language :: English", - "Topic :: Scientific/Engineering", - "Topic :: Scientific/Engineering :: Mathematics", - "Topic :: Scientific/Engineering :: Information Analysis", - "Topic :: Scientific/Engineering :: Bio-Informatics" - ], - keywords=[ - "python", - "cplusplus", - "generalized", - "sparse-matrix", - "linear-algebra", - "graph-analysis", - "graph-algorithms", - "graphblas", - "nvidia-cuda", - "opencl", - "gpu" - ], - packages=["pyspla"], - package_dir={'': '.'}, - package_data={'': get_lib_names()}, - python_requires=">=3.0", - include_package_data=True -) diff --git a/python/uv.lock b/python/uv.lock new file mode 100644 index 000000000..5e3307e0c --- /dev/null +++ b/python/uv.lock @@ -0,0 +1,867 @@ +version = 1 +revision = 5 +requires-python = ">=3.9" +resolution-markers = [ + "python_full_version >= '3.12'", + "python_full_version == '3.11.*'", + "python_full_version == '3.10.*'", + "python_full_version < '3.10'", +] + +[[package]] +name = "colorama" +version = "0.4.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, +] + +[[package]] +name = "exceptiongroup" +version = "1.3.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/85/ac/f882fe3234606340c8729372da0fb98c634b97a560c9d375d9afea21496b/exceptiongroup-1.3.2.tar.gz", hash = "sha256:ca82e69f0cb535fbde934885744b67669a3efddd50fe7bc00d3398839fcaddec", size = 34687, upload-time = "2026-11-19T22:10:16.815Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a0/7d/0fb19ccdf794c448141461180d5992c50402f69f8515a801bfac7ad65f45/exceptiongroup-1.3.2-py3-none-any.whl", hash = "sha256:41c6a70dfec22050d3d8b43386b059a4dc0bca3f3d40a40971cb206fff1785af", size = 16854, upload-time = "2026-11-19T22:10:15.746Z" }, +] + +[[package]] +name = "iniconfig" +version = "2.1.0" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.10'", +] +sdist = { url = "https://files.pythonhosted.org/packages/f2/97/ebf4da567aa6827c909642694d71c9fcf53e5b504f2d96afea02718862f3/iniconfig-2.1.0.tar.gz", hash = "sha256:3abbd2e30b36733fee78f9c7f7308f2d0050e88f0087fd25c2645f63c773e1c7", size = 4793, upload-time = "2025-03-19T20:09:59.721Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2c/e1/e6716421ea10d38022b952c159d5161ca1193197fb744506875fbb87ea7b/iniconfig-2.1.0-py3-none-any.whl", hash = "sha256:9deba5723312380e77435581c6bf4935c94cbfab9b1ed33ef8d238ea168eb760", size = 6050, upload-time = "2025-03-19T20:10:01.071Z" }, +] + +[[package]] +name = "iniconfig" +version = "2.3.1" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.12'", + "python_full_version == '3.11.*'", + "python_full_version == '3.10.*'", +] +sdist = { url = "https://files.pythonhosted.org/packages/01/e1/2069291243c926a2ff1cd706c7f3eeb9b62144bf60f77c9fb9ff2fb26bd3/iniconfig-2.3.1.tar.gz", hash = "sha256:67f4b9c50da0dedf52af349e7749a80a9057a5031199791b906c3bb3ae878960", size = 21209, upload-time = "2026-10-06T22:48:38.076Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/56/43/4ca9e49d27a1fcf6bece6f6aec0ea46bb9112489b93d4b688fb415457bdb/iniconfig-2.3.1-py3-none-any.whl", hash = "sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7", size = 7552, upload-time = "2026-10-06T22:48:36.959Z" }, +] + +[[package]] +name = "networkx" +version = "3.2.1" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.10'", +] +sdist = { url = "https://files.pythonhosted.org/packages/c4/80/a84676339aaae2f1cfdf9f418701dd634aef9cc76f708ef55c36ff39c3ca/networkx-3.2.1.tar.gz", hash = "sha256:9f1bb5cf3409bf324e0a722c20bdb4c20ee39bf1c30ce8ae499c8502b0b5e0c6", size = 2073928, upload-time = "2023-10-28T08:41:39.364Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d5/f0/8fbc882ca80cf077f1b246c0e3c3465f7f415439bdea6b899f6b19f61f70/networkx-3.2.1-py3-none-any.whl", hash = "sha256:f18c69adc97877c42332c170849c96cefa91881c99a7cb3e95b7c659ebdc1ec2", size = 1647772, upload-time = "2023-10-28T08:41:36.945Z" }, +] + +[[package]] +name = "networkx" +version = "3.4.2" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version == '3.10.*'", +] +sdist = { url = "https://files.pythonhosted.org/packages/fd/1d/06475e1cd5264c0b870ea2cc6fdb3e37177c1e565c43f56ff17a10e3937f/networkx-3.4.2.tar.gz", hash = "sha256:307c3669428c5362aab27c8a1260aa8f47c4e91d3891f48be0141738d8d053e1", size = 2151368, upload-time = "2024-10-21T12:39:38.695Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b9/54/dd730b32ea14ea797530a4479b2ed46a6fb250f682a9cfb997e968bf0261/networkx-3.4.2-py3-none-any.whl", hash = "sha256:df5d4365b724cf81b8c6a7312509d0c22386097011ad1abe274afd5e9d3bbc5f", size = 1723263, upload-time = "2024-10-21T12:39:36.247Z" }, +] + +[[package]] +name = "networkx" +version = "3.6.1" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version == '3.11.*'", +] +sdist = { url = "https://files.pythonhosted.org/packages/6a/51/63fe664f3908c97be9d2e4f1158eb633317598cfa6e1fc14af5383f17512/networkx-3.6.1.tar.gz", hash = "sha256:26b7c357accc0c8cde558ad486283728b65b6a95d85ee1cd66bafab4c8168509", size = 2517025, upload-time = "2025-12-08T17:02:39.908Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9e/c9/b2622292ea83fbb4ec318f5b9ab867d0a28ab43c5717bb85b0a5f6b3b0a4/networkx-3.6.1-py3-none-any.whl", hash = "sha256:d47fbf302e7d9cbbb9e2555a0d267983d2aa476bac30e90dfbe5669bd57f3762", size = 2068504, upload-time = "2025-12-08T17:02:38.159Z" }, +] + +[[package]] +name = "networkx" +version = "3.7" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.12'", +] +sdist = { url = "https://files.pythonhosted.org/packages/dc/76/3af777226b63a5e64a6b36b1ec5855c14e2b94a37096d4760e595fc43511/networkx-3.7.tar.gz", hash = "sha256:fd77a511bd90f39f3d016351345b52cf5319b813bdca01de3f755d3cca62e96a", size = 1866482, upload-time = "2026-09-21T16:45:16.974Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7e/cd/fe58041e9011f307c490e3e17dd48cc516448f7c698a3f2d9d9d65d7e6a8/networkx-3.7-py3-none-any.whl", hash = "sha256:e3fd2c13a7814cee3746340d8d7f8598a67f16a58bf47fb7f8793fab6efca1b0", size = 2142205, upload-time = "2026-09-21T16:45:14.609Z" }, +] + +[[package]] +name = "numpy" +version = "2.0.2" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.10'", +] +sdist = { url = "https://files.pythonhosted.org/packages/a9/75/10dd1f8116a8b796cb2c737b674e02d02e80454bda953fa7e65d8c12b016/numpy-2.0.2.tar.gz", hash = "sha256:883c987dee1880e2a864ab0dc9892292582510604156762362d9326444636e78", size = 18902015, upload-time = "2024-08-26T20:19:40.945Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/21/91/3495b3237510f79f5d81f2508f9f13fea78ebfdf07538fc7444badda173d/numpy-2.0.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:51129a29dbe56f9ca83438b706e2e69a39892b5eda6cedcb6b0c9fdc9b0d3ece", size = 21165245, upload-time = "2024-08-26T20:04:14.625Z" }, + { url = "https://files.pythonhosted.org/packages/05/33/26178c7d437a87082d11019292dce6d3fe6f0e9026b7b2309cbf3e489b1d/numpy-2.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:f15975dfec0cf2239224d80e32c3170b1d168335eaedee69da84fbe9f1f9cd04", size = 13738540, upload-time = "2024-08-26T20:04:36.784Z" }, + { url = "https://files.pythonhosted.org/packages/ec/31/cc46e13bf07644efc7a4bf68df2df5fb2a1a88d0cd0da9ddc84dc0033e51/numpy-2.0.2-cp310-cp310-macosx_14_0_arm64.whl", hash = "sha256:8c5713284ce4e282544c68d1c3b2c7161d38c256d2eefc93c1d683cf47683e66", size = 5300623, upload-time = "2024-08-26T20:04:46.491Z" }, + { url = "https://files.pythonhosted.org/packages/6e/16/7bfcebf27bb4f9d7ec67332ffebee4d1bf085c84246552d52dbb548600e7/numpy-2.0.2-cp310-cp310-macosx_14_0_x86_64.whl", hash = "sha256:becfae3ddd30736fe1889a37f1f580e245ba79a5855bff5f2a29cb3ccc22dd7b", size = 6901774, upload-time = "2024-08-26T20:04:58.173Z" }, + { url = "https://files.pythonhosted.org/packages/f9/a3/561c531c0e8bf082c5bef509d00d56f82e0ea7e1e3e3a7fc8fa78742a6e5/numpy-2.0.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2da5960c3cf0df7eafefd806d4e612c5e19358de82cb3c343631188991566ccd", size = 13907081, upload-time = "2024-08-26T20:05:19.098Z" }, + { url = "https://files.pythonhosted.org/packages/fa/66/f7177ab331876200ac7563a580140643d1179c8b4b6a6b0fc9838de2a9b8/numpy-2.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:496f71341824ed9f3d2fd36cf3ac57ae2e0165c143b55c3a035ee219413f3318", size = 19523451, upload-time = "2024-08-26T20:05:47.479Z" }, + { url = "https://files.pythonhosted.org/packages/25/7f/0b209498009ad6453e4efc2c65bcdf0ae08a182b2b7877d7ab38a92dc542/numpy-2.0.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:a61ec659f68ae254e4d237816e33171497e978140353c0c2038d46e63282d0c8", size = 19927572, upload-time = "2024-08-26T20:06:17.137Z" }, + { url = "https://files.pythonhosted.org/packages/3e/df/2619393b1e1b565cd2d4c4403bdd979621e2c4dea1f8532754b2598ed63b/numpy-2.0.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:d731a1c6116ba289c1e9ee714b08a8ff882944d4ad631fd411106a30f083c326", size = 14400722, upload-time = "2024-08-26T20:06:39.16Z" }, + { url = "https://files.pythonhosted.org/packages/22/ad/77e921b9f256d5da36424ffb711ae79ca3f451ff8489eeca544d0701d74a/numpy-2.0.2-cp310-cp310-win32.whl", hash = "sha256:984d96121c9f9616cd33fbd0618b7f08e0cfc9600a7ee1d6fd9b239186d19d97", size = 6472170, upload-time = "2024-08-26T20:06:50.361Z" }, + { url = "https://files.pythonhosted.org/packages/10/05/3442317535028bc29cf0c0dd4c191a4481e8376e9f0db6bcf29703cadae6/numpy-2.0.2-cp310-cp310-win_amd64.whl", hash = "sha256:c7b0be4ef08607dd04da4092faee0b86607f111d5ae68036f16cc787e250a131", size = 15905558, upload-time = "2024-08-26T20:07:13.881Z" }, + { url = "https://files.pythonhosted.org/packages/8b/cf/034500fb83041aa0286e0fb16e7c76e5c8b67c0711bb6e9e9737a717d5fe/numpy-2.0.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:49ca4decb342d66018b01932139c0961a8f9ddc7589611158cb3c27cbcf76448", size = 21169137, upload-time = "2024-08-26T20:07:45.345Z" }, + { url = "https://files.pythonhosted.org/packages/4a/d9/32de45561811a4b87fbdee23b5797394e3d1504b4a7cf40c10199848893e/numpy-2.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:11a76c372d1d37437857280aa142086476136a8c0f373b2e648ab2c8f18fb195", size = 13703552, upload-time = "2024-08-26T20:08:06.666Z" }, + { url = "https://files.pythonhosted.org/packages/c1/ca/2f384720020c7b244d22508cb7ab23d95f179fcfff33c31a6eeba8d6c512/numpy-2.0.2-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:807ec44583fd708a21d4a11d94aedf2f4f3c3719035c76a2bbe1fe8e217bdc57", size = 5298957, upload-time = "2024-08-26T20:08:15.83Z" }, + { url = "https://files.pythonhosted.org/packages/0e/78/a3e4f9fb6aa4e6fdca0c5428e8ba039408514388cf62d89651aade838269/numpy-2.0.2-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:8cafab480740e22f8d833acefed5cc87ce276f4ece12fdaa2e8903db2f82897a", size = 6905573, upload-time = "2024-08-26T20:08:27.185Z" }, + { url = "https://files.pythonhosted.org/packages/a0/72/cfc3a1beb2caf4efc9d0b38a15fe34025230da27e1c08cc2eb9bfb1c7231/numpy-2.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a15f476a45e6e5a3a79d8a14e62161d27ad897381fecfa4a09ed5322f2085669", size = 13914330, upload-time = "2024-08-26T20:08:48.058Z" }, + { url = "https://files.pythonhosted.org/packages/ba/a8/c17acf65a931ce551fee11b72e8de63bf7e8a6f0e21add4c937c83563538/numpy-2.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:13e689d772146140a252c3a28501da66dfecd77490b498b168b501835041f951", size = 19534895, upload-time = "2024-08-26T20:09:16.536Z" }, + { url = "https://files.pythonhosted.org/packages/ba/86/8767f3d54f6ae0165749f84648da9dcc8cd78ab65d415494962c86fac80f/numpy-2.0.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:9ea91dfb7c3d1c56a0e55657c0afb38cf1eeae4544c208dc465c3c9f3a7c09f9", size = 19937253, upload-time = "2024-08-26T20:09:46.263Z" }, + { url = "https://files.pythonhosted.org/packages/df/87/f76450e6e1c14e5bb1eae6836478b1028e096fd02e85c1c37674606ab752/numpy-2.0.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:c1c9307701fec8f3f7a1e6711f9089c06e6284b3afbbcd259f7791282d660a15", size = 14414074, upload-time = "2024-08-26T20:10:08.483Z" }, + { url = "https://files.pythonhosted.org/packages/5c/ca/0f0f328e1e59f73754f06e1adfb909de43726d4f24c6a3f8805f34f2b0fa/numpy-2.0.2-cp311-cp311-win32.whl", hash = "sha256:a392a68bd329eafac5817e5aefeb39038c48b671afd242710b451e76090e81f4", size = 6470640, upload-time = "2024-08-26T20:10:19.732Z" }, + { url = "https://files.pythonhosted.org/packages/eb/57/3a3f14d3a759dcf9bf6e9eda905794726b758819df4663f217d658a58695/numpy-2.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:286cd40ce2b7d652a6f22efdfc6d1edf879440e53e76a75955bc0c826c7e64dc", size = 15910230, upload-time = "2024-08-26T20:10:43.413Z" }, + { url = "https://files.pythonhosted.org/packages/45/40/2e117be60ec50d98fa08c2f8c48e09b3edea93cfcabd5a9ff6925d54b1c2/numpy-2.0.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:df55d490dea7934f330006d0f81e8551ba6010a5bf035a249ef61a94f21c500b", size = 20895803, upload-time = "2024-08-26T20:11:13.916Z" }, + { url = "https://files.pythonhosted.org/packages/46/92/1b8b8dee833f53cef3e0a3f69b2374467789e0bb7399689582314df02651/numpy-2.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8df823f570d9adf0978347d1f926b2a867d5608f434a7cff7f7908c6570dcf5e", size = 13471835, upload-time = "2024-08-26T20:11:34.779Z" }, + { url = "https://files.pythonhosted.org/packages/7f/19/e2793bde475f1edaea6945be141aef6c8b4c669b90c90a300a8954d08f0a/numpy-2.0.2-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:9a92ae5c14811e390f3767053ff54eaee3bf84576d99a2456391401323f4ec2c", size = 5038499, upload-time = "2024-08-26T20:11:43.902Z" }, + { url = "https://files.pythonhosted.org/packages/e3/ff/ddf6dac2ff0dd50a7327bcdba45cb0264d0e96bb44d33324853f781a8f3c/numpy-2.0.2-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:a842d573724391493a97a62ebbb8e731f8a5dcc5d285dfc99141ca15a3302d0c", size = 6633497, upload-time = "2024-08-26T20:11:55.09Z" }, + { url = "https://files.pythonhosted.org/packages/72/21/67f36eac8e2d2cd652a2e69595a54128297cdcb1ff3931cfc87838874bd4/numpy-2.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c05e238064fc0610c840d1cf6a13bf63d7e391717d247f1bf0318172e759e692", size = 13621158, upload-time = "2024-08-26T20:12:14.95Z" }, + { url = "https://files.pythonhosted.org/packages/39/68/e9f1126d757653496dbc096cb429014347a36b228f5a991dae2c6b6cfd40/numpy-2.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0123ffdaa88fa4ab64835dcbde75dcdf89c453c922f18dced6e27c90d1d0ec5a", size = 19236173, upload-time = "2024-08-26T20:12:44.049Z" }, + { url = "https://files.pythonhosted.org/packages/d1/e9/1f5333281e4ebf483ba1c888b1d61ba7e78d7e910fdd8e6499667041cc35/numpy-2.0.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:96a55f64139912d61de9137f11bf39a55ec8faec288c75a54f93dfd39f7eb40c", size = 19634174, upload-time = "2024-08-26T20:13:13.634Z" }, + { url = "https://files.pythonhosted.org/packages/71/af/a469674070c8d8408384e3012e064299f7a2de540738a8e414dcfd639996/numpy-2.0.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:ec9852fb39354b5a45a80bdab5ac02dd02b15f44b3804e9f00c556bf24b4bded", size = 14099701, upload-time = "2024-08-26T20:13:34.851Z" }, + { url = "https://files.pythonhosted.org/packages/d0/3d/08ea9f239d0e0e939b6ca52ad403c84a2bce1bde301a8eb4888c1c1543f1/numpy-2.0.2-cp312-cp312-win32.whl", hash = "sha256:671bec6496f83202ed2d3c8fdc486a8fc86942f2e69ff0e986140339a63bcbe5", size = 6174313, upload-time = "2024-08-26T20:13:45.653Z" }, + { url = "https://files.pythonhosted.org/packages/b2/b5/4ac39baebf1fdb2e72585c8352c56d063b6126be9fc95bd2bb5ef5770c20/numpy-2.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:cfd41e13fdc257aa5778496b8caa5e856dc4896d4ccf01841daee1d96465467a", size = 15606179, upload-time = "2024-08-26T20:14:08.786Z" }, + { url = "https://files.pythonhosted.org/packages/43/c1/41c8f6df3162b0c6ffd4437d729115704bd43363de0090c7f913cfbc2d89/numpy-2.0.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:9059e10581ce4093f735ed23f3b9d283b9d517ff46009ddd485f1747eb22653c", size = 21169942, upload-time = "2024-08-26T20:14:40.108Z" }, + { url = "https://files.pythonhosted.org/packages/39/bc/fd298f308dcd232b56a4031fd6ddf11c43f9917fbc937e53762f7b5a3bb1/numpy-2.0.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:423e89b23490805d2a5a96fe40ec507407b8ee786d66f7328be214f9679df6dd", size = 13711512, upload-time = "2024-08-26T20:15:00.985Z" }, + { url = "https://files.pythonhosted.org/packages/96/ff/06d1aa3eeb1c614eda245c1ba4fb88c483bee6520d361641331872ac4b82/numpy-2.0.2-cp39-cp39-macosx_14_0_arm64.whl", hash = "sha256:2b2955fa6f11907cf7a70dab0d0755159bca87755e831e47932367fc8f2f2d0b", size = 5306976, upload-time = "2024-08-26T20:15:10.876Z" }, + { url = "https://files.pythonhosted.org/packages/2d/98/121996dcfb10a6087a05e54453e28e58694a7db62c5a5a29cee14c6e047b/numpy-2.0.2-cp39-cp39-macosx_14_0_x86_64.whl", hash = "sha256:97032a27bd9d8988b9a97a8c4d2c9f2c15a81f61e2f21404d7e8ef00cb5be729", size = 6906494, upload-time = "2024-08-26T20:15:22.055Z" }, + { url = "https://files.pythonhosted.org/packages/15/31/9dffc70da6b9bbf7968f6551967fc21156207366272c2a40b4ed6008dc9b/numpy-2.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1e795a8be3ddbac43274f18588329c72939870a16cae810c2b73461c40718ab1", size = 13912596, upload-time = "2024-08-26T20:15:42.452Z" }, + { url = "https://files.pythonhosted.org/packages/b9/14/78635daab4b07c0930c919d451b8bf8c164774e6a3413aed04a6d95758ce/numpy-2.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f26b258c385842546006213344c50655ff1555a9338e2e5e02a0756dc3e803dd", size = 19526099, upload-time = "2024-08-26T20:16:11.048Z" }, + { url = "https://files.pythonhosted.org/packages/26/4c/0eeca4614003077f68bfe7aac8b7496f04221865b3a5e7cb230c9d055afd/numpy-2.0.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:5fec9451a7789926bcf7c2b8d187292c9f93ea30284802a0ab3f5be8ab36865d", size = 19932823, upload-time = "2024-08-26T20:16:40.171Z" }, + { url = "https://files.pythonhosted.org/packages/f1/46/ea25b98b13dccaebddf1a803f8c748680d972e00507cd9bc6dcdb5aa2ac1/numpy-2.0.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:9189427407d88ff25ecf8f12469d4d39d35bee1db5d39fc5c168c6f088a6956d", size = 14404424, upload-time = "2024-08-26T20:17:02.604Z" }, + { url = "https://files.pythonhosted.org/packages/c8/a6/177dd88d95ecf07e722d21008b1b40e681a929eb9e329684d449c36586b2/numpy-2.0.2-cp39-cp39-win32.whl", hash = "sha256:905d16e0c60200656500c95b6b8dca5d109e23cb24abc701d41c02d74c6b3afa", size = 6476809, upload-time = "2024-08-26T20:17:13.553Z" }, + { url = "https://files.pythonhosted.org/packages/ea/2b/7fc9f4e7ae5b507c1a3a21f0f15ed03e794c1242ea8a242ac158beb56034/numpy-2.0.2-cp39-cp39-win_amd64.whl", hash = "sha256:a3f4ab0caa7f053f6797fcd4e1e25caee367db3112ef2b6ef82d749530768c73", size = 15911314, upload-time = "2024-08-26T20:17:36.72Z" }, + { url = "https://files.pythonhosted.org/packages/8f/3b/df5a870ac6a3be3a86856ce195ef42eec7ae50d2a202be1f5a4b3b340e14/numpy-2.0.2-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:7f0a0c6f12e07fa94133c8a67404322845220c06a9e80e85999afe727f7438b8", size = 21025288, upload-time = "2024-08-26T20:18:07.732Z" }, + { url = "https://files.pythonhosted.org/packages/2c/97/51af92f18d6f6f2d9ad8b482a99fb74e142d71372da5d834b3a2747a446e/numpy-2.0.2-pp39-pypy39_pp73-macosx_14_0_x86_64.whl", hash = "sha256:312950fdd060354350ed123c0e25a71327d3711584beaef30cdaa93320c392d4", size = 6762793, upload-time = "2024-08-26T20:18:19.125Z" }, + { url = "https://files.pythonhosted.org/packages/12/46/de1fbd0c1b5ccaa7f9a005b66761533e2f6a3e560096682683a223631fe9/numpy-2.0.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:26df23238872200f63518dd2aa984cfca675d82469535dc7162dc2ee52d9dd5c", size = 19334885, upload-time = "2024-08-26T20:18:47.237Z" }, + { url = "https://files.pythonhosted.org/packages/cc/dc/d330a6faefd92b446ec0f0dfea4c3207bb1fef3c4771d19cf4543efd2c78/numpy-2.0.2-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:a46288ec55ebbd58947d31d72be2c63cbf839f0a63b49cb755022310792a3385", size = 15828784, upload-time = "2024-08-26T20:19:11.19Z" }, +] + +[[package]] +name = "numpy" +version = "2.2.6" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version == '3.10.*'", +] +sdist = { url = "https://files.pythonhosted.org/packages/76/21/7d2a95e4bba9dc13d043ee156a356c0a8f0c6309dff6b21b4d71a073b8a8/numpy-2.2.6.tar.gz", hash = "sha256:e29554e2bef54a90aa5cc07da6ce955accb83f21ab5de01a62c8478897b264fd", size = 20276440, upload-time = "2025-05-17T22:38:04.611Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9a/3e/ed6db5be21ce87955c0cbd3009f2803f59fa08df21b5df06862e2d8e2bdd/numpy-2.2.6-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:b412caa66f72040e6d268491a59f2c43bf03eb6c96dd8f0307829feb7fa2b6fb", size = 21165245, upload-time = "2025-05-17T21:27:58.555Z" }, + { url = "https://files.pythonhosted.org/packages/22/c2/4b9221495b2a132cc9d2eb862e21d42a009f5a60e45fc44b00118c174bff/numpy-2.2.6-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:8e41fd67c52b86603a91c1a505ebaef50b3314de0213461c7a6e99c9a3beff90", size = 14360048, upload-time = "2025-05-17T21:28:21.406Z" }, + { url = "https://files.pythonhosted.org/packages/fd/77/dc2fcfc66943c6410e2bf598062f5959372735ffda175b39906d54f02349/numpy-2.2.6-cp310-cp310-macosx_14_0_arm64.whl", hash = "sha256:37e990a01ae6ec7fe7fa1c26c55ecb672dd98b19c3d0e1d1f326fa13cb38d163", size = 5340542, upload-time = "2025-05-17T21:28:30.931Z" }, + { url = "https://files.pythonhosted.org/packages/7a/4f/1cb5fdc353a5f5cc7feb692db9b8ec2c3d6405453f982435efc52561df58/numpy-2.2.6-cp310-cp310-macosx_14_0_x86_64.whl", hash = "sha256:5a6429d4be8ca66d889b7cf70f536a397dc45ba6faeb5f8c5427935d9592e9cf", size = 6878301, upload-time = "2025-05-17T21:28:41.613Z" }, + { url = "https://files.pythonhosted.org/packages/eb/17/96a3acd228cec142fcb8723bd3cc39c2a474f7dcf0a5d16731980bcafa95/numpy-2.2.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:efd28d4e9cd7d7a8d39074a4d44c63eda73401580c5c76acda2ce969e0a38e83", size = 14297320, upload-time = "2025-05-17T21:29:02.78Z" }, + { url = "https://files.pythonhosted.org/packages/b4/63/3de6a34ad7ad6646ac7d2f55ebc6ad439dbbf9c4370017c50cf403fb19b5/numpy-2.2.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fc7b73d02efb0e18c000e9ad8b83480dfcd5dfd11065997ed4c6747470ae8915", size = 16801050, upload-time = "2025-05-17T21:29:27.675Z" }, + { url = "https://files.pythonhosted.org/packages/07/b6/89d837eddef52b3d0cec5c6ba0456c1bf1b9ef6a6672fc2b7873c3ec4e2e/numpy-2.2.6-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:74d4531beb257d2c3f4b261bfb0fc09e0f9ebb8842d82a7b4209415896adc680", size = 15807034, upload-time = "2025-05-17T21:29:51.102Z" }, + { url = "https://files.pythonhosted.org/packages/01/c8/dc6ae86e3c61cfec1f178e5c9f7858584049b6093f843bca541f94120920/numpy-2.2.6-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:8fc377d995680230e83241d8a96def29f204b5782f371c532579b4f20607a289", size = 18614185, upload-time = "2025-05-17T21:30:18.703Z" }, + { url = "https://files.pythonhosted.org/packages/5b/c5/0064b1b7e7c89137b471ccec1fd2282fceaae0ab3a9550f2568782d80357/numpy-2.2.6-cp310-cp310-win32.whl", hash = "sha256:b093dd74e50a8cba3e873868d9e93a85b78e0daf2e98c6797566ad8044e8363d", size = 6527149, upload-time = "2025-05-17T21:30:29.788Z" }, + { url = "https://files.pythonhosted.org/packages/a3/dd/4b822569d6b96c39d1215dbae0582fd99954dcbcf0c1a13c61783feaca3f/numpy-2.2.6-cp310-cp310-win_amd64.whl", hash = "sha256:f0fd6321b839904e15c46e0d257fdd101dd7f530fe03fd6359c1ea63738703f3", size = 12904620, upload-time = "2025-05-17T21:30:48.994Z" }, + { url = "https://files.pythonhosted.org/packages/da/a8/4f83e2aa666a9fbf56d6118faaaf5f1974d456b1823fda0a176eff722839/numpy-2.2.6-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:f9f1adb22318e121c5c69a09142811a201ef17ab257a1e66ca3025065b7f53ae", size = 21176963, upload-time = "2025-05-17T21:31:19.36Z" }, + { url = "https://files.pythonhosted.org/packages/b3/2b/64e1affc7972decb74c9e29e5649fac940514910960ba25cd9af4488b66c/numpy-2.2.6-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:c820a93b0255bc360f53eca31a0e676fd1101f673dda8da93454a12e23fc5f7a", size = 14406743, upload-time = "2025-05-17T21:31:41.087Z" }, + { url = "https://files.pythonhosted.org/packages/4a/9f/0121e375000b5e50ffdd8b25bf78d8e1a5aa4cca3f185d41265198c7b834/numpy-2.2.6-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:3d70692235e759f260c3d837193090014aebdf026dfd167834bcba43e30c2a42", size = 5352616, upload-time = "2025-05-17T21:31:50.072Z" }, + { url = "https://files.pythonhosted.org/packages/31/0d/b48c405c91693635fbe2dcd7bc84a33a602add5f63286e024d3b6741411c/numpy-2.2.6-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:481b49095335f8eed42e39e8041327c05b0f6f4780488f61286ed3c01368d491", size = 6889579, upload-time = "2025-05-17T21:32:01.712Z" }, + { url = "https://files.pythonhosted.org/packages/52/b8/7f0554d49b565d0171eab6e99001846882000883998e7b7d9f0d98b1f934/numpy-2.2.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b64d8d4d17135e00c8e346e0a738deb17e754230d7e0810ac5012750bbd85a5a", size = 14312005, upload-time = "2025-05-17T21:32:23.332Z" }, + { url = "https://files.pythonhosted.org/packages/b3/dd/2238b898e51bd6d389b7389ffb20d7f4c10066d80351187ec8e303a5a475/numpy-2.2.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ba10f8411898fc418a521833e014a77d3ca01c15b0c6cdcce6a0d2897e6dbbdf", size = 16821570, upload-time = "2025-05-17T21:32:47.991Z" }, + { url = "https://files.pythonhosted.org/packages/83/6c/44d0325722cf644f191042bf47eedad61c1e6df2432ed65cbe28509d404e/numpy-2.2.6-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:bd48227a919f1bafbdda0583705e547892342c26fb127219d60a5c36882609d1", size = 15818548, upload-time = "2025-05-17T21:33:11.728Z" }, + { url = "https://files.pythonhosted.org/packages/ae/9d/81e8216030ce66be25279098789b665d49ff19eef08bfa8cb96d4957f422/numpy-2.2.6-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9551a499bf125c1d4f9e250377c1ee2eddd02e01eac6644c080162c0c51778ab", size = 18620521, upload-time = "2025-05-17T21:33:39.139Z" }, + { url = "https://files.pythonhosted.org/packages/6a/fd/e19617b9530b031db51b0926eed5345ce8ddc669bb3bc0044b23e275ebe8/numpy-2.2.6-cp311-cp311-win32.whl", hash = "sha256:0678000bb9ac1475cd454c6b8c799206af8107e310843532b04d49649c717a47", size = 6525866, upload-time = "2025-05-17T21:33:50.273Z" }, + { url = "https://files.pythonhosted.org/packages/31/0a/f354fb7176b81747d870f7991dc763e157a934c717b67b58456bc63da3df/numpy-2.2.6-cp311-cp311-win_amd64.whl", hash = "sha256:e8213002e427c69c45a52bbd94163084025f533a55a59d6f9c5b820774ef3303", size = 12907455, upload-time = "2025-05-17T21:34:09.135Z" }, + { url = "https://files.pythonhosted.org/packages/82/5d/c00588b6cf18e1da539b45d3598d3557084990dcc4331960c15ee776ee41/numpy-2.2.6-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:41c5a21f4a04fa86436124d388f6ed60a9343a6f767fced1a8a71c3fbca038ff", size = 20875348, upload-time = "2025-05-17T21:34:39.648Z" }, + { url = "https://files.pythonhosted.org/packages/66/ee/560deadcdde6c2f90200450d5938f63a34b37e27ebff162810f716f6a230/numpy-2.2.6-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:de749064336d37e340f640b05f24e9e3dd678c57318c7289d222a8a2f543e90c", size = 14119362, upload-time = "2025-05-17T21:35:01.241Z" }, + { url = "https://files.pythonhosted.org/packages/3c/65/4baa99f1c53b30adf0acd9a5519078871ddde8d2339dc5a7fde80d9d87da/numpy-2.2.6-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:894b3a42502226a1cac872f840030665f33326fc3dac8e57c607905773cdcde3", size = 5084103, upload-time = "2025-05-17T21:35:10.622Z" }, + { url = "https://files.pythonhosted.org/packages/cc/89/e5a34c071a0570cc40c9a54eb472d113eea6d002e9ae12bb3a8407fb912e/numpy-2.2.6-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:71594f7c51a18e728451bb50cc60a3ce4e6538822731b2933209a1f3614e9282", size = 6625382, upload-time = "2025-05-17T21:35:21.414Z" }, + { url = "https://files.pythonhosted.org/packages/f8/35/8c80729f1ff76b3921d5c9487c7ac3de9b2a103b1cd05e905b3090513510/numpy-2.2.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f2618db89be1b4e05f7a1a847a9c1c0abd63e63a1607d892dd54668dd92faf87", size = 14018462, upload-time = "2025-05-17T21:35:42.174Z" }, + { url = "https://files.pythonhosted.org/packages/8c/3d/1e1db36cfd41f895d266b103df00ca5b3cbe965184df824dec5c08c6b803/numpy-2.2.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd83c01228a688733f1ded5201c678f0c53ecc1006ffbc404db9f7a899ac6249", size = 16527618, upload-time = "2025-05-17T21:36:06.711Z" }, + { url = "https://files.pythonhosted.org/packages/61/c6/03ed30992602c85aa3cd95b9070a514f8b3c33e31124694438d88809ae36/numpy-2.2.6-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:37c0ca431f82cd5fa716eca9506aefcabc247fb27ba69c5062a6d3ade8cf8f49", size = 15505511, upload-time = "2025-05-17T21:36:29.965Z" }, + { url = "https://files.pythonhosted.org/packages/b7/25/5761d832a81df431e260719ec45de696414266613c9ee268394dd5ad8236/numpy-2.2.6-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:fe27749d33bb772c80dcd84ae7e8df2adc920ae8297400dabec45f0dedb3f6de", size = 18313783, upload-time = "2025-05-17T21:36:56.883Z" }, + { url = "https://files.pythonhosted.org/packages/57/0a/72d5a3527c5ebffcd47bde9162c39fae1f90138c961e5296491ce778e682/numpy-2.2.6-cp312-cp312-win32.whl", hash = "sha256:4eeaae00d789f66c7a25ac5f34b71a7035bb474e679f410e5e1a94deb24cf2d4", size = 6246506, upload-time = "2025-05-17T21:37:07.368Z" }, + { url = "https://files.pythonhosted.org/packages/36/fa/8c9210162ca1b88529ab76b41ba02d433fd54fecaf6feb70ef9f124683f1/numpy-2.2.6-cp312-cp312-win_amd64.whl", hash = "sha256:c1f9540be57940698ed329904db803cf7a402f3fc200bfe599334c9bd84a40b2", size = 12614190, upload-time = "2025-05-17T21:37:26.213Z" }, + { url = "https://files.pythonhosted.org/packages/f9/5c/6657823f4f594f72b5471f1db1ab12e26e890bb2e41897522d134d2a3e81/numpy-2.2.6-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:0811bb762109d9708cca4d0b13c4f67146e3c3b7cf8d34018c722adb2d957c84", size = 20867828, upload-time = "2025-05-17T21:37:56.699Z" }, + { url = "https://files.pythonhosted.org/packages/dc/9e/14520dc3dadf3c803473bd07e9b2bd1b69bc583cb2497b47000fed2fa92f/numpy-2.2.6-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:287cc3162b6f01463ccd86be154f284d0893d2b3ed7292439ea97eafa8170e0b", size = 14143006, upload-time = "2025-05-17T21:38:18.291Z" }, + { url = "https://files.pythonhosted.org/packages/4f/06/7e96c57d90bebdce9918412087fc22ca9851cceaf5567a45c1f404480e9e/numpy-2.2.6-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:f1372f041402e37e5e633e586f62aa53de2eac8d98cbfb822806ce4bbefcb74d", size = 5076765, upload-time = "2025-05-17T21:38:27.319Z" }, + { url = "https://files.pythonhosted.org/packages/73/ed/63d920c23b4289fdac96ddbdd6132e9427790977d5457cd132f18e76eae0/numpy-2.2.6-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:55a4d33fa519660d69614a9fad433be87e5252f4b03850642f88993f7b2ca566", size = 6617736, upload-time = "2025-05-17T21:38:38.141Z" }, + { url = "https://files.pythonhosted.org/packages/85/c5/e19c8f99d83fd377ec8c7e0cf627a8049746da54afc24ef0a0cb73d5dfb5/numpy-2.2.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f92729c95468a2f4f15e9bb94c432a9229d0d50de67304399627a943201baa2f", size = 14010719, upload-time = "2025-05-17T21:38:58.433Z" }, + { url = "https://files.pythonhosted.org/packages/19/49/4df9123aafa7b539317bf6d342cb6d227e49f7a35b99c287a6109b13dd93/numpy-2.2.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1bc23a79bfabc5d056d106f9befb8d50c31ced2fbc70eedb8155aec74a45798f", size = 16526072, upload-time = "2025-05-17T21:39:22.638Z" }, + { url = "https://files.pythonhosted.org/packages/b2/6c/04b5f47f4f32f7c2b0e7260442a8cbcf8168b0e1a41ff1495da42f42a14f/numpy-2.2.6-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:e3143e4451880bed956e706a3220b4e5cf6172ef05fcc397f6f36a550b1dd868", size = 15503213, upload-time = "2025-05-17T21:39:45.865Z" }, + { url = "https://files.pythonhosted.org/packages/17/0a/5cd92e352c1307640d5b6fec1b2ffb06cd0dabe7d7b8227f97933d378422/numpy-2.2.6-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:b4f13750ce79751586ae2eb824ba7e1e8dba64784086c98cdbbcc6a42112ce0d", size = 18316632, upload-time = "2025-05-17T21:40:13.331Z" }, + { url = "https://files.pythonhosted.org/packages/f0/3b/5cba2b1d88760ef86596ad0f3d484b1cbff7c115ae2429678465057c5155/numpy-2.2.6-cp313-cp313-win32.whl", hash = "sha256:5beb72339d9d4fa36522fc63802f469b13cdbe4fdab4a288f0c441b74272ebfd", size = 6244532, upload-time = "2025-05-17T21:43:46.099Z" }, + { url = "https://files.pythonhosted.org/packages/cb/3b/d58c12eafcb298d4e6d0d40216866ab15f59e55d148a5658bb3132311fcf/numpy-2.2.6-cp313-cp313-win_amd64.whl", hash = "sha256:b0544343a702fa80c95ad5d3d608ea3599dd54d4632df855e4c8d24eb6ecfa1c", size = 12610885, upload-time = "2025-05-17T21:44:05.145Z" }, + { url = "https://files.pythonhosted.org/packages/6b/9e/4bf918b818e516322db999ac25d00c75788ddfd2d2ade4fa66f1f38097e1/numpy-2.2.6-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:0bca768cd85ae743b2affdc762d617eddf3bcf8724435498a1e80132d04879e6", size = 20963467, upload-time = "2025-05-17T21:40:44Z" }, + { url = "https://files.pythonhosted.org/packages/61/66/d2de6b291507517ff2e438e13ff7b1e2cdbdb7cb40b3ed475377aece69f9/numpy-2.2.6-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:fc0c5673685c508a142ca65209b4e79ed6740a4ed6b2267dbba90f34b0b3cfda", size = 14225144, upload-time = "2025-05-17T21:41:05.695Z" }, + { url = "https://files.pythonhosted.org/packages/e4/25/480387655407ead912e28ba3a820bc69af9adf13bcbe40b299d454ec011f/numpy-2.2.6-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:5bd4fc3ac8926b3819797a7c0e2631eb889b4118a9898c84f585a54d475b7e40", size = 5200217, upload-time = "2025-05-17T21:41:15.903Z" }, + { url = "https://files.pythonhosted.org/packages/aa/4a/6e313b5108f53dcbf3aca0c0f3e9c92f4c10ce57a0a721851f9785872895/numpy-2.2.6-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:fee4236c876c4e8369388054d02d0e9bb84821feb1a64dd59e137e6511a551f8", size = 6712014, upload-time = "2025-05-17T21:41:27.321Z" }, + { url = "https://files.pythonhosted.org/packages/b7/30/172c2d5c4be71fdf476e9de553443cf8e25feddbe185e0bd88b096915bcc/numpy-2.2.6-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e1dda9c7e08dc141e0247a5b8f49cf05984955246a327d4c48bda16821947b2f", size = 14077935, upload-time = "2025-05-17T21:41:49.738Z" }, + { url = "https://files.pythonhosted.org/packages/12/fb/9e743f8d4e4d3c710902cf87af3512082ae3d43b945d5d16563f26ec251d/numpy-2.2.6-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f447e6acb680fd307f40d3da4852208af94afdfab89cf850986c3ca00562f4fa", size = 16600122, upload-time = "2025-05-17T21:42:14.046Z" }, + { url = "https://files.pythonhosted.org/packages/12/75/ee20da0e58d3a66f204f38916757e01e33a9737d0b22373b3eb5a27358f9/numpy-2.2.6-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:389d771b1623ec92636b0786bc4ae56abafad4a4c513d36a55dce14bd9ce8571", size = 15586143, upload-time = "2025-05-17T21:42:37.464Z" }, + { url = "https://files.pythonhosted.org/packages/76/95/bef5b37f29fc5e739947e9ce5179ad402875633308504a52d188302319c8/numpy-2.2.6-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:8e9ace4a37db23421249ed236fdcdd457d671e25146786dfc96835cd951aa7c1", size = 18385260, upload-time = "2025-05-17T21:43:05.189Z" }, + { url = "https://files.pythonhosted.org/packages/09/04/f2f83279d287407cf36a7a8053a5abe7be3622a4363337338f2585e4afda/numpy-2.2.6-cp313-cp313t-win32.whl", hash = "sha256:038613e9fb8c72b0a41f025a7e4c3f0b7a1b5d768ece4796b674c8f3fe13efff", size = 6377225, upload-time = "2025-05-17T21:43:16.254Z" }, + { url = "https://files.pythonhosted.org/packages/67/0e/35082d13c09c02c011cf21570543d202ad929d961c02a147493cb0c2bdf5/numpy-2.2.6-cp313-cp313t-win_amd64.whl", hash = "sha256:6031dd6dfecc0cf9f668681a37648373bddd6421fff6c66ec1624eed0180ee06", size = 12771374, upload-time = "2025-05-17T21:43:35.479Z" }, + { url = "https://files.pythonhosted.org/packages/9e/3b/d94a75f4dbf1ef5d321523ecac21ef23a3cd2ac8b78ae2aac40873590229/numpy-2.2.6-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:0b605b275d7bd0c640cad4e5d30fa701a8d59302e127e5f79138ad62762c3e3d", size = 21040391, upload-time = "2025-05-17T21:44:35.948Z" }, + { url = "https://files.pythonhosted.org/packages/17/f4/09b2fa1b58f0fb4f7c7963a1649c64c4d315752240377ed74d9cd878f7b5/numpy-2.2.6-pp310-pypy310_pp73-macosx_14_0_x86_64.whl", hash = "sha256:7befc596a7dc9da8a337f79802ee8adb30a552a94f792b9c9d18c840055907db", size = 6786754, upload-time = "2025-05-17T21:44:47.446Z" }, + { url = "https://files.pythonhosted.org/packages/af/30/feba75f143bdc868a1cc3f44ccfa6c4b9ec522b36458e738cd00f67b573f/numpy-2.2.6-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ce47521a4754c8f4593837384bd3424880629f718d87c5d44f8ed763edd63543", size = 16643476, upload-time = "2025-05-17T21:45:11.871Z" }, + { url = "https://files.pythonhosted.org/packages/37/48/ac2a9584402fb6c0cd5b5d1a91dcf176b15760130dd386bbafdbfe3640bf/numpy-2.2.6-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:d042d24c90c41b54fd506da306759e06e568864df8ec17ccc17e9e884634fd00", size = 12812666, upload-time = "2025-05-17T21:45:31.426Z" }, +] + +[[package]] +name = "numpy" +version = "2.4.6" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version == '3.11.*'", +] +sdist = { url = "https://files.pythonhosted.org/packages/d0/ad/fed0499ce6a338d2a03ebae59cd15093910c8875328855781952abf6c2fe/numpy-2.4.6.tar.gz", hash = "sha256:f3a3570c4a2a16746ac2c31a7c7c7b0c186b95ce902e33db6f28094ed7387dda", size = 20735807, upload-time = "2026-05-18T23:37:14.07Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b3/49/ec46835a70be8fa6446c495126ac84fdb28cb2558e1620ffb87a10c8b64c/numpy-2.4.6-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:0280e0356c0829a18d9de1cb7eee50ec22ca639878d7240307ca0943d73cd2c4", size = 16969194, upload-time = "2026-05-18T23:33:13.503Z" }, + { url = "https://files.pythonhosted.org/packages/0e/0d/f5957185c0ee2f3e12f78715aa9e3b353fd83633316c8532b38faa37e3f6/numpy-2.4.6-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:110f8b71aacb688ec69062bb7f6938a0f8acb01b7c1c4beb453c65b6d234584d", size = 14964111, upload-time = "2026-05-18T23:33:17.795Z" }, + { url = "https://files.pythonhosted.org/packages/ad/40/40a40ee0ddf7ceb782c49af278894b686e586d65d8c1889c8b5da01a3d7d/numpy-2.4.6-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:4cfe66903cc32a9921a6733d96b19bb6abf310397581bbad89c228f5abaf0ee8", size = 5469159, upload-time = "2026-05-18T23:33:20.654Z" }, + { url = "https://files.pythonhosted.org/packages/63/13/f9a8046535cb21deae82f8d03de9617e08882d274fad2539630761888228/numpy-2.4.6-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:8155154c7c691289fe18f510b5d4657c68c67989f293f0535a91360392ff6538", size = 6798936, upload-time = "2026-05-18T23:33:22.987Z" }, + { url = "https://files.pythonhosted.org/packages/33/a8/6fa8c1a345a8c85dbb21932c447bee07c30a2c2a3f31e369c0a84b300147/numpy-2.4.6-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0ab0a9c4ffb1a6d95ef519fe4247dba8eb6b18ad93999f76b7f657039acabd47", size = 15966692, upload-time = "2026-05-18T23:33:26.62Z" }, + { url = "https://files.pythonhosted.org/packages/02/03/74fe2a4cb3817d94d86402f2506554130a2f01414e299b5a843e5a8a957f/numpy-2.4.6-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:89cd468399cfd2504718f0ba50e410dca55a170b61a02ad92bb18c8a65186e93", size = 16918164, upload-time = "2026-05-18T23:33:29.955Z" }, + { url = "https://files.pythonhosted.org/packages/c5/80/3615be3313f7e7696609bc194b9f0101da809df79e859bdb84e0cd043f46/numpy-2.4.6-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:c2d37ab77531417474168eb79d6d80b14f821a966818505d03013d0833edb7a8", size = 17322877, upload-time = "2026-05-18T23:33:34.724Z" }, + { url = "https://files.pythonhosted.org/packages/ca/ac/a691e0fe2675e370d0e08ff905adc49a1c8830e8cae03efe4477e92cd55d/numpy-2.4.6-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f407cb6b8e9d6d8c626bc73c945db1706035af8fd632295547bf1c9e46d092d6", size = 18651487, upload-time = "2026-05-18T23:33:38.217Z" }, + { url = "https://files.pythonhosted.org/packages/15/a7/9bc1cd626d7bf6869bfedf27b91b6ab5dd607758bf8e959d6fa80c6a59cb/numpy-2.4.6-cp311-cp311-win32.whl", hash = "sha256:ddea102b48f9e339f3948bf22040944184627a30fdf7f858667673b9c5f033c8", size = 6233945, upload-time = "2026-05-18T23:33:41.331Z" }, + { url = "https://files.pythonhosted.org/packages/c5/31/7fc6239c12bce7e931463251cca4426c465e1876ba3cc785402ef4dd8f4e/numpy-2.4.6-cp311-cp311-win_amd64.whl", hash = "sha256:1e254a00cdf42b1e4d5b3d68d33af63268d41340d8885df2ab6470f2e1500147", size = 12608406, upload-time = "2026-05-18T23:33:44.131Z" }, + { url = "https://files.pythonhosted.org/packages/27/83/140f85a466595a16382996a1bf06b2b54bcd597488921b0c9daaeeda72af/numpy-2.4.6-cp311-cp311-win_arm64.whl", hash = "sha256:ed9749eef4cbd126da3dc1d6bcb3a57f5eb7ac6a6484146bdbf743f552dfc577", size = 10479528, upload-time = "2026-05-18T23:33:50.725Z" }, + { url = "https://files.pythonhosted.org/packages/95/2a/3d7b5ac8aac24feaf9ad7ed58f45b0bbc06d37e4338ae84c9f2298b570f9/numpy-2.4.6-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:001fbb8e08d942dd57599e781f2472269ee7f2755fae407b4f67b2f0b17da3f1", size = 16689119, upload-time = "2026-05-18T23:33:54.065Z" }, + { url = "https://files.pythonhosted.org/packages/ea/12/92c4c131527599e8288d6918e888d88726f84d805d784b771f32408aeaef/numpy-2.4.6-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ebfb099f8dcf083deef3ac1ca4c1503f387cf76296fcb3816b66f5ecb5f54fdb", size = 14699246, upload-time = "2026-05-18T23:33:57.621Z" }, + { url = "https://files.pythonhosted.org/packages/ad/fe/c0a6b7b2ca128a8fb228575147073b660656734b8ebe4d76c8fd748dcc79/numpy-2.4.6-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:3213d622a0283a39a93d188f3cf72b26862df52fbb4ca3697f51705016523d41", size = 5204410, upload-time = "2026-05-18T23:34:00.302Z" }, + { url = "https://files.pythonhosted.org/packages/f3/d4/9770d14ba719432bb90a421bfd443872ed0f70f7264b64bec12ea363d5fd/numpy-2.4.6-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:357cc07a6d7b0b182ff02249616a03742827ebb1277546b5c7cd7f7620a45698", size = 6551240, upload-time = "2026-05-18T23:34:02.852Z" }, + { url = "https://files.pythonhosted.org/packages/c9/c6/50a46a6205feba2343f1d6d17438107c5dc491ed1c736e6ea68689fd906b/numpy-2.4.6-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5f9fb9157b4ce2971008323afe46053787b526ef624fea915b261468a8421a0f", size = 15671012, upload-time = "2026-05-18T23:34:05.485Z" }, + { url = "https://files.pythonhosted.org/packages/99/60/14115e6364fa676c5397c2ad3004e527e9aa487abf5d0706ec81bbd08529/numpy-2.4.6-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:90f9849678c75fe7afa2d348ac842c168b0a4d3d61919687216dfc547976d853", size = 16645538, upload-time = "2026-05-18T23:34:09.265Z" }, + { url = "https://files.pythonhosted.org/packages/ae/c5/693cbe59e57db94d2231fa519ca3978dc9e19da5a8f088588f5c6e947ff2/numpy-2.4.6-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:c1a2af6c6ef86344a6b0db6b97834208bf598db514f2b155042439b62605601a", size = 17020706, upload-time = "2026-05-18T23:34:13.053Z" }, + { url = "https://files.pythonhosted.org/packages/ef/fc/85b7c4eff9b4966ade25c2273cf7e7012e92366c032058653934b37de044/numpy-2.4.6-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:e5805d5a22fd19c8ccff10a9561f9df94436b0545619ea579db2d3c35294bce2", size = 18368541, upload-time = "2026-05-18T23:34:17.024Z" }, + { url = "https://files.pythonhosted.org/packages/f6/81/e1b27545deedce7f4a0b348618c6b62d74e36a4dc9ccd42f3eb2f85eee32/numpy-2.4.6-cp312-cp312-win32.whl", hash = "sha256:e3eeb0aabd6bd5ce64faae67e9935203a6991b4bc2a485a767fbafb2c5125f45", size = 5962825, upload-time = "2026-05-18T23:34:20.3Z" }, + { url = "https://files.pythonhosted.org/packages/ab/ca/feab00bd44aa5fe1ad2c18f08b4d3bb92e26484b0b1d1443897809ed528c/numpy-2.4.6-cp312-cp312-win_amd64.whl", hash = "sha256:d8e8286dd7cea7895157318d1b91cdacac64c479f3cbc8dce548331728484751", size = 12321687, upload-time = "2026-05-18T23:34:23.095Z" }, + { url = "https://files.pythonhosted.org/packages/63/cf/5a6d34850a39d1093558564f77ee8e8e0bee5061151b8f05a55711001ec7/numpy-2.4.6-cp312-cp312-win_arm64.whl", hash = "sha256:4081eb135ac24158bd51cdfbef16f1c64df7063b1143f24731387137c092bec8", size = 10221482, upload-time = "2026-05-18T23:34:25.876Z" }, + { url = "https://files.pythonhosted.org/packages/fb/82/bdab26d7438c6791ca31b7c024ca37c1eab8b726ba236129005cd4a06e45/numpy-2.4.6-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:511dbaf848decaaaf4b4ca48032619fb3138710c4bf7da7617765edad1ef96b0", size = 16684648, upload-time = "2026-05-18T23:34:29.41Z" }, + { url = "https://files.pythonhosted.org/packages/1b/30/a80189bcc7f5e4258b3fbc3968d909d1756f54d023299ecc39ad6fdb9ef8/numpy-2.4.6-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:bf162abab1c1a736333192707cef898e735a5ca00f38f27eeedf44b39d9e85eb", size = 14693902, upload-time = "2026-05-18T23:34:33.013Z" }, + { url = "https://files.pythonhosted.org/packages/97/12/70b5d0d7c15e1ebb8a6a84a8caa1d19e181d84fb58bb6d70aca29099dec1/numpy-2.4.6-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:043191bfa8eab18c776647b62723ac9dddece59743b13f49b2016094129c2b3f", size = 5198992, upload-time = "2026-05-18T23:34:36.132Z" }, + { url = "https://files.pythonhosted.org/packages/ba/8c/ebd2a8f8a83541f8d38cc5667e8c2b69cecfd30da6e45693e8158857d44b/numpy-2.4.6-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:6180d8b35af935aed8ece3a85e0a43f87393ae0ac87c8d2c8bd2c993f7270ef3", size = 6546944, upload-time = "2026-05-18T23:34:38.484Z" }, + { url = "https://files.pythonhosted.org/packages/bb/c5/7b863a97a91671a0338f4253bd3b5a3d3852f0692dae91711c9f4a10e787/numpy-2.4.6-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:72fbe16c6fac95aedf5937fa873445cec2110be35d8a4e9433d7501fd98dae6b", size = 15669392, upload-time = "2026-05-18T23:34:41.257Z" }, + { url = "https://files.pythonhosted.org/packages/a5/9d/3584b9984ca4c047aea75214ce1a4c4c73d849bd71b604264b7f5653f8a8/numpy-2.4.6-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a7830bab239b79cda9c08c2da014761cafb48da6150e1da17ac06283f43b6089", size = 16633220, upload-time = "2026-05-18T23:34:45.075Z" }, + { url = "https://files.pythonhosted.org/packages/05/ae/7c67fba23bd98caec7c99261f3a16072ade14813486b0282cb29846de832/numpy-2.4.6-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ef4aea96ce4d3b074422cb4f2f64e216bf9e213004bb58ecfdf50ea02ea8eb9a", size = 17020800, upload-time = "2026-05-18T23:34:49.065Z" }, + { url = "https://files.pythonhosted.org/packages/d9/5d/3b6725cb31d983c5e66916f5d36f6d7e5521129e4c4404d64f918292a5b6/numpy-2.4.6-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:dfa20cc6ca228e6b155b11da03825975ce66aea520985dbbddf0f2a5a495c605", size = 18357600, upload-time = "2026-05-18T23:34:52.709Z" }, + { url = "https://files.pythonhosted.org/packages/f7/da/2ccc6c2fe8898dee01d90c75c5f5f914a23daf99e3e0f59516a08760c8b5/numpy-2.4.6-cp313-cp313-win32.whl", hash = "sha256:56b39e5e0622a09a25bf5baf62f4bcf0cb8a41ae6e2819cf49bbc5a74c083f91", size = 5961134, upload-time = "2026-05-18T23:34:55.618Z" }, + { url = "https://files.pythonhosted.org/packages/b5/cd/9cc4dc876fb065d5c220aae4d5e14826b2715331bb7618ce1fb07a679d99/numpy-2.4.6-cp313-cp313-win_amd64.whl", hash = "sha256:c4fc99836233ea196540b17ab0983aff60ed07941751930f5f4d05bc3b3b7359", size = 12318598, upload-time = "2026-05-18T23:34:58.928Z" }, + { url = "https://files.pythonhosted.org/packages/39/1e/c0bcba1f8694116485fe28fd1be698c278fcda4141c5b0e53a2aed8b12a8/numpy-2.4.6-cp313-cp313-win_arm64.whl", hash = "sha256:a7c711e21628b52034bb5ab8d1bce291f752fcc5e92accc615778acee1ff4778", size = 10222272, upload-time = "2026-05-18T23:35:02.167Z" }, + { url = "https://files.pythonhosted.org/packages/63/6d/cc5619247c8f4204e507f5883528372e4ac4bb189e579fb859a12e480b1f/numpy-2.4.6-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:112b06a867b235ef466ed3508ddf0238050df9c727cafb5301ac385b899189a1", size = 14821197, upload-time = "2026-05-18T23:35:05.468Z" }, + { url = "https://files.pythonhosted.org/packages/00/58/f1c39161c87d9e9bed660f1ed4bafc0e403d5ec9650b6dd77aead07d489b/numpy-2.4.6-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:eaf7fa2de5c0be8ae6ff8e9bea2ccd725e980541244521d8d4b5f3354a27babe", size = 5326287, upload-time = "2026-05-18T23:35:08.693Z" }, + { url = "https://files.pythonhosted.org/packages/af/57/3917ab0fd97f271a8694513581b8a36c655f111c446852c302f04ccdb6fc/numpy-2.4.6-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:7265a2f3d436e54ef9f2b52b5c937e6be778781bd97a590319d7348f1c1ca997", size = 6646763, upload-time = "2026-05-18T23:35:11.459Z" }, + { url = "https://files.pythonhosted.org/packages/eb/0f/037e64c494b67581ae18193d770adef354c41f3f2c8ebf865602d949bf8f/numpy-2.4.6-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f74a575920ab21fe304421a3fc28793d82e299cae9eccb37084e9fc7f3617c20", size = 15728070, upload-time = "2026-05-18T23:35:14.79Z" }, + { url = "https://files.pythonhosted.org/packages/21/a6/5d2bae9c9542eb4df16dc9c46dc79c186e9bad53805dfa5399a6023c6db0/numpy-2.4.6-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ede83e07a75dd06bc501566c1eca2afc0d61677c1472ac9ad93fdee6e638a48d", size = 16681752, upload-time = "2026-05-18T23:35:18.836Z" }, + { url = "https://files.pythonhosted.org/packages/92/14/23d1dfb410ae362cd59ce53e936b1513d545eb40db3949ced632e19a459e/numpy-2.4.6-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:68bb27509ac1b9a3443094260f6326150663b06abe40b73a2f81160623da5b67", size = 17086024, upload-time = "2026-05-18T23:35:22.52Z" }, + { url = "https://files.pythonhosted.org/packages/4b/6e/23595a2c642cdf3bc567877064bdd7f91c8b0038a4453cf2daf7248eafe9/numpy-2.4.6-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:a0df0043bdb289bde1f62da130d20df23d58b45429f752bc7a8fc5325a225ecd", size = 18403398, upload-time = "2026-05-18T23:35:26.398Z" }, + { url = "https://files.pythonhosted.org/packages/8a/90/0ac3bc947217e66dec77e7cbc6a1979d1af70b6461b82f620d3bccd5e4c8/numpy-2.4.6-cp313-cp313t-win32.whl", hash = "sha256:29a287e0cf63ff528da061de6b9f64a4618da591ca1046aafc54062e40ca7eab", size = 6084971, upload-time = "2026-05-18T23:35:29.387Z" }, + { url = "https://files.pythonhosted.org/packages/77/71/5673e351671a1d2bd6063b91b44f70c0affea7d1516fa7a6572941ba4aa1/numpy-2.4.6-cp313-cp313t-win_amd64.whl", hash = "sha256:25c692919ac5a01f170a3bfcd62d745b24fd095c353d50812637d6fcab442e75", size = 12458532, upload-time = "2026-05-18T23:35:32.175Z" }, + { url = "https://files.pythonhosted.org/packages/3f/88/19d3503c5046e688f049274b27a3ef3d771152fa80d3ba3d01a3dff61abe/numpy-2.4.6-cp313-cp313t-win_arm64.whl", hash = "sha256:1e978ec1e8bd0e0e4de6bb75de9d30cbb74db6b6a2bb727618613703ca0167dd", size = 10291881, upload-time = "2026-05-18T23:35:35.465Z" }, + { url = "https://files.pythonhosted.org/packages/f8/91/3ab2044d05fd16d343c5ac2e69b127f1b2854040dd20b193257c78028bd3/numpy-2.4.6-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:06ca2f61ec4385a07a6977c55ba998a4466c123642b4a32694d3128fce18c079", size = 16683458, upload-time = "2026-05-18T23:35:38.353Z" }, + { url = "https://files.pythonhosted.org/packages/8e/62/764ce66fa4147ae6d73071a3abf804ffe606f174618697c571acdf26a7c9/numpy-2.4.6-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:38efbc8de75c7a0fc1ac190162d892787f3f47b57cc291231aafee36b80982b7", size = 14704559, upload-time = "2026-05-18T23:35:42.14Z" }, + { url = "https://files.pythonhosted.org/packages/60/61/23f27c172f022e04025b7dc2367f4d63c1a398120607ec896228649a6f48/numpy-2.4.6-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:d581b735e177fdcdce6fed8e7e8880a3fb6ee4e3653a3ac6af01c6f4c03effc5", size = 5209716, upload-time = "2026-05-18T23:35:45.377Z" }, + { url = "https://files.pythonhosted.org/packages/03/71/21cf70dc6ea3e3acb95fc53a265b2fc248b981f0194ceb5b475271b8809d/numpy-2.4.6-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:0a041d3d761dc3c35cc56ce0351506a02bcbc25f7b169f652435141a17db9096", size = 6543947, upload-time = "2026-05-18T23:35:47.926Z" }, + { url = "https://files.pythonhosted.org/packages/d5/91/64288395ee1799bd2e0b04a305dce9666da90c961e1f3fe982a05ee1c036/numpy-2.4.6-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:40fdc1ae7125e518ea98e53e69a4ebc27e1fd50510c47b7ea130cf21e5e1d42b", size = 15685197, upload-time = "2026-05-18T23:35:50.863Z" }, + { url = "https://files.pythonhosted.org/packages/f3/eb/ebffaa97dc55502df69584a8f0dcf07f69a3e0b3e2323670a2722db9aa39/numpy-2.4.6-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a2c306dea656c12c68f51f4cea133cbe78ca7435eb28c735eac1d3ebe73be6e8", size = 16638245, upload-time = "2026-05-18T23:35:54.752Z" }, + { url = "https://files.pythonhosted.org/packages/b8/0b/54f9da33128d7e350fab89c7455902eeae70349ee52bddb448dc4a576f45/numpy-2.4.6-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:33111801a01c12a8a1e3721f0a9232f8cfc8ae2c6b7098167e6f623c6073f402", size = 17036587, upload-time = "2026-05-18T23:35:58.355Z" }, + { url = "https://files.pythonhosted.org/packages/b6/f0/fdebc1052db1cc37c64beb22072d67cd6d1c71adca1299f53dec2b5e20d3/numpy-2.4.6-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ae506e6902902557576a26ff33eda8695e7ecb3cb36c3b573a0765dee114ebdb", size = 18363226, upload-time = "2026-05-18T23:36:02.845Z" }, + { url = "https://files.pythonhosted.org/packages/aa/b4/298628d98c72b57e57f7165ae6a481a1deaf6f3c28262a6e4c739c275930/numpy-2.4.6-cp314-cp314-win32.whl", hash = "sha256:aaf159caa35993cb1f56fb9b8e4610d35758e7ca005412eb1daa856a78c9c4b1", size = 6010196, upload-time = "2026-05-18T23:36:05.92Z" }, + { url = "https://files.pythonhosted.org/packages/df/ac/46de6dda46478f7942f839e094970be2d4a861e005c4b3bf07c92e291a09/numpy-2.4.6-cp314-cp314-win_amd64.whl", hash = "sha256:b507f5c4c1d508876d1819b6bf9a49d365b96320b5d4993426b33a23ca4b8261", size = 12450334, upload-time = "2026-05-18T23:36:09.107Z" }, + { url = "https://files.pythonhosted.org/packages/78/92/b8b798ac784102c0da830d2257d59358e3d3d90d1e2b3f2575dad976c5cf/numpy-2.4.6-cp314-cp314-win_arm64.whl", hash = "sha256:6f41ae150c4e32db4f3310cdaf64b1593a03dbabe29eec77fc9b50fe64061df6", size = 10495678, upload-time = "2026-05-18T23:36:12.766Z" }, + { url = "https://files.pythonhosted.org/packages/30/34/ec28d1aa8115971537c01469ab2011ee96827930f0a124de1000cc2a7ed7/numpy-2.4.6-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ece3d2cfe132e7d51f44a832b303895e6f2d499c5e74dfbdb06ee246147a304a", size = 14823672, upload-time = "2026-05-18T23:36:16.473Z" }, + { url = "https://files.pythonhosted.org/packages/16/bd/f6d1fede4e54e8042a7ff97bb495510f3c220f94bcd9e8b228e87c92cc0d/numpy-2.4.6-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:e3e5193ef5a3dc73bceee50f7fdc2c90dbb76c42df8d8fae3d1067a583df579e", size = 5328731, upload-time = "2026-05-18T23:36:19.767Z" }, + { url = "https://files.pythonhosted.org/packages/f4/f0/e105b9e2fd728a9910103884decd6951d9dd73896b914a98d9a231de02ee/numpy-2.4.6-cp314-cp314t-macosx_14_0_x86_64.whl", hash = "sha256:17f9ade344e7d9b464a084d69bcf18fc691cb1db67c62ed80820bf4926d78f0e", size = 6649805, upload-time = "2026-05-18T23:36:22.266Z" }, + { url = "https://files.pythonhosted.org/packages/82/dd/1206a7ca6ab15e3f02069707ca96222e202af681bb73756da7527f3cb837/numpy-2.4.6-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9cd5ffd25db4e7ba6a375693b3fc0fc1791ec636c17db3720da19bde7180ec43", size = 15730496, upload-time = "2026-05-18T23:36:25.713Z" }, + { url = "https://files.pythonhosted.org/packages/51/e7/38d3ea825dcab85a591734decb2f6c67caa7c8367d374df1a1c3842f9b07/numpy-2.4.6-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7d92c3819208a60205a12a245c91ad70cb0a85336659b19b834205573ac8456e", size = 16679616, upload-time = "2026-05-18T23:36:29.652Z" }, + { url = "https://files.pythonhosted.org/packages/93/b7/caabfdf53edf663e0b4eb74d7d405d83baef09eb5e83bcd32d601d72b93e/numpy-2.4.6-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e85b752a1e912b70eaad4fafbd4d1238007ab221de2009b9a2f5ae7461239895", size = 17085145, upload-time = "2026-05-18T23:36:33.449Z" }, + { url = "https://files.pythonhosted.org/packages/f9/45/68d7c33a6bcf3e5aa3bdbd57a367e6f615286dfd6482f97e8ffeb734306e/numpy-2.4.6-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:29cb7f67d10b479ff07c17d33e39f78c07f71c40ef30d63c153d340e96cd3fb4", size = 18403813, upload-time = "2026-05-18T23:36:37.369Z" }, + { url = "https://files.pythonhosted.org/packages/9c/50/0753655aa844c99cd9e018aacf76f130f1bd81d881bb74bc0aef5d73a8ba/numpy-2.4.6-cp314-cp314t-win32.whl", hash = "sha256:260a5d70215b61ab4fadf5c7baacd64821842975eea312125ed3c39a6391b063", size = 6156982, upload-time = "2026-05-18T23:36:40.817Z" }, + { url = "https://files.pythonhosted.org/packages/b2/d4/7c67becf668f973cb490cec3e98dfd799d866f9c989a54d355672cfa0db6/numpy-2.4.6-cp314-cp314t-win_amd64.whl", hash = "sha256:81a1cca95ed5bb92aa8b10dd2cdc9a0d3853a50fad926c28b5d7e8ea54389627", size = 12638908, upload-time = "2026-05-18T23:36:43.996Z" }, + { url = "https://files.pythonhosted.org/packages/43/bb/e1c71a4295b1b1d1393d50dbb4f2a36283c6859d9d3892e84f00ec5a91d5/numpy-2.4.6-cp314-cp314t-win_arm64.whl", hash = "sha256:0c9136e14ed34a9e343a31c533d78a9813a69a3148332bce5e9821cb2f996e66", size = 10565867, upload-time = "2026-05-18T23:36:47.114Z" }, + { url = "https://files.pythonhosted.org/packages/de/12/b422cc84439adc0d00de605bf4a308890ae5c26f2c71fbd73e5d08fbb0dd/numpy-2.4.6-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:55cced7c52e981362f708ad635198e97a752dfba412cc03c23bbf3bd8d5cd662", size = 16847511, upload-time = "2026-05-18T23:36:50.673Z" }, + { url = "https://files.pythonhosted.org/packages/44/53/f481bef68011740f8849418d82db07230e825013f31f4eef5ba5b805316a/numpy-2.4.6-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:d6da64deb6b8ed903e7560180a92f2d804ee1ba5eeb849ac2748b8c1aba1f6d7", size = 14889064, upload-time = "2026-05-18T23:36:53.879Z" }, + { url = "https://files.pythonhosted.org/packages/7f/57/42ed575c10ced8af951d426bc4e1f8aff16fd851db33f067036215a7f860/numpy-2.4.6-pp311-pypy311_pp73-macosx_14_0_arm64.whl", hash = "sha256:68a5124b13fa6cc2086764a20005d30bc0548146f7f5322f02fce212ca14317f", size = 5394157, upload-time = "2026-05-18T23:36:57.194Z" }, + { url = "https://files.pythonhosted.org/packages/6a/ef/f66cc724fcc36c1e364c67f51ae9146090b8b584f27d58b97fdae3edd737/numpy-2.4.6-pp311-pypy311_pp73-macosx_14_0_x86_64.whl", hash = "sha256:948424b06129ce883307e8cff868c31396d8dc7630a59c61d70d98dbe70f222c", size = 6708728, upload-time = "2026-05-18T23:36:59.575Z" }, + { url = "https://files.pythonhosted.org/packages/1a/9c/c531f2293b91265d8b48e9b329f54fdd7ffae73cb4134ea10cca4237e9cc/numpy-2.4.6-pp311-pypy311_pp73-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5dbbdb29840ca3d91ee0fece42fc29278886d908280bfec0a5846c6f901a3eb0", size = 15798374, upload-time = "2026-05-18T23:37:02.674Z" }, + { url = "https://files.pythonhosted.org/packages/1a/b0/413077f6b1153ed3cba361401c6783bbad6114804a000cc22eb71c13e190/numpy-2.4.6-pp311-pypy311_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8ad03c0965fb3c692200e74d458ca28c1dbb4ce96f9a479a8aa041ad5fabca02", size = 16747286, upload-time = "2026-05-18T23:37:06.327Z" }, + { url = "https://files.pythonhosted.org/packages/15/ce/e5ec180bc41812edcd8daeb8639d205622c0e8c02259d8ab25a0201b3c2a/numpy-2.4.6-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:2803abfebfc990042cd494d8ce2d5f82e9d847af6d35ec486923aa19dbad5e73", size = 12504263, upload-time = "2026-05-18T23:37:09.715Z" }, +] + +[[package]] +name = "numpy" +version = "2.5.5" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.12'", +] +sdist = { url = "https://files.pythonhosted.org/packages/4e/3a/8770c288c47f0b5c2a786d3c20e79f66fd245f2d42cd232d7cd5e00e83e5/numpy-2.5.5.tar.gz", hash = "sha256:5cddc243c75114ba845f01b1f87aca1572dbf7b6c2d88636ed3e1d2bccd7f1bf", size = 20873892, upload-time = "2026-11-15T21:32:28.607Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/20/74/5b99f425938870958d43dc9f7b17c684e793ce47ec46b7885cdc7acea285/numpy-2.5.5-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7da9a248f149cfbb220c6da964a59c8d051d516704f7758acfb81eb382a05d97", size = 14750374, upload-time = "2026-11-15T21:30:10.113Z" }, + { url = "https://files.pythonhosted.org/packages/5c/f4/06db317e93dd6d618786004c1761214b113832bb77294c8513776956702a/numpy-2.5.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b96e9ee49ccbdb5676359f852a4497f7a9c5df6c377d8877f5330d6fd3ff42e4", size = 10749920, upload-time = "2026-11-15T21:30:13.092Z" }, + { url = "https://files.pythonhosted.org/packages/8a/92/6de34324a266b73c04ba977db5864b9016500076b26f09078a565f527d34/numpy-2.5.5-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:a3856a97e48ed8371c680fb04120b99fbcc29f2076ebe6dc3deb34f77947c5ca", size = 5513680, upload-time = "2026-11-15T21:30:15.201Z" }, + { url = "https://files.pythonhosted.org/packages/1e/a1/6563b74cd67e3873f9897afebb3244529b1494d4c0df30f3201329a7e316/numpy-2.5.5-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:f5e8603f0892d1b848e12124863b5b29af72383ee9b25ddc6fe4967d4c1ee6ef", size = 6797540, upload-time = "2026-11-15T21:30:17.172Z" }, + { url = "https://files.pythonhosted.org/packages/c2/22/82184e9a5b50a4a298e9f8fe0bd8cfc483672dbfea8a3b57c78e2376b139/numpy-2.5.5-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a0750f2156d53446caca85663d0b65d67214e1664b9050454a731ea1418d176a", size = 15284117, upload-time = "2026-11-15T21:30:19.167Z" }, + { url = "https://files.pythonhosted.org/packages/99/61/522b973ba38987b22a4a71beaed2ea6ac9fd4f687baaa2bc9a45100625e0/numpy-2.5.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:704d819265e5d1064d932968e9ee85fff2103ccc78c05b878c06943ba27b8507", size = 15720599, upload-time = "2026-11-15T21:30:21.273Z" }, + { url = "https://files.pythonhosted.org/packages/25/cd/182cf60bd9c34e617c516f138f2f68988760062fa65fca8fcc97875cf7cf/numpy-2.5.5-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:86868185bf4b6c4e5a8628ac42cfa165cd9530266c731f7dd1d11b4ad7e7cd1c", size = 16503566, upload-time = "2026-11-15T21:30:24.023Z" }, + { url = "https://files.pythonhosted.org/packages/f3/57/4fa4723e80be805f68af552731ed483974b2a11e511284a9ef6aafbcb3cf/numpy-2.5.5-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:7fb87c4bcc73850ef433a0c42f096b010d3d3d284e9d00028bb030b43df3d078", size = 17082560, upload-time = "2026-11-15T21:30:26.224Z" }, + { url = "https://files.pythonhosted.org/packages/d5/0b/73d2bd5be85d3178a862e8354e2d6441b4040fadf1e7d999e01b0bdfa5c6/numpy-2.5.5-cp312-cp312-win32.whl", hash = "sha256:263b2aa236d752b18f90c5107137d24b2e3856d7db37725609f0ab5bcdb58881", size = 6146378, upload-time = "2026-11-15T21:30:28.328Z" }, + { url = "https://files.pythonhosted.org/packages/d1/71/b1ce51834c21020d189332979d38ba7350eb6cd7ca8c8ec424a663b0ca6f/numpy-2.5.5-cp312-cp312-win_amd64.whl", hash = "sha256:919eb420662b0b4ba34889df503f3d5329775b0c1d5f7e5f5af4fba8315b1e30", size = 12580189, upload-time = "2026-11-15T21:30:30.025Z" }, + { url = "https://files.pythonhosted.org/packages/c2/5e/09ae9d0d02fbfe6b160043349bbe73e6bbbbfb2565bb46146dd943687271/numpy-2.5.5-cp312-cp312-win_arm64.whl", hash = "sha256:f6622e32cb46c60bee3b2c7dd7f5c22bdc86fcb8630336b4822ec81c3986111a", size = 10535386, upload-time = "2026-11-15T21:30:32.112Z" }, + { url = "https://files.pythonhosted.org/packages/0f/fa/4ae71d860267f2f9eaf7640516f693acf61c9575d48157cdea459c0215aa/numpy-2.5.5-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:228e3d90e967495d61ddc79dd64e95267aae3bcf1b1c516a6186429106a0b444", size = 14747053, upload-time = "2026-11-15T21:30:34.251Z" }, + { url = "https://files.pythonhosted.org/packages/d4/9a/01a332ebb0899ddb14d782f86ed66d080463e5387a8778029462d1902019/numpy-2.5.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:7e71ac4284c700afa654e2d15b1b174166710dca932f24045e5dc92001b5bda0", size = 10744599, upload-time = "2026-11-15T21:30:36.23Z" }, + { url = "https://files.pythonhosted.org/packages/03/bd/a1a721ab8da5632c811caf56b7735646a440eddbbf6e57817ae1a900c9c9/numpy-2.5.5-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:e0cf407a83118faf0463ade48a4533982f1737c7c58aac29e08855f7d9ad2977", size = 5508218, upload-time = "2026-11-15T21:30:38.357Z" }, + { url = "https://files.pythonhosted.org/packages/9c/63/eb5311935b313926d9127ec59632cc74bdf1fa815089fba4dbee9c6dd90c/numpy-2.5.5-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:ac910558645a4b006f70596b450712b8564730c1b2ac10291fcedd656d321ec0", size = 6794377, upload-time = "2026-11-15T21:30:40.026Z" }, + { url = "https://files.pythonhosted.org/packages/57/06/de83b859944409bb9058bc6110581a3d7fc1f54d6df1222744911d7f6b19/numpy-2.5.5-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ae2b8285d0b4eed24739c3ca9ec0fa424a0247489c01e1d5fe2815a599e11d33", size = 15278148, upload-time = "2026-11-15T21:30:41.819Z" }, + { url = "https://files.pythonhosted.org/packages/40/d6/68dd5a83914bbcaf32b3165993f7955979916708cb0156d1e28231e18803/numpy-2.5.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:824025655df929268bfe6b47ed91a00d14209a6f760847cf150be446829e1ce4", size = 15713899, upload-time = "2026-11-15T21:30:44.066Z" }, + { url = "https://files.pythonhosted.org/packages/1f/6e/a78932a1a838ce0d7d759cee2aca225054da8aa4151688edb5867b4af491/numpy-2.5.5-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4302902ebf82d37f446664757be59db53587822c8b35f16368ca69fe66ec4315", size = 16501259, upload-time = "2026-11-15T21:30:46.469Z" }, + { url = "https://files.pythonhosted.org/packages/bc/08/f4da0ebfa6b684c18f1c300b279bd706f68f3828a2c9aaa1bca54c93a16f/numpy-2.5.5-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:3cedc2980b45794a6a2cfee9c8c3a80f04517082cc1d387e4cc895506c481696", size = 17077101, upload-time = "2026-11-15T21:30:48.916Z" }, + { url = "https://files.pythonhosted.org/packages/1b/81/0ccf314229450ec76363f3f6ec13d0ef54a24c53188787fc13136d6e52e6/numpy-2.5.5-cp313-cp313-win32.whl", hash = "sha256:10396f7c5ebc37d8f3cbdec44e3313912ccc2dc5841cc905de5de54ebbe8e2d3", size = 6141929, upload-time = "2026-11-15T21:30:51.528Z" }, + { url = "https://files.pythonhosted.org/packages/45/74/bb9161943fb65caf24e4bb04c788f5c7815e6cb78ac595e7f46781033c82/numpy-2.5.5-cp313-cp313-win_amd64.whl", hash = "sha256:e0608d1585557b68dcb6a70a41654f7536567960afad79d91752d2863b242b68", size = 12573354, upload-time = "2026-11-15T21:30:53.308Z" }, + { url = "https://files.pythonhosted.org/packages/ac/b0/792631d03588912e948c1249c03a78ca9af0c548670f8fd63ea014cbc14a/numpy-2.5.5-cp313-cp313-win_arm64.whl", hash = "sha256:e0b87886bb45621d9279dad4ab9f2d154b5db0b019d378c107b8f71527b06a4a", size = 10528296, upload-time = "2026-11-15T21:30:55.681Z" }, + { url = "https://files.pythonhosted.org/packages/6a/9a/f1493d897f51947644c45516ba63a67e66a7b06692f930fe37c58346cfbd/numpy-2.5.5-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:ab3ff087826c49d07953d0219eb00663ce5b1a0ef0a6b757e1ac041b09387428", size = 14754557, upload-time = "2026-11-15T21:30:58.008Z" }, + { url = "https://files.pythonhosted.org/packages/18/46/5d1c70b54257a56b3137d6fcc90c6db306f6177c02951eac7ebb42e7e1c7/numpy-2.5.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:7ca51125c76817de53473dae31ddc17213776472761bea9cca68a1a0037a4827", size = 10754769, upload-time = "2026-11-15T21:31:00.146Z" }, + { url = "https://files.pythonhosted.org/packages/4c/e1/016c3d9c9c6e5a457d615cfbcf6bcd01a4cabde82c639776be23365186c1/numpy-2.5.5-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:229743571f901a082f031f511dc4f926b4b4a714075d98b1ff2af62d836365ac", size = 5518338, upload-time = "2026-11-15T21:31:02.38Z" }, + { url = "https://files.pythonhosted.org/packages/12/7f/f2369b42edb1a32a7f048c2126e6ab5b8bc527308ce9eb6e680ad9c3d2e7/numpy-2.5.5-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:1c24be6a82f5f257afc4dbefde4c3b56dee02146dfed2be2811940e79576b237", size = 6800110, upload-time = "2026-11-15T21:31:04.211Z" }, + { url = "https://files.pythonhosted.org/packages/26/5b/5cd4b88a64bb57ca6d3bd6a9e057db445544a2179a2ebf985660e0454648/numpy-2.5.5-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:cc6eb7502facce90349b4097a26821af224aaa0ab36e78304711cdb544352882", size = 15300777, upload-time = "2026-11-15T21:31:05.967Z" }, + { url = "https://files.pythonhosted.org/packages/a4/1f/fcdce1061fba2bfb2e9bfda01fbd8132d5f7522a4f7c8e2b2f629d54ee38/numpy-2.5.5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c48960d420e90cf305cb1fde0d4e6082cc90512cda87a9acf0b6e04e91cf4abe", size = 15718051, upload-time = "2026-11-15T21:31:08.12Z" }, + { url = "https://files.pythonhosted.org/packages/5c/bd/9b7de1d0b747e3d1d24874b1cba374c8b0eab6c2034b785387677ecc4dba/numpy-2.5.5-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:5e202d5facc9c0681834018062466d0b3eabd48c540c3570f72905c97f641a90", size = 16518123, upload-time = "2026-11-15T21:31:10.714Z" }, + { url = "https://files.pythonhosted.org/packages/66/14/60c3fc30e63876e44212392eacd4ea1bd201c29835c99f42daa04c2501e4/numpy-2.5.5-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:e10e81d1db6c8fa507f61bebfd1ea383971dbc40c2005ed4db88fac5538b1ef6", size = 17079719, upload-time = "2026-11-15T21:31:13.245Z" }, + { url = "https://files.pythonhosted.org/packages/ac/b9/c0d3a63804a58823155ae221ce48afa4530e0cab8a33fcfb76a7b46b11ef/numpy-2.5.5-cp314-cp314-win32.whl", hash = "sha256:ef2a874cc70e2132c1c499268bdc34e211a715e481bc33c97b8a0190f2559295", size = 6193548, upload-time = "2026-11-15T21:31:15.602Z" }, + { url = "https://files.pythonhosted.org/packages/74/e2/494516771374b43060c1b778b371cba53d576abd3aee1275eecd73896e3b/numpy-2.5.5-cp314-cp314-win_amd64.whl", hash = "sha256:20145b11776d2f7570cd61351b156a51d3a341822282095baa819d87272bc710", size = 12710543, upload-time = "2026-11-15T21:31:17.461Z" }, + { url = "https://files.pythonhosted.org/packages/1b/e7/abe56b23f4dddf8277429d0efa442abac4c1940ec776c1b707c1e58435e8/numpy-2.5.5-cp314-cp314-win_arm64.whl", hash = "sha256:2abd39cfbb3d2af11e9bc8cc92b08cd089b0975fe9b1a30c8b7c740c67d397ce", size = 10812026, upload-time = "2026-11-15T21:31:19.692Z" }, + { url = "https://files.pythonhosted.org/packages/06/76/2974340b984ecd43bb4ee91c06a3fd59968330752c316d36fb8a23310ac1/numpy-2.5.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:f82a7567c590ff266f8c18fd527a0662edde074de11be256541a656e274f2b05", size = 10857031, upload-time = "2026-11-15T21:31:21.953Z" }, + { url = "https://files.pythonhosted.org/packages/38/d2/cc6d1f0f4c848f18e30d0f464a70598369336591920952f6aee440da4a2f/numpy-2.5.5-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:31e5be6cd4b896004cb9e416741612ade530fc9a04bceca5219cf66a675113b4", size = 5620763, upload-time = "2026-11-15T21:31:24.1Z" }, + { url = "https://files.pythonhosted.org/packages/c7/d0/2d014e5b68965530ebe46c0d2b07b1242210a029acba5800f53fcb4d4973/numpy-2.5.5-cp314-cp314t-macosx_14_0_x86_64.whl", hash = "sha256:b3d328eebe0056c634878c251131d73d74e0c4af317a3aea718816d6fa0bb963", size = 6897520, upload-time = "2026-11-15T21:31:25.976Z" }, + { url = "https://files.pythonhosted.org/packages/b1/ee/a0fb000c6a57602a7a2958f72a5d07837dd88cb9a158f1edb0a279126428/numpy-2.5.5-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e99bf8a3d54693f2063fa6c7d13955d460a9f543d9dbc80e69a92da288259b28", size = 15342131, upload-time = "2026-11-15T21:31:27.707Z" }, + { url = "https://files.pythonhosted.org/packages/93/43/85cfae380e4e2fe1d246c39a12c88c7a224e751604b6fa13236df3b86600/numpy-2.5.5-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:479e43c183049ec1a820eeb36549e493924f56b3e893a1d5865d0fff12abad47", size = 15751077, upload-time = "2026-11-15T21:31:29.851Z" }, + { url = "https://files.pythonhosted.org/packages/cd/41/5938f05404d2f4531409b658cfd578b0b653a87f22915759afa7f414b4f3/numpy-2.5.5-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:9f44875964889bd9088cf838d191b58c04088d10b4dc9b140e9da2431ecfbb60", size = 16569544, upload-time = "2026-11-15T21:31:32.017Z" }, + { url = "https://files.pythonhosted.org/packages/a0/b1/75f51d9e2fb970228bd7599d46f34eb0829070b4df8b293c43fdf1c81c44/numpy-2.5.5-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:2a9c502cdb9a3050ac1686774624cc278658b11f72e11b971a3a8542d6ded357", size = 17122494, upload-time = "2026-11-15T21:31:34.267Z" }, + { url = "https://files.pythonhosted.org/packages/71/1b/68f54066eb445a98e7c677863d1ece9667151f8d8565eea5860d8445fb72/numpy-2.5.5-cp314-cp314t-win32.whl", hash = "sha256:dec156cda7322bcb1479ca992794705fe226a911b0ffebe13bff97fa1f3be63c", size = 6350011, upload-time = "2026-11-15T21:31:36.491Z" }, + { url = "https://files.pythonhosted.org/packages/58/29/c57eca063b680b23c0ca8d07789b3011a9e962fd4994a656b11f7a21226e/numpy-2.5.5-cp314-cp314t-win_amd64.whl", hash = "sha256:84dfb1611993a3525b250c955b1e2ebab6ce0ed36e4ab4dd5746432dd362fb5d", size = 12909875, upload-time = "2026-11-15T21:31:38.311Z" }, + { url = "https://files.pythonhosted.org/packages/72/06/70b2717589eb8ba57bce789c0f1e477fc5869c720fa0ad444e31fb9aef55/numpy-2.5.5-cp314-cp314t-win_arm64.whl", hash = "sha256:567994389edd2963b643d63d826138402a63401176f1daf84dbb3204eb838b39", size = 10899621, upload-time = "2026-11-15T21:31:40.518Z" }, + { url = "https://files.pythonhosted.org/packages/9c/61/8578c9fdbfb59ba2c4ee633102666937ce4e66f8c3de8bc700573c856af5/numpy-2.5.5-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:ad0c8b963f9281f2eb118e283eb61964c716c8e344ed8e8c309b49c586d41ed1", size = 14752489, upload-time = "2026-11-15T21:31:42.902Z" }, + { url = "https://files.pythonhosted.org/packages/a7/ef/d0f38ea7ca697c03af3d687cb70d8ddc8414dcf430f8f7194ab7359d80f6/numpy-2.5.5-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:d7d9be35d50366fe5ac28188364154c9e1e22ad1b977a06c9465c0680c8eeefe", size = 10753050, upload-time = "2026-11-15T21:31:45.123Z" }, + { url = "https://files.pythonhosted.org/packages/84/b7/de9e6d1ffbc33cc7bcf452c7924a7953daaf06bde559b73ebef93b7f85c6/numpy-2.5.5-cp315-cp315-macosx_14_0_arm64.whl", hash = "sha256:d0c7c0dfabdcb7cde080b7c9ef301c7533e90110198b39965141a903c7dddcf8", size = 5516639, upload-time = "2026-11-15T21:31:47.537Z" }, + { url = "https://files.pythonhosted.org/packages/ac/ac/a95824882c5818a7e31893ebdab2944f5e65b4108bc8bed9e240e3c624be/numpy-2.5.5-cp315-cp315-macosx_14_0_x86_64.whl", hash = "sha256:b7dd0287b6cdd35a27d5678a56b1bc508ff206c2b78b30b4821dd5c3197b393a", size = 6797936, upload-time = "2026-11-15T21:31:49.2Z" }, + { url = "https://files.pythonhosted.org/packages/08/64/c39a7b41df0d433ff37fd4fdd6e32b3fa3b51a82110bbcd386d0e37f5da6/numpy-2.5.5-cp315-cp315-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a207eb88a18e30add597c366c1db7e79f48fc94084b8e7dbd0eefb95a645db12", size = 15294336, upload-time = "2026-11-15T21:31:50.908Z" }, + { url = "https://files.pythonhosted.org/packages/d0/ce/ef0ca1a7dbf657a68ec52ce150cc477a7cdd8d09c7ef77662cdecbca39e4/numpy-2.5.5-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9c3e1ac3cd5d3329f4d38709ff4c21f0621bbe8779c094d6de8ec8347246fcdc", size = 15713633, upload-time = "2026-11-15T21:31:53.261Z" }, + { url = "https://files.pythonhosted.org/packages/dd/08/023029d269a7adec40749ef98439af4260ee92bc203d8a7749cc4eee8183/numpy-2.5.5-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:095113ee2ceab6a9501b184eff5ea806973d3a63d74a8cbc15e4911e754da9c1", size = 16510376, upload-time = "2026-11-15T21:31:55.401Z" }, + { url = "https://files.pythonhosted.org/packages/9f/0b/38e65a5ff61b174df3a930898a3b31e94b24caaf4155c719d18417ad63b1/numpy-2.5.5-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:bea7de36bb304a850710c1dfbb35e7cdb9a005928106a3adfc6dc3a753469dec", size = 17078342, upload-time = "2026-11-15T21:31:57.714Z" }, + { url = "https://files.pythonhosted.org/packages/4d/3e/09a62f920e5869888387ba988eeba560057c1f718404cc737e5dbc07e81e/numpy-2.5.5-cp315-cp315-win32.whl", hash = "sha256:fd47c92e0d1e53f9498b1a30305072434fbae6b5a305cbcab514f959e9ce0fab", size = 6192918, upload-time = "2026-11-15T21:31:59.798Z" }, + { url = "https://files.pythonhosted.org/packages/5a/7e/a4c5b4b30dbab285b380130dbf780bccece06de020221491058ea2c66310/numpy-2.5.5-cp315-cp315-win_amd64.whl", hash = "sha256:ae9cfe4e985139c5f2db69d4310de7348bd0abc02cfdc06991c4419065f6fdca", size = 12710024, upload-time = "2026-11-15T21:32:01.352Z" }, + { url = "https://files.pythonhosted.org/packages/7d/57/bdec7de41e7442b9ea0ac938b7597f754d4d625d853551466e8a208e3e64/numpy-2.5.5-cp315-cp315-win_arm64.whl", hash = "sha256:08f1b9abf1707fa89c125aaa17e78389c063fb20ce37a141b47821e996f4a1db", size = 10814707, upload-time = "2026-11-15T21:32:03.326Z" }, + { url = "https://files.pythonhosted.org/packages/f0/e9/7f20d2144d4fbe2876d567a1ae1266cb62a67498af7d3006e2a0ba93deed/numpy-2.5.5-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:3d59ab8f6bfc4ffd29b0f558450e17922c1bc88459882e37726fbcd5834afbfd", size = 14845589, upload-time = "2026-11-15T21:32:05.476Z" }, + { url = "https://files.pythonhosted.org/packages/66/02/ded297ac4c917f7cf90254a50f888f992c028e2ed9a3efd82349c12d4904/numpy-2.5.5-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:bf6fa5a4d73b3a9699a57b8824d4863acde7241808a5305882222843537f02a2", size = 10851494, upload-time = "2026-11-15T21:32:07.944Z" }, + { url = "https://files.pythonhosted.org/packages/c6/ac/1ae013866575827dcec6239ca413b76c05652fa5ac405afd8d904940197c/numpy-2.5.5-cp315-cp315t-macosx_14_0_arm64.whl", hash = "sha256:d64daa409e9b1ac818b0c59e47b005f802e130c8281e40c6a2f7e70c43f75e0f", size = 5615246, upload-time = "2026-11-15T21:32:09.876Z" }, + { url = "https://files.pythonhosted.org/packages/f5/e2/2d89896606a325e584157fe669578ac1b22558e4b3e45e0cb554970e5a19/numpy-2.5.5-cp315-cp315t-macosx_14_0_x86_64.whl", hash = "sha256:ff5c1ab54a637c0adcdbb69ad10e5c4f1c4dedba69c0d1de383249b70c36908f", size = 6890873, upload-time = "2026-11-15T21:32:11.545Z" }, + { url = "https://files.pythonhosted.org/packages/4f/a0/de0484dbe0665ae69cbf9c2bb777c2fa4f402e03a102384c54fe54048d44/numpy-2.5.5-cp315-cp315t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:178cb1eaed819b2cb4e398c554b0776d1499f307e30cb58b9bae1921de35dae6", size = 15340077, upload-time = "2026-11-15T21:32:13.223Z" }, + { url = "https://files.pythonhosted.org/packages/39/d8/60a70cb61b8063e4dfc5b8b55f93c247cb7f1a36515d810e70ca94446396/numpy-2.5.5-cp315-cp315t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b6e30929e3443f46aa7be2749fb003fefbbad6b6a1e2168bf8850a55b657914a", size = 15752447, upload-time = "2026-11-15T21:32:15.629Z" }, + { url = "https://files.pythonhosted.org/packages/09/14/db7e8f5560a329a118bcea53da883f077bac5f00124799c5ac7e9eb1823e/numpy-2.5.5-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:2efb2ae4e0414b6bd636dde7235c158cd65dd52891ff64a320a4847a8ce7400f", size = 16566475, upload-time = "2026-11-15T21:32:17.974Z" }, + { url = "https://files.pythonhosted.org/packages/ec/33/060b8c68e2ed79fe50a20139f7f89fa2d9862f2d3e127fc353d8e6b2589c/numpy-2.5.5-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:32dce94d74bb4d5bb058d65b0d9dad7fa61d07ff9375fd7695d8aa7ea82ee73d", size = 17120613, upload-time = "2026-11-15T21:32:20.094Z" }, + { url = "https://files.pythonhosted.org/packages/99/3a/ab02c902cb380d0b950eccda4f0b67ac4f66ba490c98756d38adc4b3ccb5/numpy-2.5.5-cp315-cp315t-win32.whl", hash = "sha256:b5d08742de581c9eb61102768ccca125a2982913de399611b56981a07278de74", size = 6344124, upload-time = "2026-11-15T21:32:22.058Z" }, + { url = "https://files.pythonhosted.org/packages/fd/49/b04b1f12231e6fbcf26fd5e7949f629530e11c46a6fcd91923f61b017243/numpy-2.5.5-cp315-cp315t-win_amd64.whl", hash = "sha256:410eab02c6718cb42d06ccbb8604659f3522d2ce06ae70cacd5042092659f5af", size = 12898288, upload-time = "2026-11-15T21:32:23.871Z" }, + { url = "https://files.pythonhosted.org/packages/36/7b/935a5896b0bd441c6dd6da81f39bc5ebf8d5da891b7dcff768e1e1c088b5/numpy-2.5.5-cp315-cp315t-win_arm64.whl", hash = "sha256:b6ecbc1ff292c6799067d8064a4dd35cd25ba9d1a24aa41dd635d701691a49b5", size = 10891314, upload-time = "2026-11-15T21:32:26.357Z" }, +] + +[[package]] +name = "packaging" +version = "26.3" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.10'", +] +sdist = { url = "https://files.pythonhosted.org/packages/7d/fa/3944b40b07da9ce895c0e6303a5ab7d53da063554f534556b134a54d6093/packaging-26.3.tar.gz", hash = "sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79", size = 313412, upload-time = "2026-08-04T18:15:28.737Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/63/34/ba1c580383c9eada3711951fef0795c80b829a078d72188184bcab9dd527/packaging-26.3-py3-none-any.whl", hash = "sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c", size = 129956, upload-time = "2026-08-04T18:15:27.159Z" }, +] + +[[package]] +name = "packaging" +version = "26.4" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.12'", + "python_full_version == '3.11.*'", + "python_full_version == '3.10.*'", +] +sdist = { url = "https://files.pythonhosted.org/packages/c3/75/ffb1dc0ed12352139fb4ca0e3fde4325a23e3d0f3f40efe89717bc4f557b/packaging-26.4.tar.gz", hash = "sha256:c4b671c41ddb9bf26e543c37723610d28fb6bf7affc4da17cf048d419d2c062a", size = 355877, upload-time = "2026-11-23T21:44:11.152Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ba/7b/5504f91c9c2733f693d7759e50ede5d27119d4da7e5836c46d3b5ff81d56/packaging-26.4-py3-none-any.whl", hash = "sha256:81383611a09c1bc0b08b76e0fd5829d7c6824c65b27a6aee339da133f4233ea2", size = 140049, upload-time = "2026-11-23T21:44:09.531Z" }, +] + +[[package]] +name = "pluggy" +version = "1.6.0" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.10'", +] +sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload-time = "2025-05-15T12:30:07.975Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" }, +] + +[[package]] +name = "pluggy" +version = "1.7.0" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.12'", + "python_full_version == '3.11.*'", + "python_full_version == '3.10.*'", +] +sdist = { url = "https://files.pythonhosted.org/packages/bf/db/7fc19e6f2dc92a966727031389fc2e08b558f0f25eb7403c1119ad4713cd/pluggy-1.7.0.tar.gz", hash = "sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8", size = 123304, upload-time = "2026-10-15T09:50:58.343Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/40/9e/2b38731e0fc536806f16490e1a12d7f0dc2a1235aa8cc07bcc75416a7daa/pluggy-1.7.0-py3-none-any.whl", hash = "sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec", size = 27082, upload-time = "2026-10-15T09:50:56.808Z" }, +] + +[[package]] +name = "pygments" +version = "2.21.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/49/2e/ced460408999b33da6b31b0021b0f37d329e202d4169aeb164493778f25b/pygments-2.21.0.tar.gz", hash = "sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c", size = 5005329, upload-time = "2026-08-17T08:02:48.824Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl", hash = "sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9", size = 1250147, upload-time = "2026-08-17T08:02:44.912Z" }, +] + +[[package]] +name = "pyspla" +source = { editable = "." } + +[package.dev-dependencies] +dev = [ + { name = "networkx", version = "3.2.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" }, + { name = "networkx", version = "3.4.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.10.*'" }, + { name = "networkx", version = "3.6.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.11.*'" }, + { name = "networkx", version = "3.7", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.12'" }, + { name = "pytest", version = "8.4.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" }, + { name = "pytest", version = "9.2.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" }, + { name = "ruff" }, + { name = "scipy", version = "1.13.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" }, + { name = "scipy", version = "1.15.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.10.*'" }, + { name = "scipy", version = "1.17.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.11.*'" }, + { name = "scipy", version = "1.18.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.12'" }, +] + +[package.metadata] + +[package.metadata.requires-dev] +dev = [ + { name = "networkx", specifier = ">=3.0" }, + { name = "pytest", specifier = ">=8.0" }, + { name = "ruff", specifier = ">=0.5" }, + { name = "scipy", specifier = ">=1.10" }, +] + +[[package]] +name = "pytest" +version = "8.4.2" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.10'", +] +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "exceptiongroup" }, + { name = "iniconfig", version = "2.1.0", source = { registry = "https://pypi.org/simple" } }, + { name = "packaging", version = "26.3", source = { registry = "https://pypi.org/simple" } }, + { name = "pluggy", version = "1.6.0", source = { registry = "https://pypi.org/simple" } }, + { name = "pygments" }, + { name = "tomli" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a3/5c/00a0e072241553e1a7496d638deababa67c5058571567b92a7eaa258397c/pytest-8.4.2.tar.gz", hash = "sha256:86c0d0b93306b961d58d62a4db4879f27fe25513d4b969df351abdddb3c30e01", size = 1519618, upload-time = "2025-09-04T14:34:22.711Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a8/a4/20da314d277121d6534b3a980b29035dcd51e6744bd79075a6ce8fa4eb8d/pytest-8.4.2-py3-none-any.whl", hash = "sha256:872f880de3fc3a5bdc88a11b39c9710c3497a547cfa9320bc3c5e62fbf272e79", size = 365750, upload-time = "2025-09-04T14:34:20.226Z" }, +] + +[[package]] +name = "pytest" +version = "9.2.0" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.12'", + "python_full_version == '3.11.*'", + "python_full_version == '3.10.*'", +] +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "exceptiongroup", marker = "python_full_version < '3.11'" }, + { name = "iniconfig", version = "2.3.1", source = { registry = "https://pypi.org/simple" } }, + { name = "packaging", version = "26.4", source = { registry = "https://pypi.org/simple" } }, + { name = "pluggy", version = "1.7.0", source = { registry = "https://pypi.org/simple" } }, + { name = "pygments" }, + { name = "tomli", marker = "python_full_version < '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/79/42/bb4641652e58dedeac2ec51abc1f8cae4fee4ec63899a0999016229a0f2a/pytest-9.2.0.tar.gz", hash = "sha256:97c4f3b1f3c7414aa36465e09b8220f1d03627993bd51b1282e193753c80557b", size = 1797555, upload-time = "2026-10-27T21:30:20.728Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/51/39/1f5d8c8877a0fa327db959c19341d4be61660de1ab6b7391f9eb805bcd67/pytest-9.2.0-py3-none-any.whl", hash = "sha256:07acdcf88ec174f907dc01af70bf52d49b014bbab03faeeade31c96b18c2e588", size = 411776, upload-time = "2026-10-27T21:30:19.131Z" }, +] + +[[package]] +name = "ruff" +version = "0.17.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/df/8e/6929d337aa5380aafc7355f3149f3ccfe55cba5fdd34a045697ebaceb5a0/ruff-0.17.6.tar.gz", hash = "sha256:2b04276561331300325040bdca21460770029ec574d4c479099e39e8ad1ed43c", size = 5374388, upload-time = "2026-11-19T15:56:27.106Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/12/5d/38ef6310c22cacb094e9ae0ff7964062e04ffeecb45ee296894c2b1acc54/ruff-0.17.6-py3-none-linux_armv6l.whl", hash = "sha256:084d9c8f5ec718e7eba007dba339e7cb4f7571d2f267558ae080bf428fb6a69b", size = 10174693, upload-time = "2026-11-19T15:55:52.414Z" }, + { url = "https://files.pythonhosted.org/packages/a2/ed/fd35261049920a4888ef7c787a5c27089502077a4910f6ca8f1213157d6d/ruff-0.17.6-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:9d44ef2140402043fd6f689ef541858b80883a8b0a02e38539ef0614ebe57d0c", size = 10221650, upload-time = "2026-11-19T15:55:54.962Z" }, + { url = "https://files.pythonhosted.org/packages/ba/d4/c31391b36c729cd9fafa65b7a52a58850b99afb2b65da6be4263a53302f2/ruff-0.17.6-py3-none-macosx_11_0_arm64.whl", hash = "sha256:9fbddc08577592e283c265d865e0182de6e33db185494db7b06290d989d888e5", size = 9580986, upload-time = "2026-11-19T15:55:57.391Z" }, + { url = "https://files.pythonhosted.org/packages/eb/11/f3032684dcb3a676d7924545153d76fb56f76753e038f2ea650b99c71bdf/ruff-0.17.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:435241c61af5909a022f76219d3d1bf24730dc1bf0acabb5ddf4b569ab3cbb30", size = 10271368, upload-time = "2026-11-19T15:55:59.654Z" }, + { url = "https://files.pythonhosted.org/packages/08/30/c1e024eeb5bae99ae78c6b896ed108f64c9c845a03b56eaeff098e99b6e6/ruff-0.17.6-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d006bbb2945edb17b0ce6a0c1b5f5a8d81ba11dbac294a0a925effa22ce34feb", size = 9981564, upload-time = "2026-11-19T15:56:01.807Z" }, + { url = "https://files.pythonhosted.org/packages/7d/a5/da3e0c2d4bf02b3ca6c1d7fa4bb04d0081e340b1dd03c4f83b1bec3e15c1/ruff-0.17.6-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fd661702202a89c00a4c9d0339008805fa5876bfa1c57e165495c2e62230dfbf", size = 10641991, upload-time = "2026-11-19T15:56:03.981Z" }, + { url = "https://files.pythonhosted.org/packages/4d/c1/6d7f981e86201c9db457cca99fd2c09b77574ebab37dff3e9239b218603c/ruff-0.17.6-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6a12c50a33936dc00db2be21ba25fb168a8b95c55eda2a3ac85005af69885e4b", size = 11403484, upload-time = "2026-11-19T15:56:05.778Z" }, + { url = "https://files.pythonhosted.org/packages/c3/92/8182f07b94998541d5f8f38f53da465aa28062afce24ecc398f45bfc62f1/ruff-0.17.6-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b5aba93b3db4b70c5697e4fee6e0d5b9c8452a9a3a03679611cadc25915a2173", size = 10892316, upload-time = "2026-11-19T15:56:08.016Z" }, + { url = "https://files.pythonhosted.org/packages/be/48/3df7d81249fd69ee6a49519b149fb5d11e13118fd7d0e8d65329a237087b/ruff-0.17.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aa3b08254a732acba246891089a152c47c5733dc36b8ecb76ce8602f8326e5e4", size = 10645279, upload-time = "2026-11-19T15:56:09.785Z" }, + { url = "https://files.pythonhosted.org/packages/71/80/4d232281544345d7beb98d1d32c24dae804ed360780a6f7753738b81225e/ruff-0.17.6-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:0692088e6b33455572fb18465e891b443f196e98dc1986825685c77ff6f4c5ac", size = 10534501, upload-time = "2026-11-19T15:56:11.718Z" }, + { url = "https://files.pythonhosted.org/packages/98/0a/b477f075a4a94eb541bf1c759a3e72b2a3d6390af7a13a5be0887229f67c/ruff-0.17.6-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:fb589e032806bb942e4fb526f30b80a1a64112147ed9f1d38cc3de2e255b6f45", size = 10136036, upload-time = "2026-11-19T15:56:13.779Z" }, + { url = "https://files.pythonhosted.org/packages/f1/d8/cf32fbfeb1fcda1470fb5c3bee50c69ee6bca257d487ec1eb17a0387edb4/ruff-0.17.6-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:1939b3d701c7b6981b7cf93473de5bf88b129b9ba84efaed5154cc517c44634d", size = 9969640, upload-time = "2026-11-19T15:56:15.738Z" }, + { url = "https://files.pythonhosted.org/packages/a7/22/bb9f9752f7fcdfdc8b9c51576cc142bb377ade745290e35085173963c7be/ruff-0.17.6-py3-none-musllinux_1_2_i686.whl", hash = "sha256:1a0bea6aa1216e0ec4cd35d3dbccec0d772a7c2aad28ec9c6e82571dff2c20b0", size = 10389427, upload-time = "2026-11-19T15:56:17.617Z" }, + { url = "https://files.pythonhosted.org/packages/81/c7/e09d220818ab146b736d62e0676dad215215d7de0884bbdad9fa075dc7d2/ruff-0.17.6-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:3db61f5015600543a581b07fa7f6f64afa0eeedefe16034cadd88c4074087582", size = 10760296, upload-time = "2026-11-19T15:56:19.463Z" }, + { url = "https://files.pythonhosted.org/packages/2e/09/28329441dfa2c463e2d377a69d4ebbe4d51665e9dbd49fb421f3bc80d775/ruff-0.17.6-py3-none-win32.whl", hash = "sha256:c2f4af6670b7a0501904e881bb3f1f24bd0d964dec1eedbd85f0eb73786e1128", size = 9966266, upload-time = "2026-11-19T15:56:21.581Z" }, + { url = "https://files.pythonhosted.org/packages/4b/9d/18ba9730addfc7554c70d6f171fb8dc2c08e774d9fb2b98e7946ef845c59/ruff-0.17.6-py3-none-win_amd64.whl", hash = "sha256:9cd2fd9923e9806b8b6b67a3469e2258e84bd4d21e45d5a1a690afdfb9c8e57d", size = 10365847, upload-time = "2026-11-19T15:56:23.582Z" }, + { url = "https://files.pythonhosted.org/packages/70/8a/59c33e2a64a4f9672f7f842a0dc522915cfbbaffd13d37d0cec57d1c5c5d/ruff-0.17.6-py3-none-win_arm64.whl", hash = "sha256:d8b14e1473dc86ab9069cf7a2ba5041dc012f59110201844ed04cfddf07055a0", size = 9926224, upload-time = "2026-11-19T15:56:25.269Z" }, +] + +[[package]] +name = "scipy" +version = "1.13.1" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.10'", +] +dependencies = [ + { name = "numpy", version = "2.0.2", source = { registry = "https://pypi.org/simple" } }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ae/00/48c2f661e2816ccf2ecd77982f6605b2950afe60f60a52b4cbbc2504aa8f/scipy-1.13.1.tar.gz", hash = "sha256:095a87a0312b08dfd6a6155cbbd310a8c51800fc931b8c0b84003014b874ed3c", size = 57210720, upload-time = "2024-05-23T03:29:26.079Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/33/59/41b2529908c002ade869623b87eecff3e11e3ce62e996d0bdcb536984187/scipy-1.13.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:20335853b85e9a49ff7572ab453794298bcf0354d8068c5f6775a0eabf350aca", size = 39328076, upload-time = "2024-05-23T03:19:01.687Z" }, + { url = "https://files.pythonhosted.org/packages/d5/33/f1307601f492f764062ce7dd471a14750f3360e33cd0f8c614dae208492c/scipy-1.13.1-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:d605e9c23906d1994f55ace80e0125c587f96c020037ea6aa98d01b4bd2e222f", size = 30306232, upload-time = "2024-05-23T03:19:09.089Z" }, + { url = "https://files.pythonhosted.org/packages/c0/66/9cd4f501dd5ea03e4a4572ecd874936d0da296bd04d1c45ae1a4a75d9c3a/scipy-1.13.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cfa31f1def5c819b19ecc3a8b52d28ffdcc7ed52bb20c9a7589669dd3c250989", size = 33743202, upload-time = "2024-05-23T03:19:15.138Z" }, + { url = "https://files.pythonhosted.org/packages/a3/ba/7255e5dc82a65adbe83771c72f384d99c43063648456796436c9a5585ec3/scipy-1.13.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f26264b282b9da0952a024ae34710c2aff7d27480ee91a2e82b7b7073c24722f", size = 38577335, upload-time = "2024-05-23T03:19:21.984Z" }, + { url = "https://files.pythonhosted.org/packages/49/a5/bb9ded8326e9f0cdfdc412eeda1054b914dfea952bda2097d174f8832cc0/scipy-1.13.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:eccfa1906eacc02de42d70ef4aecea45415f5be17e72b61bafcfd329bdc52e94", size = 38820728, upload-time = "2024-05-23T03:19:28.225Z" }, + { url = "https://files.pythonhosted.org/packages/12/30/df7a8fcc08f9b4a83f5f27cfaaa7d43f9a2d2ad0b6562cced433e5b04e31/scipy-1.13.1-cp310-cp310-win_amd64.whl", hash = "sha256:2831f0dc9c5ea9edd6e51e6e769b655f08ec6db6e2e10f86ef39bd32eb11da54", size = 46210588, upload-time = "2024-05-23T03:19:35.661Z" }, + { url = "https://files.pythonhosted.org/packages/b4/15/4a4bb1b15bbd2cd2786c4f46e76b871b28799b67891f23f455323a0cdcfb/scipy-1.13.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:27e52b09c0d3a1d5b63e1105f24177e544a222b43611aaf5bc44d4a0979e32f9", size = 39333805, upload-time = "2024-05-23T03:19:43.081Z" }, + { url = "https://files.pythonhosted.org/packages/ba/92/42476de1af309c27710004f5cdebc27bec62c204db42e05b23a302cb0c9a/scipy-1.13.1-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:54f430b00f0133e2224c3ba42b805bfd0086fe488835effa33fa291561932326", size = 30317687, upload-time = "2024-05-23T03:19:48.799Z" }, + { url = "https://files.pythonhosted.org/packages/80/ba/8be64fe225360a4beb6840f3cbee494c107c0887f33350d0a47d55400b01/scipy-1.13.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e89369d27f9e7b0884ae559a3a956e77c02114cc60a6058b4e5011572eea9299", size = 33694638, upload-time = "2024-05-23T03:19:55.104Z" }, + { url = "https://files.pythonhosted.org/packages/36/07/035d22ff9795129c5a847c64cb43c1fa9188826b59344fee28a3ab02e283/scipy-1.13.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a78b4b3345f1b6f68a763c6e25c0c9a23a9fd0f39f5f3d200efe8feda560a5fa", size = 38569931, upload-time = "2024-05-23T03:20:01.82Z" }, + { url = "https://files.pythonhosted.org/packages/d9/10/f9b43de37e5ed91facc0cfff31d45ed0104f359e4f9a68416cbf4e790241/scipy-1.13.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:45484bee6d65633752c490404513b9ef02475b4284c4cfab0ef946def50b3f59", size = 38838145, upload-time = "2024-05-23T03:20:09.173Z" }, + { url = "https://files.pythonhosted.org/packages/4a/48/4513a1a5623a23e95f94abd675ed91cfb19989c58e9f6f7d03990f6caf3d/scipy-1.13.1-cp311-cp311-win_amd64.whl", hash = "sha256:5713f62f781eebd8d597eb3f88b8bf9274e79eeabf63afb4a737abc6c84ad37b", size = 46196227, upload-time = "2024-05-23T03:20:16.433Z" }, + { url = "https://files.pythonhosted.org/packages/f2/7b/fb6b46fbee30fc7051913068758414f2721003a89dd9a707ad49174e3843/scipy-1.13.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:5d72782f39716b2b3509cd7c33cdc08c96f2f4d2b06d51e52fb45a19ca0c86a1", size = 39357301, upload-time = "2024-05-23T03:20:23.538Z" }, + { url = "https://files.pythonhosted.org/packages/dc/5a/2043a3bde1443d94014aaa41e0b50c39d046dda8360abd3b2a1d3f79907d/scipy-1.13.1-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:017367484ce5498445aade74b1d5ab377acdc65e27095155e448c88497755a5d", size = 30363348, upload-time = "2024-05-23T03:20:29.885Z" }, + { url = "https://files.pythonhosted.org/packages/e7/cb/26e4a47364bbfdb3b7fb3363be6d8a1c543bcd70a7753ab397350f5f189a/scipy-1.13.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:949ae67db5fa78a86e8fa644b9a6b07252f449dcf74247108c50e1d20d2b4627", size = 33406062, upload-time = "2024-05-23T03:20:36.012Z" }, + { url = "https://files.pythonhosted.org/packages/88/ab/6ecdc526d509d33814835447bbbeedbebdec7cca46ef495a61b00a35b4bf/scipy-1.13.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:de3ade0e53bc1f21358aa74ff4830235d716211d7d077e340c7349bc3542e884", size = 38218311, upload-time = "2024-05-23T03:20:42.086Z" }, + { url = "https://files.pythonhosted.org/packages/0b/00/9f54554f0f8318100a71515122d8f4f503b1a2c4b4cfab3b4b68c0eb08fa/scipy-1.13.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:2ac65fb503dad64218c228e2dc2d0a0193f7904747db43014645ae139c8fad16", size = 38442493, upload-time = "2024-05-23T03:20:48.292Z" }, + { url = "https://files.pythonhosted.org/packages/3e/df/963384e90733e08eac978cd103c34df181d1fec424de383cdc443f418dd4/scipy-1.13.1-cp312-cp312-win_amd64.whl", hash = "sha256:cdd7dacfb95fea358916410ec61bbc20440f7860333aee6d882bb8046264e949", size = 45910955, upload-time = "2024-05-23T03:20:55.091Z" }, + { url = "https://files.pythonhosted.org/packages/7f/29/c2ea58c9731b9ecb30b6738113a95d147e83922986b34c685b8f6eefde21/scipy-1.13.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:436bbb42a94a8aeef855d755ce5a465479c721e9d684de76bf61a62e7c2b81d5", size = 39352927, upload-time = "2024-05-23T03:21:01.95Z" }, + { url = "https://files.pythonhosted.org/packages/5c/c0/e71b94b20ccf9effb38d7147c0064c08c622309fd487b1b677771a97d18c/scipy-1.13.1-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:8335549ebbca860c52bf3d02f80784e91a004b71b059e3eea9678ba994796a24", size = 30324538, upload-time = "2024-05-23T03:21:07.634Z" }, + { url = "https://files.pythonhosted.org/packages/6d/0f/aaa55b06d474817cea311e7b10aab2ea1fd5d43bc6a2861ccc9caec9f418/scipy-1.13.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d533654b7d221a6a97304ab63c41c96473ff04459e404b83275b60aa8f4b7004", size = 33732190, upload-time = "2024-05-23T03:21:14.41Z" }, + { url = "https://files.pythonhosted.org/packages/35/f5/d0ad1a96f80962ba65e2ce1de6a1e59edecd1f0a7b55990ed208848012e0/scipy-1.13.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:637e98dcf185ba7f8e663e122ebf908c4702420477ae52a04f9908707456ba4d", size = 38612244, upload-time = "2024-05-23T03:21:21.827Z" }, + { url = "https://files.pythonhosted.org/packages/8d/02/1165905f14962174e6569076bcc3315809ae1291ed14de6448cc151eedfd/scipy-1.13.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:a014c2b3697bde71724244f63de2476925596c24285c7a637364761f8710891c", size = 38845637, upload-time = "2024-05-23T03:21:28.729Z" }, + { url = "https://files.pythonhosted.org/packages/3e/77/dab54fe647a08ee4253963bcd8f9cf17509c8ca64d6335141422fe2e2114/scipy-1.13.1-cp39-cp39-win_amd64.whl", hash = "sha256:392e4ec766654852c25ebad4f64e4e584cf19820b980bc04960bca0b0cd6eaa2", size = 46227440, upload-time = "2024-05-23T03:21:35.888Z" }, +] + +[[package]] +name = "scipy" +version = "1.15.3" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version == '3.10.*'", +] +dependencies = [ + { name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" } }, +] +sdist = { url = "https://files.pythonhosted.org/packages/0f/37/6964b830433e654ec7485e45a00fc9a27cf868d622838f6b6d9c5ec0d532/scipy-1.15.3.tar.gz", hash = "sha256:eae3cf522bc7df64b42cad3925c876e1b0b6c35c1337c93e12c0f366f55b0eaf", size = 59419214, upload-time = "2025-05-08T16:13:05.955Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/78/2f/4966032c5f8cc7e6a60f1b2e0ad686293b9474b65246b0c642e3ef3badd0/scipy-1.15.3-cp310-cp310-macosx_10_13_x86_64.whl", hash = "sha256:a345928c86d535060c9c2b25e71e87c39ab2f22fc96e9636bd74d1dbf9de448c", size = 38702770, upload-time = "2025-05-08T16:04:20.849Z" }, + { url = "https://files.pythonhosted.org/packages/a0/6e/0c3bf90fae0e910c274db43304ebe25a6b391327f3f10b5dcc638c090795/scipy-1.15.3-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:ad3432cb0f9ed87477a8d97f03b763fd1d57709f1bbde3c9369b1dff5503b253", size = 30094511, upload-time = "2025-05-08T16:04:27.103Z" }, + { url = "https://files.pythonhosted.org/packages/ea/b1/4deb37252311c1acff7f101f6453f0440794f51b6eacb1aad4459a134081/scipy-1.15.3-cp310-cp310-macosx_14_0_arm64.whl", hash = "sha256:aef683a9ae6eb00728a542b796f52a5477b78252edede72b8327a886ab63293f", size = 22368151, upload-time = "2025-05-08T16:04:31.731Z" }, + { url = "https://files.pythonhosted.org/packages/38/7d/f457626e3cd3c29b3a49ca115a304cebb8cc6f31b04678f03b216899d3c6/scipy-1.15.3-cp310-cp310-macosx_14_0_x86_64.whl", hash = "sha256:1c832e1bd78dea67d5c16f786681b28dd695a8cb1fb90af2e27580d3d0967e92", size = 25121732, upload-time = "2025-05-08T16:04:36.596Z" }, + { url = "https://files.pythonhosted.org/packages/db/0a/92b1de4a7adc7a15dcf5bddc6e191f6f29ee663b30511ce20467ef9b82e4/scipy-1.15.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:263961f658ce2165bbd7b99fa5135195c3a12d9bef045345016b8b50c315cb82", size = 35547617, upload-time = "2025-05-08T16:04:43.546Z" }, + { url = "https://files.pythonhosted.org/packages/8e/6d/41991e503e51fc1134502694c5fa7a1671501a17ffa12716a4a9151af3df/scipy-1.15.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9e2abc762b0811e09a0d3258abee2d98e0c703eee49464ce0069590846f31d40", size = 37662964, upload-time = "2025-05-08T16:04:49.431Z" }, + { url = "https://files.pythonhosted.org/packages/25/e1/3df8f83cb15f3500478c889be8fb18700813b95e9e087328230b98d547ff/scipy-1.15.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:ed7284b21a7a0c8f1b6e5977ac05396c0d008b89e05498c8b7e8f4a1423bba0e", size = 37238749, upload-time = "2025-05-08T16:04:55.215Z" }, + { url = "https://files.pythonhosted.org/packages/93/3e/b3257cf446f2a3533ed7809757039016b74cd6f38271de91682aa844cfc5/scipy-1.15.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:5380741e53df2c566f4d234b100a484b420af85deb39ea35a1cc1be84ff53a5c", size = 40022383, upload-time = "2025-05-08T16:05:01.914Z" }, + { url = "https://files.pythonhosted.org/packages/d1/84/55bc4881973d3f79b479a5a2e2df61c8c9a04fcb986a213ac9c02cfb659b/scipy-1.15.3-cp310-cp310-win_amd64.whl", hash = "sha256:9d61e97b186a57350f6d6fd72640f9e99d5a4a2b8fbf4b9ee9a841eab327dc13", size = 41259201, upload-time = "2025-05-08T16:05:08.166Z" }, + { url = "https://files.pythonhosted.org/packages/96/ab/5cc9f80f28f6a7dff646c5756e559823614a42b1939d86dd0ed550470210/scipy-1.15.3-cp311-cp311-macosx_10_13_x86_64.whl", hash = "sha256:993439ce220d25e3696d1b23b233dd010169b62f6456488567e830654ee37a6b", size = 38714255, upload-time = "2025-05-08T16:05:14.596Z" }, + { url = "https://files.pythonhosted.org/packages/4a/4a/66ba30abe5ad1a3ad15bfb0b59d22174012e8056ff448cb1644deccbfed2/scipy-1.15.3-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:34716e281f181a02341ddeaad584205bd2fd3c242063bd3423d61ac259ca7eba", size = 30111035, upload-time = "2025-05-08T16:05:20.152Z" }, + { url = "https://files.pythonhosted.org/packages/4b/fa/a7e5b95afd80d24313307f03624acc65801846fa75599034f8ceb9e2cbf6/scipy-1.15.3-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:3b0334816afb8b91dab859281b1b9786934392aa3d527cd847e41bb6f45bee65", size = 22384499, upload-time = "2025-05-08T16:05:24.494Z" }, + { url = "https://files.pythonhosted.org/packages/17/99/f3aaddccf3588bb4aea70ba35328c204cadd89517a1612ecfda5b2dd9d7a/scipy-1.15.3-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:6db907c7368e3092e24919b5e31c76998b0ce1684d51a90943cb0ed1b4ffd6c1", size = 25152602, upload-time = "2025-05-08T16:05:29.313Z" }, + { url = "https://files.pythonhosted.org/packages/56/c5/1032cdb565f146109212153339f9cb8b993701e9fe56b1c97699eee12586/scipy-1.15.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:721d6b4ef5dc82ca8968c25b111e307083d7ca9091bc38163fb89243e85e3889", size = 35503415, upload-time = "2025-05-08T16:05:34.699Z" }, + { url = "https://files.pythonhosted.org/packages/bd/37/89f19c8c05505d0601ed5650156e50eb881ae3918786c8fd7262b4ee66d3/scipy-1.15.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:39cb9c62e471b1bb3750066ecc3a3f3052b37751c7c3dfd0fd7e48900ed52982", size = 37652622, upload-time = "2025-05-08T16:05:40.762Z" }, + { url = "https://files.pythonhosted.org/packages/7e/31/be59513aa9695519b18e1851bb9e487de66f2d31f835201f1b42f5d4d475/scipy-1.15.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:795c46999bae845966368a3c013e0e00947932d68e235702b5c3f6ea799aa8c9", size = 37244796, upload-time = "2025-05-08T16:05:48.119Z" }, + { url = "https://files.pythonhosted.org/packages/10/c0/4f5f3eeccc235632aab79b27a74a9130c6c35df358129f7ac8b29f562ac7/scipy-1.15.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:18aaacb735ab38b38db42cb01f6b92a2d0d4b6aabefeb07f02849e47f8fb3594", size = 40047684, upload-time = "2025-05-08T16:05:54.22Z" }, + { url = "https://files.pythonhosted.org/packages/ab/a7/0ddaf514ce8a8714f6ed243a2b391b41dbb65251affe21ee3077ec45ea9a/scipy-1.15.3-cp311-cp311-win_amd64.whl", hash = "sha256:ae48a786a28412d744c62fd7816a4118ef97e5be0bee968ce8f0a2fba7acf3bb", size = 41246504, upload-time = "2025-05-08T16:06:00.437Z" }, + { url = "https://files.pythonhosted.org/packages/37/4b/683aa044c4162e10ed7a7ea30527f2cbd92e6999c10a8ed8edb253836e9c/scipy-1.15.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:6ac6310fdbfb7aa6612408bd2f07295bcbd3fda00d2d702178434751fe48e019", size = 38766735, upload-time = "2025-05-08T16:06:06.471Z" }, + { url = "https://files.pythonhosted.org/packages/7b/7e/f30be3d03de07f25dc0ec926d1681fed5c732d759ac8f51079708c79e680/scipy-1.15.3-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:185cd3d6d05ca4b44a8f1595af87f9c372bb6acf9c808e99aa3e9aa03bd98cf6", size = 30173284, upload-time = "2025-05-08T16:06:11.686Z" }, + { url = "https://files.pythonhosted.org/packages/07/9c/0ddb0d0abdabe0d181c1793db51f02cd59e4901da6f9f7848e1f96759f0d/scipy-1.15.3-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:05dc6abcd105e1a29f95eada46d4a3f251743cfd7d3ae8ddb4088047f24ea477", size = 22446958, upload-time = "2025-05-08T16:06:15.97Z" }, + { url = "https://files.pythonhosted.org/packages/af/43/0bce905a965f36c58ff80d8bea33f1f9351b05fad4beaad4eae34699b7a1/scipy-1.15.3-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:06efcba926324df1696931a57a176c80848ccd67ce6ad020c810736bfd58eb1c", size = 25242454, upload-time = "2025-05-08T16:06:20.394Z" }, + { url = "https://files.pythonhosted.org/packages/56/30/a6f08f84ee5b7b28b4c597aca4cbe545535c39fe911845a96414700b64ba/scipy-1.15.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c05045d8b9bfd807ee1b9f38761993297b10b245f012b11b13b91ba8945f7e45", size = 35210199, upload-time = "2025-05-08T16:06:26.159Z" }, + { url = "https://files.pythonhosted.org/packages/0b/1f/03f52c282437a168ee2c7c14a1a0d0781a9a4a8962d84ac05c06b4c5b555/scipy-1.15.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:271e3713e645149ea5ea3e97b57fdab61ce61333f97cfae392c28ba786f9bb49", size = 37309455, upload-time = "2025-05-08T16:06:32.778Z" }, + { url = "https://files.pythonhosted.org/packages/89/b1/fbb53137f42c4bf630b1ffdfc2151a62d1d1b903b249f030d2b1c0280af8/scipy-1.15.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:6cfd56fc1a8e53f6e89ba3a7a7251f7396412d655bca2aa5611c8ec9a6784a1e", size = 36885140, upload-time = "2025-05-08T16:06:39.249Z" }, + { url = "https://files.pythonhosted.org/packages/2e/2e/025e39e339f5090df1ff266d021892694dbb7e63568edcfe43f892fa381d/scipy-1.15.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:0ff17c0bb1cb32952c09217d8d1eed9b53d1463e5f1dd6052c7857f83127d539", size = 39710549, upload-time = "2025-05-08T16:06:45.729Z" }, + { url = "https://files.pythonhosted.org/packages/e6/eb/3bf6ea8ab7f1503dca3a10df2e4b9c3f6b3316df07f6c0ded94b281c7101/scipy-1.15.3-cp312-cp312-win_amd64.whl", hash = "sha256:52092bc0472cfd17df49ff17e70624345efece4e1a12b23783a1ac59a1b728ed", size = 40966184, upload-time = "2025-05-08T16:06:52.623Z" }, + { url = "https://files.pythonhosted.org/packages/73/18/ec27848c9baae6e0d6573eda6e01a602e5649ee72c27c3a8aad673ebecfd/scipy-1.15.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:2c620736bcc334782e24d173c0fdbb7590a0a436d2fdf39310a8902505008759", size = 38728256, upload-time = "2025-05-08T16:06:58.696Z" }, + { url = "https://files.pythonhosted.org/packages/74/cd/1aef2184948728b4b6e21267d53b3339762c285a46a274ebb7863c9e4742/scipy-1.15.3-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:7e11270a000969409d37ed399585ee530b9ef6aa99d50c019de4cb01e8e54e62", size = 30109540, upload-time = "2025-05-08T16:07:04.209Z" }, + { url = "https://files.pythonhosted.org/packages/5b/d8/59e452c0a255ec352bd0a833537a3bc1bfb679944c4938ab375b0a6b3a3e/scipy-1.15.3-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:8c9ed3ba2c8a2ce098163a9bdb26f891746d02136995df25227a20e71c396ebb", size = 22383115, upload-time = "2025-05-08T16:07:08.998Z" }, + { url = "https://files.pythonhosted.org/packages/08/f5/456f56bbbfccf696263b47095291040655e3cbaf05d063bdc7c7517f32ac/scipy-1.15.3-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:0bdd905264c0c9cfa74a4772cdb2070171790381a5c4d312c973382fc6eaf730", size = 25163884, upload-time = "2025-05-08T16:07:14.091Z" }, + { url = "https://files.pythonhosted.org/packages/a2/66/a9618b6a435a0f0c0b8a6d0a2efb32d4ec5a85f023c2b79d39512040355b/scipy-1.15.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:79167bba085c31f38603e11a267d862957cbb3ce018d8b38f79ac043bc92d825", size = 35174018, upload-time = "2025-05-08T16:07:19.427Z" }, + { url = "https://files.pythonhosted.org/packages/b5/09/c5b6734a50ad4882432b6bb7c02baf757f5b2f256041da5df242e2d7e6b6/scipy-1.15.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c9deabd6d547aee2c9a81dee6cc96c6d7e9a9b1953f74850c179f91fdc729cb7", size = 37269716, upload-time = "2025-05-08T16:07:25.712Z" }, + { url = "https://files.pythonhosted.org/packages/77/0a/eac00ff741f23bcabd352731ed9b8995a0a60ef57f5fd788d611d43d69a1/scipy-1.15.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:dde4fc32993071ac0c7dd2d82569e544f0bdaff66269cb475e0f369adad13f11", size = 36872342, upload-time = "2025-05-08T16:07:31.468Z" }, + { url = "https://files.pythonhosted.org/packages/fe/54/4379be86dd74b6ad81551689107360d9a3e18f24d20767a2d5b9253a3f0a/scipy-1.15.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:f77f853d584e72e874d87357ad70f44b437331507d1c311457bed8ed2b956126", size = 39670869, upload-time = "2025-05-08T16:07:38.002Z" }, + { url = "https://files.pythonhosted.org/packages/87/2e/892ad2862ba54f084ffe8cc4a22667eaf9c2bcec6d2bff1d15713c6c0703/scipy-1.15.3-cp313-cp313-win_amd64.whl", hash = "sha256:b90ab29d0c37ec9bf55424c064312930ca5f4bde15ee8619ee44e69319aab163", size = 40988851, upload-time = "2025-05-08T16:08:33.671Z" }, + { url = "https://files.pythonhosted.org/packages/1b/e9/7a879c137f7e55b30d75d90ce3eb468197646bc7b443ac036ae3fe109055/scipy-1.15.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:3ac07623267feb3ae308487c260ac684b32ea35fd81e12845039952f558047b8", size = 38863011, upload-time = "2025-05-08T16:07:44.039Z" }, + { url = "https://files.pythonhosted.org/packages/51/d1/226a806bbd69f62ce5ef5f3ffadc35286e9fbc802f606a07eb83bf2359de/scipy-1.15.3-cp313-cp313t-macosx_12_0_arm64.whl", hash = "sha256:6487aa99c2a3d509a5227d9a5e889ff05830a06b2ce08ec30df6d79db5fcd5c5", size = 30266407, upload-time = "2025-05-08T16:07:49.891Z" }, + { url = "https://files.pythonhosted.org/packages/e5/9b/f32d1d6093ab9eeabbd839b0f7619c62e46cc4b7b6dbf05b6e615bbd4400/scipy-1.15.3-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:50f9e62461c95d933d5c5ef4a1f2ebf9a2b4e83b0db374cb3f1de104d935922e", size = 22540030, upload-time = "2025-05-08T16:07:54.121Z" }, + { url = "https://files.pythonhosted.org/packages/e7/29/c278f699b095c1a884f29fda126340fcc201461ee8bfea5c8bdb1c7c958b/scipy-1.15.3-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:14ed70039d182f411ffc74789a16df3835e05dc469b898233a245cdfd7f162cb", size = 25218709, upload-time = "2025-05-08T16:07:58.506Z" }, + { url = "https://files.pythonhosted.org/packages/24/18/9e5374b617aba742a990581373cd6b68a2945d65cc588482749ef2e64467/scipy-1.15.3-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0a769105537aa07a69468a0eefcd121be52006db61cdd8cac8a0e68980bbb723", size = 34809045, upload-time = "2025-05-08T16:08:03.929Z" }, + { url = "https://files.pythonhosted.org/packages/e1/fe/9c4361e7ba2927074360856db6135ef4904d505e9b3afbbcb073c4008328/scipy-1.15.3-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9db984639887e3dffb3928d118145ffe40eff2fa40cb241a306ec57c219ebbbb", size = 36703062, upload-time = "2025-05-08T16:08:09.558Z" }, + { url = "https://files.pythonhosted.org/packages/b7/8e/038ccfe29d272b30086b25a4960f757f97122cb2ec42e62b460d02fe98e9/scipy-1.15.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:40e54d5c7e7ebf1aa596c374c49fa3135f04648a0caabcb66c52884b943f02b4", size = 36393132, upload-time = "2025-05-08T16:08:15.34Z" }, + { url = "https://files.pythonhosted.org/packages/10/7e/5c12285452970be5bdbe8352c619250b97ebf7917d7a9a9e96b8a8140f17/scipy-1.15.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:5e721fed53187e71d0ccf382b6bf977644c533e506c4d33c3fb24de89f5c3ed5", size = 38979503, upload-time = "2025-05-08T16:08:21.513Z" }, + { url = "https://files.pythonhosted.org/packages/81/06/0a5e5349474e1cbc5757975b21bd4fad0e72ebf138c5592f191646154e06/scipy-1.15.3-cp313-cp313t-win_amd64.whl", hash = "sha256:76ad1fb5f8752eabf0fa02e4cc0336b4e8f021e2d5f061ed37d6d264db35e3ca", size = 40308097, upload-time = "2025-05-08T16:08:27.627Z" }, +] + +[[package]] +name = "scipy" +version = "1.17.1" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version == '3.11.*'", +] +dependencies = [ + { name = "numpy", version = "2.4.6", source = { registry = "https://pypi.org/simple" } }, +] +sdist = { url = "https://files.pythonhosted.org/packages/7a/97/5a3609c4f8d58b039179648e62dd220f89864f56f7357f5d4f45c29eb2cc/scipy-1.17.1.tar.gz", hash = "sha256:95d8e012d8cb8816c226aef832200b1d45109ed4464303e997c5b13122b297c0", size = 30573822, upload-time = "2026-02-23T00:26:24.851Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/df/75/b4ce781849931fef6fd529afa6b63711d5a733065722d0c3e2724af9e40a/scipy-1.17.1-cp311-cp311-macosx_10_14_x86_64.whl", hash = "sha256:1f95b894f13729334fb990162e911c9e5dc1ab390c58aa6cbecb389c5b5e28ec", size = 31613675, upload-time = "2026-02-23T00:16:00.13Z" }, + { url = "https://files.pythonhosted.org/packages/f7/58/bccc2861b305abdd1b8663d6130c0b3d7cc22e8d86663edbc8401bfd40d4/scipy-1.17.1-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:e18f12c6b0bc5a592ed23d3f7b891f68fd7f8241d69b7883769eb5d5dfb52696", size = 28162057, upload-time = "2026-02-23T00:16:09.456Z" }, + { url = "https://files.pythonhosted.org/packages/6d/ee/18146b7757ed4976276b9c9819108adbc73c5aad636e5353e20746b73069/scipy-1.17.1-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:a3472cfbca0a54177d0faa68f697d8ba4c80bbdc19908c3465556d9f7efce9ee", size = 20334032, upload-time = "2026-02-23T00:16:17.358Z" }, + { url = "https://files.pythonhosted.org/packages/ec/e6/cef1cf3557f0c54954198554a10016b6a03b2ec9e22a4e1df734936bd99c/scipy-1.17.1-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:766e0dc5a616d026a3a1cffa379af959671729083882f50307e18175797b3dfd", size = 22709533, upload-time = "2026-02-23T00:16:25.791Z" }, + { url = "https://files.pythonhosted.org/packages/4d/60/8804678875fc59362b0fb759ab3ecce1f09c10a735680318ac30da8cd76b/scipy-1.17.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:744b2bf3640d907b79f3fd7874efe432d1cf171ee721243e350f55234b4cec4c", size = 33062057, upload-time = "2026-02-23T00:16:36.931Z" }, + { url = "https://files.pythonhosted.org/packages/09/7d/af933f0f6e0767995b4e2d705a0665e454d1c19402aa7e895de3951ebb04/scipy-1.17.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:43af8d1f3bea642559019edfe64e9b11192a8978efbd1539d7bc2aaa23d92de4", size = 35349300, upload-time = "2026-02-23T00:16:49.108Z" }, + { url = "https://files.pythonhosted.org/packages/b4/3d/7ccbbdcbb54c8fdc20d3b6930137c782a163fa626f0aef920349873421ba/scipy-1.17.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:cd96a1898c0a47be4520327e01f874acfd61fb48a9420f8aa9f6483412ffa444", size = 35127333, upload-time = "2026-02-23T00:17:01.293Z" }, + { url = "https://files.pythonhosted.org/packages/e8/19/f926cb11c42b15ba08e3a71e376d816ac08614f769b4f47e06c3580c836a/scipy-1.17.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:4eb6c25dd62ee8d5edf68a8e1c171dd71c292fdae95d8aeb3dd7d7de4c364082", size = 37741314, upload-time = "2026-02-23T00:17:12.576Z" }, + { url = "https://files.pythonhosted.org/packages/95/da/0d1df507cf574b3f224ccc3d45244c9a1d732c81dcb26b1e8a766ae271a8/scipy-1.17.1-cp311-cp311-win_amd64.whl", hash = "sha256:d30e57c72013c2a4fe441c2fcb8e77b14e152ad48b5464858e07e2ad9fbfceff", size = 36607512, upload-time = "2026-02-23T00:17:23.424Z" }, + { url = "https://files.pythonhosted.org/packages/68/7f/bdd79ceaad24b671543ffe0ef61ed8e659440eb683b66f033454dcee90eb/scipy-1.17.1-cp311-cp311-win_arm64.whl", hash = "sha256:9ecb4efb1cd6e8c4afea0daa91a87fbddbce1b99d2895d151596716c0b2e859d", size = 24599248, upload-time = "2026-02-23T00:17:34.561Z" }, + { url = "https://files.pythonhosted.org/packages/35/48/b992b488d6f299dbe3f11a20b24d3dda3d46f1a635ede1c46b5b17a7b163/scipy-1.17.1-cp312-cp312-macosx_10_14_x86_64.whl", hash = "sha256:35c3a56d2ef83efc372eaec584314bd0ef2e2f0d2adb21c55e6ad5b344c0dcb8", size = 31610954, upload-time = "2026-02-23T00:17:49.855Z" }, + { url = "https://files.pythonhosted.org/packages/b2/02/cf107b01494c19dc100f1d0b7ac3cc08666e96ba2d64db7626066cee895e/scipy-1.17.1-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:fcb310ddb270a06114bb64bbe53c94926b943f5b7f0842194d585c65eb4edd76", size = 28172662, upload-time = "2026-02-23T00:18:01.64Z" }, + { url = "https://files.pythonhosted.org/packages/cf/a9/599c28631bad314d219cf9ffd40e985b24d603fc8a2f4ccc5ae8419a535b/scipy-1.17.1-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:cc90d2e9c7e5c7f1a482c9875007c095c3194b1cfedca3c2f3291cdc2bc7c086", size = 20344366, upload-time = "2026-02-23T00:18:12.015Z" }, + { url = "https://files.pythonhosted.org/packages/35/f5/906eda513271c8deb5af284e5ef0206d17a96239af79f9fa0aebfe0e36b4/scipy-1.17.1-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:c80be5ede8f3f8eded4eff73cc99a25c388ce98e555b17d31da05287015ffa5b", size = 22704017, upload-time = "2026-02-23T00:18:21.502Z" }, + { url = "https://files.pythonhosted.org/packages/da/34/16f10e3042d2f1d6b66e0428308ab52224b6a23049cb2f5c1756f713815f/scipy-1.17.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e19ebea31758fac5893a2ac360fedd00116cbb7628e650842a6691ba7ca28a21", size = 32927842, upload-time = "2026-02-23T00:18:35.367Z" }, + { url = "https://files.pythonhosted.org/packages/01/8e/1e35281b8ab6d5d72ebe9911edcdffa3f36b04ed9d51dec6dd140396e220/scipy-1.17.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:02ae3b274fde71c5e92ac4d54bc06c42d80e399fec704383dcd99b301df37458", size = 35235890, upload-time = "2026-02-23T00:18:49.188Z" }, + { url = "https://files.pythonhosted.org/packages/c5/5c/9d7f4c88bea6e0d5a4f1bc0506a53a00e9fcb198de372bfe4d3652cef482/scipy-1.17.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8a604bae87c6195d8b1045eddece0514d041604b14f2727bbc2b3020172045eb", size = 35003557, upload-time = "2026-02-23T00:18:54.74Z" }, + { url = "https://files.pythonhosted.org/packages/65/94/7698add8f276dbab7a9de9fb6b0e02fc13ee61d51c7c3f85ac28b65e1239/scipy-1.17.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:f590cd684941912d10becc07325a3eeb77886fe981415660d9265c4c418d0bea", size = 37625856, upload-time = "2026-02-23T00:19:00.307Z" }, + { url = "https://files.pythonhosted.org/packages/a2/84/dc08d77fbf3d87d3ee27f6a0c6dcce1de5829a64f2eae85a0ecc1f0daa73/scipy-1.17.1-cp312-cp312-win_amd64.whl", hash = "sha256:41b71f4a3a4cab9d366cd9065b288efc4d4f3c0b37a91a8e0947fb5bd7f31d87", size = 36549682, upload-time = "2026-02-23T00:19:07.67Z" }, + { url = "https://files.pythonhosted.org/packages/bc/98/fe9ae9ffb3b54b62559f52dedaebe204b408db8109a8c66fdd04869e6424/scipy-1.17.1-cp312-cp312-win_arm64.whl", hash = "sha256:f4115102802df98b2b0db3cce5cb9b92572633a1197c77b7553e5203f284a5b3", size = 24547340, upload-time = "2026-02-23T00:19:12.024Z" }, + { url = "https://files.pythonhosted.org/packages/76/27/07ee1b57b65e92645f219b37148a7e7928b82e2b5dbeccecb4dff7c64f0b/scipy-1.17.1-cp313-cp313-macosx_10_14_x86_64.whl", hash = "sha256:5e3c5c011904115f88a39308379c17f91546f77c1667cea98739fe0fccea804c", size = 31590199, upload-time = "2026-02-23T00:19:17.192Z" }, + { url = "https://files.pythonhosted.org/packages/ec/ae/db19f8ab842e9b724bf5dbb7db29302a91f1e55bc4d04b1025d6d605a2c5/scipy-1.17.1-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:6fac755ca3d2c3edcb22f479fceaa241704111414831ddd3bc6056e18516892f", size = 28154001, upload-time = "2026-02-23T00:19:22.241Z" }, + { url = "https://files.pythonhosted.org/packages/5b/58/3ce96251560107b381cbd6e8413c483bbb1228a6b919fa8652b0d4090e7f/scipy-1.17.1-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:7ff200bf9d24f2e4d5dc6ee8c3ac64d739d3a89e2326ba68aaf6c4a2b838fd7d", size = 20325719, upload-time = "2026-02-23T00:19:26.329Z" }, + { url = "https://files.pythonhosted.org/packages/b2/83/15087d945e0e4d48ce2377498abf5ad171ae013232ae31d06f336e64c999/scipy-1.17.1-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:4b400bdc6f79fa02a4d86640310dde87a21fba0c979efff5248908c6f15fad1b", size = 22683595, upload-time = "2026-02-23T00:19:30.304Z" }, + { url = "https://files.pythonhosted.org/packages/b4/e0/e58fbde4a1a594c8be8114eb4aac1a55bcd6587047efc18a61eb1f5c0d30/scipy-1.17.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2b64ca7d4aee0102a97f3ba22124052b4bd2152522355073580bf4845e2550b6", size = 32896429, upload-time = "2026-02-23T00:19:35.536Z" }, + { url = "https://files.pythonhosted.org/packages/f5/5f/f17563f28ff03c7b6799c50d01d5d856a1d55f2676f537ca8d28c7f627cd/scipy-1.17.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:581b2264fc0aa555f3f435a5944da7504ea3a065d7029ad60e7c3d1ae09c5464", size = 35203952, upload-time = "2026-02-23T00:19:42.259Z" }, + { url = "https://files.pythonhosted.org/packages/8d/a5/9afd17de24f657fdfe4df9a3f1ea049b39aef7c06000c13db1530d81ccca/scipy-1.17.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:beeda3d4ae615106d7094f7e7cef6218392e4465cc95d25f900bebabfded0950", size = 34979063, upload-time = "2026-02-23T00:19:47.547Z" }, + { url = "https://files.pythonhosted.org/packages/8b/13/88b1d2384b424bf7c924f2038c1c409f8d88bb2a8d49d097861dd64a57b2/scipy-1.17.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6609bc224e9568f65064cfa72edc0f24ee6655b47575954ec6339534b2798369", size = 37598449, upload-time = "2026-02-23T00:19:53.238Z" }, + { url = "https://files.pythonhosted.org/packages/35/e5/d6d0e51fc888f692a35134336866341c08655d92614f492c6860dc45bb2c/scipy-1.17.1-cp313-cp313-win_amd64.whl", hash = "sha256:37425bc9175607b0268f493d79a292c39f9d001a357bebb6b88fdfaff13f6448", size = 36510943, upload-time = "2026-02-23T00:20:50.89Z" }, + { url = "https://files.pythonhosted.org/packages/2a/fd/3be73c564e2a01e690e19cc618811540ba5354c67c8680dce3281123fb79/scipy-1.17.1-cp313-cp313-win_arm64.whl", hash = "sha256:5cf36e801231b6a2059bf354720274b7558746f3b1a4efb43fcf557ccd484a87", size = 24545621, upload-time = "2026-02-23T00:20:55.871Z" }, + { url = "https://files.pythonhosted.org/packages/6f/6b/17787db8b8114933a66f9dcc479a8272e4b4da75fe03b0c282f7b0ade8cd/scipy-1.17.1-cp313-cp313t-macosx_10_14_x86_64.whl", hash = "sha256:d59c30000a16d8edc7e64152e30220bfbd724c9bbb08368c054e24c651314f0a", size = 31936708, upload-time = "2026-02-23T00:19:58.694Z" }, + { url = "https://files.pythonhosted.org/packages/38/2e/524405c2b6392765ab1e2b722a41d5da33dc5c7b7278184a8ad29b6cb206/scipy-1.17.1-cp313-cp313t-macosx_12_0_arm64.whl", hash = "sha256:010f4333c96c9bb1a4516269e33cb5917b08ef2166d5556ca2fd9f082a9e6ea0", size = 28570135, upload-time = "2026-02-23T00:20:03.934Z" }, + { url = "https://files.pythonhosted.org/packages/fd/c3/5bd7199f4ea8556c0c8e39f04ccb014ac37d1468e6cfa6a95c6b3562b76e/scipy-1.17.1-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:2ceb2d3e01c5f1d83c4189737a42d9cb2fc38a6eeed225e7515eef71ad301dce", size = 20741977, upload-time = "2026-02-23T00:20:07.935Z" }, + { url = "https://files.pythonhosted.org/packages/d9/b8/8ccd9b766ad14c78386599708eb745f6b44f08400a5fd0ade7cf89b6fc93/scipy-1.17.1-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:844e165636711ef41f80b4103ed234181646b98a53c8f05da12ca5ca289134f6", size = 23029601, upload-time = "2026-02-23T00:20:12.161Z" }, + { url = "https://files.pythonhosted.org/packages/6d/a0/3cb6f4d2fb3e17428ad2880333cac878909ad1a89f678527b5328b93c1d4/scipy-1.17.1-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:158dd96d2207e21c966063e1635b1063cd7787b627b6f07305315dd73d9c679e", size = 33019667, upload-time = "2026-02-23T00:20:17.208Z" }, + { url = "https://files.pythonhosted.org/packages/f3/c3/2d834a5ac7bf3a0c806ad1508efc02dda3c8c61472a56132d7894c312dea/scipy-1.17.1-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:74cbb80d93260fe2ffa334efa24cb8f2f0f622a9b9febf8b483c0b865bfb3475", size = 35264159, upload-time = "2026-02-23T00:20:23.087Z" }, + { url = "https://files.pythonhosted.org/packages/4d/77/d3ed4becfdbd217c52062fafe35a72388d1bd82c2d0ba5ca19d6fcc93e11/scipy-1.17.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:dbc12c9f3d185f5c737d801da555fb74b3dcfa1a50b66a1a93e09190f41fab50", size = 35102771, upload-time = "2026-02-23T00:20:28.636Z" }, + { url = "https://files.pythonhosted.org/packages/bd/12/d19da97efde68ca1ee5538bb261d5d2c062f0c055575128f11a2730e3ac1/scipy-1.17.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:94055a11dfebe37c656e70317e1996dc197e1a15bbcc351bcdd4610e128fe1ca", size = 37665910, upload-time = "2026-02-23T00:20:34.743Z" }, + { url = "https://files.pythonhosted.org/packages/06/1c/1172a88d507a4baaf72c5a09bb6c018fe2ae0ab622e5830b703a46cc9e44/scipy-1.17.1-cp313-cp313t-win_amd64.whl", hash = "sha256:e30bdeaa5deed6bc27b4cc490823cd0347d7dae09119b8803ae576ea0ce52e4c", size = 36562980, upload-time = "2026-02-23T00:20:40.575Z" }, + { url = "https://files.pythonhosted.org/packages/70/b0/eb757336e5a76dfa7911f63252e3b7d1de00935d7705cf772db5b45ec238/scipy-1.17.1-cp313-cp313t-win_arm64.whl", hash = "sha256:a720477885a9d2411f94a93d16f9d89bad0f28ca23c3f8daa521e2dcc3f44d49", size = 24856543, upload-time = "2026-02-23T00:20:45.313Z" }, + { url = "https://files.pythonhosted.org/packages/cf/83/333afb452af6f0fd70414dc04f898647ee1423979ce02efa75c3b0f2c28e/scipy-1.17.1-cp314-cp314-macosx_10_14_x86_64.whl", hash = "sha256:a48a72c77a310327f6a3a920092fa2b8fd03d7deaa60f093038f22d98e096717", size = 31584510, upload-time = "2026-02-23T00:21:01.015Z" }, + { url = "https://files.pythonhosted.org/packages/ed/a6/d05a85fd51daeb2e4ea71d102f15b34fedca8e931af02594193ae4fd25f7/scipy-1.17.1-cp314-cp314-macosx_12_0_arm64.whl", hash = "sha256:45abad819184f07240d8a696117a7aacd39787af9e0b719d00285549ed19a1e9", size = 28170131, upload-time = "2026-02-23T00:21:05.888Z" }, + { url = "https://files.pythonhosted.org/packages/db/7b/8624a203326675d7746a254083a187398090a179335b2e4a20e2ddc46e83/scipy-1.17.1-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:3fd1fcdab3ea951b610dc4cef356d416d5802991e7e32b5254828d342f7b7e0b", size = 20342032, upload-time = "2026-02-23T00:21:09.904Z" }, + { url = "https://files.pythonhosted.org/packages/c9/35/2c342897c00775d688d8ff3987aced3426858fd89d5a0e26e020b660b301/scipy-1.17.1-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:7bdf2da170b67fdf10bca777614b1c7d96ae3ca5794fd9587dce41eb2966e866", size = 22678766, upload-time = "2026-02-23T00:21:14.313Z" }, + { url = "https://files.pythonhosted.org/packages/ef/f2/7cdb8eb308a1a6ae1e19f945913c82c23c0c442a462a46480ce487fdc0ac/scipy-1.17.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:adb2642e060a6549c343603a3851ba76ef0b74cc8c079a9a58121c7ec9fe2350", size = 32957007, upload-time = "2026-02-23T00:21:19.663Z" }, + { url = "https://files.pythonhosted.org/packages/0b/2e/7eea398450457ecb54e18e9d10110993fa65561c4f3add5e8eccd2b9cd41/scipy-1.17.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:eee2cfda04c00a857206a4330f0c5e3e56535494e30ca445eb19ec624ae75118", size = 35221333, upload-time = "2026-02-23T00:21:25.278Z" }, + { url = "https://files.pythonhosted.org/packages/d9/77/5b8509d03b77f093a0d52e606d3c4f79e8b06d1d38c441dacb1e26cacf46/scipy-1.17.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:d2650c1fb97e184d12d8ba010493ee7b322864f7d3d00d3f9bb97d9c21de4068", size = 35042066, upload-time = "2026-02-23T00:21:31.358Z" }, + { url = "https://files.pythonhosted.org/packages/f9/df/18f80fb99df40b4070328d5ae5c596f2f00fffb50167e31439e932f29e7d/scipy-1.17.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:08b900519463543aa604a06bec02461558a6e1cef8fdbb8098f77a48a83c8118", size = 37612763, upload-time = "2026-02-23T00:21:37.247Z" }, + { url = "https://files.pythonhosted.org/packages/4b/39/f0e8ea762a764a9dc52aa7dabcfad51a354819de1f0d4652b6a1122424d6/scipy-1.17.1-cp314-cp314-win_amd64.whl", hash = "sha256:3877ac408e14da24a6196de0ddcace62092bfc12a83823e92e49e40747e52c19", size = 37290984, upload-time = "2026-02-23T00:22:35.023Z" }, + { url = "https://files.pythonhosted.org/packages/7c/56/fe201e3b0f93d1a8bcf75d3379affd228a63d7e2d80ab45467a74b494947/scipy-1.17.1-cp314-cp314-win_arm64.whl", hash = "sha256:f8885db0bc2bffa59d5c1b72fad7a6a92d3e80e7257f967dd81abb553a90d293", size = 25192877, upload-time = "2026-02-23T00:22:39.798Z" }, + { url = "https://files.pythonhosted.org/packages/96/ad/f8c414e121f82e02d76f310f16db9899c4fcde36710329502a6b2a3c0392/scipy-1.17.1-cp314-cp314t-macosx_10_14_x86_64.whl", hash = "sha256:1cc682cea2ae55524432f3cdff9e9a3be743d52a7443d0cba9017c23c87ae2f6", size = 31949750, upload-time = "2026-02-23T00:21:42.289Z" }, + { url = "https://files.pythonhosted.org/packages/7c/b0/c741e8865d61b67c81e255f4f0a832846c064e426636cd7de84e74d209be/scipy-1.17.1-cp314-cp314t-macosx_12_0_arm64.whl", hash = "sha256:2040ad4d1795a0ae89bfc7e8429677f365d45aa9fd5e4587cf1ea737f927b4a1", size = 28585858, upload-time = "2026-02-23T00:21:47.706Z" }, + { url = "https://files.pythonhosted.org/packages/ed/1b/3985219c6177866628fa7c2595bfd23f193ceebbe472c98a08824b9466ff/scipy-1.17.1-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:131f5aaea57602008f9822e2115029b55d4b5f7c070287699fe45c661d051e39", size = 20757723, upload-time = "2026-02-23T00:21:52.039Z" }, + { url = "https://files.pythonhosted.org/packages/c0/19/2a04aa25050d656d6f7b9e7b685cc83d6957fb101665bfd9369ca6534563/scipy-1.17.1-cp314-cp314t-macosx_14_0_x86_64.whl", hash = "sha256:9cdc1a2fcfd5c52cfb3045feb399f7b3ce822abdde3a193a6b9a60b3cb5854ca", size = 23043098, upload-time = "2026-02-23T00:21:56.185Z" }, + { url = "https://files.pythonhosted.org/packages/86/f1/3383beb9b5d0dbddd030335bf8a8b32d4317185efe495374f134d8be6cce/scipy-1.17.1-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6e3dcd57ab780c741fde8dc68619de988b966db759a3c3152e8e9142c26295ad", size = 33030397, upload-time = "2026-02-23T00:22:01.404Z" }, + { url = "https://files.pythonhosted.org/packages/41/68/8f21e8a65a5a03f25a79165ec9d2b28c00e66dc80546cf5eb803aeeff35b/scipy-1.17.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a9956e4d4f4a301ebf6cde39850333a6b6110799d470dbbb1e25326ac447f52a", size = 35281163, upload-time = "2026-02-23T00:22:07.024Z" }, + { url = "https://files.pythonhosted.org/packages/84/8d/c8a5e19479554007a5632ed7529e665c315ae7492b4f946b0deb39870e39/scipy-1.17.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:a4328d245944d09fd639771de275701ccadf5f781ba0ff092ad141e017eccda4", size = 35116291, upload-time = "2026-02-23T00:22:12.585Z" }, + { url = "https://files.pythonhosted.org/packages/52/52/e57eceff0e342a1f50e274264ed47497b59e6a4e3118808ee58ddda7b74a/scipy-1.17.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:a77cbd07b940d326d39a1d1b37817e2ee4d79cb30e7338f3d0cddffae70fcaa2", size = 37682317, upload-time = "2026-02-23T00:22:18.513Z" }, + { url = "https://files.pythonhosted.org/packages/11/2f/b29eafe4a3fbc3d6de9662b36e028d5f039e72d345e05c250e121a230dd4/scipy-1.17.1-cp314-cp314t-win_amd64.whl", hash = "sha256:eb092099205ef62cd1782b006658db09e2fed75bffcae7cc0d44052d8aa0f484", size = 37345327, upload-time = "2026-02-23T00:22:24.442Z" }, + { url = "https://files.pythonhosted.org/packages/07/39/338d9219c4e87f3e708f18857ecd24d22a0c3094752393319553096b98af/scipy-1.17.1-cp314-cp314t-win_arm64.whl", hash = "sha256:200e1050faffacc162be6a486a984a0497866ec54149a01270adc8a59b7c7d21", size = 25489165, upload-time = "2026-02-23T00:22:29.563Z" }, +] + +[[package]] +name = "scipy" +version = "1.18.1" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.12'", +] +dependencies = [ + { name = "numpy", version = "2.5.5", source = { registry = "https://pypi.org/simple" } }, +] +sdist = { url = "https://files.pythonhosted.org/packages/7e/74/66de6258867beb2ef08f35f9f2ac017a52cacd5081714d239ff1a442d458/scipy-1.18.1.tar.gz", hash = "sha256:52c4b7422442aba924d03ad4019852b08a92e64ea187b933135687bfe2747307", size = 30781235, upload-time = "2026-08-21T23:28:50.599Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/18/f7/240c110c08693826b4513a52f5717d62ec7c7af72f2920821247c03b17b3/scipy-1.18.1-cp312-cp312-macosx_10_15_x86_64.whl", hash = "sha256:457fd7a2a8edeb044ab6ffbc0aa03ff6cd18491356e5e0c834d76ce621b916d1", size = 31111061, upload-time = "2026-08-21T23:23:44.522Z" }, + { url = "https://files.pythonhosted.org/packages/05/4a/78c6285577c375e7cf27277ea8ee6961224327f1e1a0c44af5f17f23635c/scipy-1.18.1-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:e708533e8b2ae2497d65346538a7dcc92814410b25b81432eac66de0f2af8265", size = 28733332, upload-time = "2026-08-21T23:23:50.015Z" }, + { url = "https://files.pythonhosted.org/packages/a5/f6/a5b82f8abbe14d134691b8b903696f701d25a081353a29dc655c364d9e62/scipy-1.18.1-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:7bbf207c4453ce1ad2e00b17313852b33310b83090c2311bdaf97f93c0380d12", size = 20475078, upload-time = "2026-08-21T23:23:54.138Z" }, + { url = "https://files.pythonhosted.org/packages/23/22/0858a0bbd6b3e825ceb8cd9baf9eaf3b2f2b1d77727eb6be40500bcdc92f/scipy-1.18.1-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:78c0665edead396b1abb4897c41a5c1d9bf090c8a637a4c20a61678e0a264e66", size = 23108904, upload-time = "2026-08-21T23:23:57.824Z" }, + { url = "https://files.pythonhosted.org/packages/75/9a/2e71719f31eaefe0e3a1706c4a1ded94e664bfd95ffca2b219a671faee01/scipy-1.18.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3c085faa2cfa879c5141df483f836f4d691045a078224a670fa570fa01612d89", size = 34025113, upload-time = "2026-08-21T23:24:02.209Z" }, + { url = "https://files.pythonhosted.org/packages/df/64/ff35eb9e54894cf471ff4716abd3c81eb0a0626869217ce3e6ba4ccf17d7/scipy-1.18.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f55fa87b6c612ecd6b058f167c53231b1d14e412efe361d3d6e38b3631c73218", size = 35344199, upload-time = "2026-08-21T23:24:07.844Z" }, + { url = "https://files.pythonhosted.org/packages/d3/af/c5538be1792f7034c12c7db6ee67cace58253c7b87b122d68253eaf5de89/scipy-1.18.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:c35d74ce0e193ff740c2f2be2ac913ddc232fe6c1ff40b26cfecb9c670c63314", size = 35639587, upload-time = "2026-08-21T23:24:13.05Z" }, + { url = "https://files.pythonhosted.org/packages/91/4c/075e4f66471bac101141ac739e9e135549be1bae584571bd03a530c056e1/scipy-1.18.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:d2924a03db38dc2e848bca2fe9f077dafb891480b91a00a0963a8cf86dfc31c1", size = 37480330, upload-time = "2026-08-21T23:24:19.608Z" }, + { url = "https://files.pythonhosted.org/packages/39/e7/979fd14e75008623df31ba70d6bb144700f68feadcea042021c06a05bf82/scipy-1.18.1-cp312-cp312-win_amd64.whl", hash = "sha256:5e4d44984abc0020154ea81b247adeddcc3ac5527b975ff798bd1ba0adc513c2", size = 36658278, upload-time = "2026-08-21T23:24:25.463Z" }, + { url = "https://files.pythonhosted.org/packages/c7/0b/e1525354ff9d7d5feb6d1b31af6d14072e5c91e9607b421fa1ec889660b3/scipy-1.18.1-cp312-cp312-win_arm64.whl", hash = "sha256:d65d448389b8436493abcf629cc94ad0cf32aecaf06e1acca1de53cc795f2f12", size = 24400588, upload-time = "2026-08-21T23:24:30.579Z" }, + { url = "https://files.pythonhosted.org/packages/b6/55/4540ee0f9c42a9ad7109d0d1a8cc70de54c3572b01c6693a2b1c70e90ceb/scipy-1.18.1-cp313-cp313-macosx_10_15_x86_64.whl", hash = "sha256:3ab3523da44749156e1f68b464dc56af11ae4cbc5c739a49d05f32b982eca9f3", size = 31089958, upload-time = "2026-08-21T23:24:35.8Z" }, + { url = "https://files.pythonhosted.org/packages/2a/f5/769f36d14922b8071a43e95d24d18b6bdafad10d7f5cf647867e1ac052bc/scipy-1.18.1-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:e6fb6a55cc0ba97b59a1f288fb86dc6fce8bdfc0fffcbfd015e3a954bf2a2d93", size = 28715106, upload-time = "2026-08-21T23:24:40.775Z" }, + { url = "https://files.pythonhosted.org/packages/9a/d7/21d890274f75ea37a8209d5519e72da3da90302e3b9fb8397a0918386a62/scipy-1.18.1-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:ea324d9dd34c38bfb9bec8ca4d1b407db97dbb74029f566b8e322b1b6fe56fe6", size = 20456846, upload-time = "2026-08-21T23:24:45.066Z" }, + { url = "https://files.pythonhosted.org/packages/ec/01/798430ecea2e78ec7c02663d5f71c007bb6abeca931080debd40d7fa55ea/scipy-1.18.1-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:75b00eb8fb802090aa903f4ea1c7f5a584779f967361e68b7e98e531cc2d7174", size = 23087986, upload-time = "2026-08-21T23:24:49.539Z" }, + { url = "https://files.pythonhosted.org/packages/e6/5f/4634e9d35c68496e4e34cb6946eafab044458e6cedab42b40b6588e475b6/scipy-1.18.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d416b16cccfd70fbf62400e84d0bb2f4e6af519a45557f1692c749b37f14b315", size = 33998146, upload-time = "2026-08-21T23:24:54.714Z" }, + { url = "https://files.pythonhosted.org/packages/41/48/6450ed9243315322bbc19ac57b9b70d66a20bf1d38d124c96bc4bf6af9ea/scipy-1.18.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fdaf5ea890a6183d0565f51a61799d67081bd5b1cf03c5f4b3fd3732108625c9", size = 35312578, upload-time = "2026-08-21T23:25:00.44Z" }, + { url = "https://files.pythonhosted.org/packages/00/bd/bf5a4be6a3525676499f6dff307991739ff6fdcad1481b1aeb6745339f58/scipy-1.18.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:c825cef2f49e46753726a7181a8e199804a912b29519ada542c6ebc654951899", size = 35612621, upload-time = "2026-08-21T23:25:06.144Z" }, + { url = "https://files.pythonhosted.org/packages/bd/4e/3c45c33e00a77996c4b1cb707929f833ba7b1d522ee29f882512c330676d/scipy-1.18.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e3b417bf8c2c7c16e8f58ad91db17783ec911ac16e7b50eb6eab6e809b4f5b07", size = 37457323, upload-time = "2026-08-21T23:25:12.483Z" }, + { url = "https://files.pythonhosted.org/packages/93/0e/e0348fbc0dbab65c114cf78957e7dfeb49f8e8b556b4d930cc12ff195e18/scipy-1.18.1-cp313-cp313-win_amd64.whl", hash = "sha256:559ed65f60c1af5a03f3912605a1b5114f522c7c32fb23c3376ae8f03219fe28", size = 36622841, upload-time = "2026-08-21T23:25:18.722Z" }, + { url = "https://files.pythonhosted.org/packages/50/a8/6a77f5f267c555108f0a864b6db714363dab567a8266422a79a385f9232b/scipy-1.18.1-cp313-cp313-win_arm64.whl", hash = "sha256:cd479fc04dd9401e3b4f49e76518768ef99c4f517a98c284eb091fd725719adf", size = 24399315, upload-time = "2026-08-21T23:25:23.458Z" }, + { url = "https://files.pythonhosted.org/packages/06/d5/d8eb4e280ddb56a4ab2c6f02ee49b56b23f6e977cf0802fd6d68dbef14f5/scipy-1.18.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:83de5453a7799afc9048b4616bd085cef126e36412f0ea2f6370c36a2a3a51e7", size = 31090936, upload-time = "2026-08-21T23:25:28.686Z" }, + { url = "https://files.pythonhosted.org/packages/2a/49/59ea385dc3a62ff498ddf3cfff7c2b41b0f9f9d3c4122b3f1dcb6d6327fe/scipy-1.18.1-cp314-cp314-macosx_12_0_arm64.whl", hash = "sha256:9554bcc6d715ee87a633a3cc8e7703c6628b100dd29cb8a2efc4c0533c7ff729", size = 28725221, upload-time = "2026-08-21T23:25:33.244Z" }, + { url = "https://files.pythonhosted.org/packages/70/e8/6b0c288c50942d78193696c9f15f9a0874f5178aa0ddf40f83d9924b3e8d/scipy-1.18.1-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:011413b7426b75012840e35649e00fe0a2c3bae89fed433876e3a99251572efc", size = 20466839, upload-time = "2026-08-21T23:25:37.516Z" }, + { url = "https://files.pythonhosted.org/packages/4b/e0/54fd3793c729e3b936782f181b59cbb1205bf250ab605a16cb1ba61cdd5e/scipy-1.18.1-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:88f0e784020649f88ea48c9f5ddfa403bf9205820667c0914740b392035afb82", size = 23089121, upload-time = "2026-08-21T23:25:42.019Z" }, + { url = "https://files.pythonhosted.org/packages/0b/56/030af62bea3cf878e0028515dff78c123b01633606a879b63f42d2db99cc/scipy-1.18.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2d3ab0e8c69a17dd3559eab8cbb88f258e285c94d572c2719033f90f83290c89", size = 34053851, upload-time = "2026-08-21T23:25:47.998Z" }, + { url = "https://files.pythonhosted.org/packages/6b/89/2a844506d49651e9aa1af6ef95b6bd8031cb1d5a4375edec6155037e04cf/scipy-1.18.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ac0333bdf38309aa3dcbe7e3fa7ea29e7a2c37c6ea306a757b700ded8e4596ad", size = 35329183, upload-time = "2026-08-21T23:25:53.522Z" }, + { url = "https://files.pythonhosted.org/packages/eb/56/c7370c3640e92ac9613cbf26cb3f729f9b12ddf1727b55b94b53b24d6f48/scipy-1.18.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:911de823097db8b63f034299d12662db93344e6ffa0b881cbb57748974b70168", size = 35672551, upload-time = "2026-08-21T23:25:59.387Z" }, + { url = "https://files.pythonhosted.org/packages/24/16/ec8536f351421f8bf60a1120930638f83790f4710b8230446aca3d6159d4/scipy-1.18.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:95298364e251be3e60249facbeeca03631d3bb7584f85879516ec55ac717b81f", size = 37469416, upload-time = "2026-08-21T23:26:05.432Z" }, + { url = "https://files.pythonhosted.org/packages/52/94/d73da0d28f16c45bb9b0a5691b91610b0275c5ef0eb5e43c87cf2dc1bf31/scipy-1.18.1-cp314-cp314-win_amd64.whl", hash = "sha256:78a0d7c918e74a232394117160e7e3db503377572a45bcef8826e4ab8a35feba", size = 37362755, upload-time = "2026-08-21T23:26:11.366Z" }, + { url = "https://files.pythonhosted.org/packages/89/25/e996e4dc74e10e227b1e14db5eaf6608bb6dd33884a64851c38f18dd4249/scipy-1.18.1-cp314-cp314-win_arm64.whl", hash = "sha256:cbf38d043c1aa4ab306e1ada6ab6eddacc3322a20b7af1b30bc93254b366fe09", size = 25036090, upload-time = "2026-08-21T23:26:15.887Z" }, + { url = "https://files.pythonhosted.org/packages/fa/c9/c00213f92309d753b48903e6a451b87eb52ff5b7a16e789d1568bbf221c4/scipy-1.18.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:0fcb3c93519f27bb4f0c4b0f7802cdcaca7fcf93267b75edda2e9f4e8a55cbd7", size = 31485550, upload-time = "2026-08-21T23:26:20.776Z" }, + { url = "https://files.pythonhosted.org/packages/74/b2/e3067c487982d4eeab2938928529410370c06fea84a4d3f4925e7d96647d/scipy-1.18.1-cp314-cp314t-macosx_12_0_arm64.whl", hash = "sha256:ddef79fb382df40104a19bb7151b3b23e57c1778fcf857c71ceecd9bd264513f", size = 29174642, upload-time = "2026-08-21T23:26:25.395Z" }, + { url = "https://files.pythonhosted.org/packages/d5/ab/374c9fe2d1ec014e576c781a4b5d8e1ba340e8f6b4638c16f711d2b194f0/scipy-1.18.1-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:0e82073ecc7acc6436fac4b31674109c7e1d3e596789767eda01258a8c9e8123", size = 20916357, upload-time = "2026-08-21T23:26:30.112Z" }, + { url = "https://files.pythonhosted.org/packages/90/38/223915c88a17317cafbf8ca2a42b11c265a9fb1e804aa665544132b5fe8a/scipy-1.18.1-cp314-cp314t-macosx_14_0_x86_64.whl", hash = "sha256:8bcf3c1ba5d6456e2effd30fcbd3459b044d683fcdac79a2e6830f0bdf7de487", size = 23482611, upload-time = "2026-08-21T23:26:34.846Z" }, + { url = "https://files.pythonhosted.org/packages/c4/d1/db0948da8ca57a80b36520ef0a768b967d99f3af65f4b6f1bf6362ad4dd4/scipy-1.18.1-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:cfbf154f2ba187f2ed6cce2639efff7d105f1140573642c0161615b6d91d6a87", size = 34143202, upload-time = "2026-08-21T23:26:40.4Z" }, + { url = "https://files.pythonhosted.org/packages/87/53/39d046cc7574ed6acacb6bd5723e220107ece80bff12faaf3efc4ddeede4/scipy-1.18.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a1d33a7836f7ddc1993427966a0823468ec41bcbdb1a9f9942d1d7e57f803ba3", size = 35380876, upload-time = "2026-08-21T23:26:46.1Z" }, + { url = "https://files.pythonhosted.org/packages/f9/da/32e0e799d875a85ca57d9bde6c78148afcc0e38276df683d95854eadc8c3/scipy-1.18.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:7f4b8bc363b6d65ee2152bec57568e3c52639bb34c46057b09857a307ed5e21d", size = 35770885, upload-time = "2026-08-21T23:26:51.533Z" }, + { url = "https://files.pythonhosted.org/packages/88/2e/f97a666d362fee68b18f41c9c30ed502ca5c98b549749bfcb52a8b74d1eb/scipy-1.18.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:11c423f1049c5755ad4409af52a9ada1cff96fe9b50795d4af3619f292901239", size = 37525424, upload-time = "2026-08-21T23:26:56.751Z" }, + { url = "https://files.pythonhosted.org/packages/ca/d5/a9e765a84654ebba8479a1fd1b059ced1af72b168a3b2a3a46540ea38d20/scipy-1.18.1-cp314-cp314t-win_amd64.whl", hash = "sha256:c24acac1e18912761c4700239bbc1fd32f615af690f1584d49b35859be51324d", size = 37416961, upload-time = "2026-08-21T23:27:01.546Z" }, + { url = "https://files.pythonhosted.org/packages/ee/16/e79e0d1c63ef698879d85439d37e9fb434e3b804e506a6991038d086ebd9/scipy-1.18.1-cp314-cp314t-win_arm64.whl", hash = "sha256:9f2897bf7737392ad0d5213ea7b6add72a4edf5679b3153106aeb88b6507b3b9", size = 25331848, upload-time = "2026-08-21T23:27:05.884Z" }, + { url = "https://files.pythonhosted.org/packages/be/4f/1bd37c883b67163e2ca1f60977a399500e6879c15defecac62831c8d078d/scipy-1.18.1-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:eb0dfcf4e28a99c12c999744a2ff67c9b06200e20401c7c88186e33552a46331", size = 31091484, upload-time = "2026-08-21T23:27:11.051Z" }, + { url = "https://files.pythonhosted.org/packages/8c/c5/ba929d7feb9b2332f96827c12e0e924b61973b59b4dea383b603372c65ce/scipy-1.18.1-cp315-cp315-macosx_12_0_arm64.whl", hash = "sha256:30f464bee641fa8e282577c7dce027308403213c6ca8270bba73285c91024bc5", size = 28725057, upload-time = "2026-08-21T23:27:15.9Z" }, + { url = "https://files.pythonhosted.org/packages/a4/19/68f1c50f609d955d230e66d25d02bd3e1e167ec540232135354fb9a4b9e3/scipy-1.18.1-cp315-cp315-macosx_14_0_arm64.whl", hash = "sha256:1bca3b943fc2567ea49cd02c99abde49da4d5178ec46f624bd8255cda8755beb", size = 20466734, upload-time = "2026-08-21T23:27:20.044Z" }, + { url = "https://files.pythonhosted.org/packages/ef/6d/319fa29b73d1802fa80b32a6eaf3f5be456ef81526da2716a9493bcb5501/scipy-1.18.1-cp315-cp315-macosx_14_0_x86_64.whl", hash = "sha256:c9d18a33309122074ea483dd92dd444189166b8b2ec429fe9ed5ac73c7a0aa23", size = 23089664, upload-time = "2026-08-21T23:27:24.345Z" }, + { url = "https://files.pythonhosted.org/packages/b7/db/30992f9b51a63de671daf3888ffd18378b6cb9ec9f2c972264238ffa7fd6/scipy-1.18.1-cp315-cp315-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:82f201b4c878551d48558337aab270d3c6cca5507b8737c8d8a608d234cccde0", size = 34054035, upload-time = "2026-08-21T23:27:29.409Z" }, + { url = "https://files.pythonhosted.org/packages/91/d4/bf3e735dc0b9d5a8ff45079d2540e17d3aff7a2f0048dd8f552ffd031d2b/scipy-1.18.1-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0ac49ea97594532dd44b7136094d35f5440fa06e6d9c6384a74c01764df388c5", size = 35333883, upload-time = "2026-08-21T23:27:34.293Z" }, + { url = "https://files.pythonhosted.org/packages/19/93/12d78ce9f871fe945fca588d32644e6e63f553c2a35c564d73f3b22a3313/scipy-1.18.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:ceb30a00ce7c92d459819443d29ca486d882b83fb6738bdcbb2a1cce94ac5daa", size = 35673124, upload-time = "2026-08-21T23:27:39.059Z" }, + { url = "https://files.pythonhosted.org/packages/70/cd/886219313a1012a48e6ae0ec4f302c837151beb92e1ff0d709ef8fdfc488/scipy-1.18.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:f29633129f9fa7e88a3f0fca835de2d030bfc9643f7799e1a0c46cee24d38fc7", size = 37470753, upload-time = "2026-08-21T23:27:44.435Z" }, + { url = "https://files.pythonhosted.org/packages/17/6c/a776888ce618bee54fbde26172f0f46ac1da70d27b63861797fe78e1904b/scipy-1.18.1-cp315-cp315-win_amd64.whl", hash = "sha256:92c14f5bdbfb6216315ce33e78080474082de8b3830122ba97809bfbe65f75c0", size = 37361483, upload-time = "2026-08-21T23:27:49.334Z" }, + { url = "https://files.pythonhosted.org/packages/ab/09/97b651691322ebee97999b017ffc18a15a0b815103844c97e8da9d469731/scipy-1.18.1-cp315-cp315-win_arm64.whl", hash = "sha256:e402cf31eb68f453dbb2d36fc6d722b33f24a55d68b2ae1d92fa6305ca71c298", size = 25035883, upload-time = "2026-08-21T23:27:53.596Z" }, + { url = "https://files.pythonhosted.org/packages/ed/0f/9ec20467bbabd0d44e2a77d0fd3d124f884b4d67df92af82c91d2d6a486f/scipy-1.18.1-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:2a0b02f9fc46f8520330c23d45e6560db7e3a0d927232139427637f98943e11d", size = 31474926, upload-time = "2026-08-21T23:27:57.993Z" }, + { url = "https://files.pythonhosted.org/packages/8a/58/dcb79161e56efbedc50079fcd2f5fe427a0ebb53022eb476aa73c015ad8f/scipy-1.18.1-cp315-cp315t-macosx_12_0_arm64.whl", hash = "sha256:1d73131e358976663dd969e1fb4ed1404b815cd977eaaedc3b3a133ba2d81c35", size = 29164940, upload-time = "2026-08-21T23:28:03.062Z" }, + { url = "https://files.pythonhosted.org/packages/71/d3/1eeea80c817fcb8ef7bd4a05a58824977a0e57a375cfc3d7ea7c911c01ad/scipy-1.18.1-cp315-cp315t-macosx_14_0_arm64.whl", hash = "sha256:bff0b729edd992766136b34e39cc76bc2fad905aa58897ee72a9cd000a6d8443", size = 20906742, upload-time = "2026-08-21T23:28:07.642Z" }, + { url = "https://files.pythonhosted.org/packages/54/46/e59350428b6099301a20128108c995e2eb175a43f383af9a346e38824f9b/scipy-1.18.1-cp315-cp315t-macosx_14_0_x86_64.whl", hash = "sha256:10ac20c69d880f77f375db44c22e3e6a644f9fefa291d4cd2fb9790a89fc99fd", size = 23472183, upload-time = "2026-08-21T23:28:12.109Z" }, + { url = "https://files.pythonhosted.org/packages/89/31/cc91623fa98f0621766a0f0aaaadb2c66de74a7ea7e3837164f6e4354260/scipy-1.18.1-cp315-cp315t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:33a834464fdabc0f26a45508df31b3cc5d028e04dbf6c5ed398541418e0a12fe", size = 34130796, upload-time = "2026-08-21T23:28:17.906Z" }, + { url = "https://files.pythonhosted.org/packages/fc/3e/8572ef536957ddb8aa81bb4090d9e25f257e3b4e05d97deb54319deb8a3a/scipy-1.18.1-cp315-cp315t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:49023963c193dacee096301452f223ee24d86ec5807f8df93c0f7221d119e305", size = 35374253, upload-time = "2026-08-21T23:28:23.732Z" }, + { url = "https://files.pythonhosted.org/packages/b5/c6/59fdeffb4f1435299f93d9dc8140b43ad2916e6cfc944be6c3041fcec86d/scipy-1.18.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:d84a09d0dad90ba6525d8ac1c2334b33e64bf3ccfe9e841f02feb867a22681e4", size = 35758543, upload-time = "2026-08-21T23:28:29.431Z" }, + { url = "https://files.pythonhosted.org/packages/cf/d9/135be205d9de8783193aff9cc3bf483a03a38e4b29432c954e8cb66ac14e/scipy-1.18.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:179ce34a8d0fe273d8883ba59e17e052247d08973dfcb743ca52bb1cce2d60b0", size = 37521946, upload-time = "2026-08-21T23:28:35.245Z" }, + { url = "https://files.pythonhosted.org/packages/5c/a2/5b7d5270621ab7cfa3f7766067bf95dc360b5efb6394694e8143b4156e2b/scipy-1.18.1-cp315-cp315t-win_amd64.whl", hash = "sha256:5632e3ae3d09197c446310cd5187de63e28448ce22f0f67b2b93d97503c0c230", size = 37408295, upload-time = "2026-08-21T23:28:40.724Z" }, + { url = "https://files.pythonhosted.org/packages/63/ad/741c19fcb66755ff953daf9243af8480e4bf3d7fbe57583c178c7d2b6b51/scipy-1.18.1-cp315-cp315t-win_arm64.whl", hash = "sha256:eda632a7981f69730d6281f451db9c1c370993a2c0d7ddb43e2a809a2862b83a", size = 25319710, upload-time = "2026-08-21T23:28:45.713Z" }, +] + +[[package]] +name = "tomli" +version = "2.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b0/78/9ad63712633ed3ab5cc1a648d863d7e7da371e9425e209555a0fe711b695/tomli-2.5.0.tar.gz", hash = "sha256:264507556cd8b8c8e7c6ee037cdf443a463f03f4c958e57195e3d369711b8ff6", size = 17662, upload-time = "2026-10-07T12:23:37.892Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/22/a6/ab99b60ee52acd949684febabc3005d0045d0f66bebd9cdebd67372d26dd/tomli-2.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c4dc1c1781f2f716de763d1e9a7b34c6a894e167e291c7c5d16c72f7a9538545", size = 163901, upload-time = "2026-10-07T12:22:15.601Z" }, + { url = "https://files.pythonhosted.org/packages/bc/00/ee01b7ed4579180fff07142d290257f25ba786f23f3ec6005f620933c2f5/tomli-2.5.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:eff8babca5a7999bc137acbc7482a8b7e17ffca5075ab41f5d770ab408c7bfef", size = 163756, upload-time = "2026-10-07T12:22:16.957Z" }, + { url = "https://files.pythonhosted.org/packages/72/c2/4efebf65372f6583185f79799312109dddb61102d47e5c33dcfd1a297aca/tomli-2.5.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:86665cee9c4835b7a7f1e8ec2c719b5258d4dc782887aded5a8ae7352a96843b", size = 268038, upload-time = "2026-10-07T12:22:18.135Z" }, + { url = "https://files.pythonhosted.org/packages/53/07/5850468e925d898abb36038666f9c333a94d2a223e802a8ba5b6d319d23f/tomli-2.5.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d7e369fd63331746182360977b1892bfc215476a30d61612d732425311639f56", size = 276422, upload-time = "2026-10-07T12:22:19.567Z" }, + { url = "https://files.pythonhosted.org/packages/b4/87/f293984cdcf83c054196d4fd3dad44fc68ae55b4b8c44bc76cef360c3150/tomli-2.5.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7ad1ea345759240d6463efa0ed1c704402752e49aa21476620738d74d72d8aa1", size = 272616, upload-time = "2026-10-07T12:22:20.794Z" }, + { url = "https://files.pythonhosted.org/packages/ce/ce/db582886b3c1219d3fec93ebd669332482e5aee7a91e0f7838d84f2d1759/tomli-2.5.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:96243987194634bd411066ce40c952e108f86af04db533ecd8ac3ff2a85b1885", size = 276593, upload-time = "2026-10-07T12:22:22.12Z" }, + { url = "https://files.pythonhosted.org/packages/bf/72/7619b87dea4261fc27dd7b54c4461c129c1f7d9bb7ba3aec89c797a431b8/tomli-2.5.0-cp311-cp311-win32.whl", hash = "sha256:610b27d99f28ec5f191c7064a48f3ddb179a1fe6ca73d571483ae859f57b605e", size = 101830, upload-time = "2026-10-07T12:22:23.651Z" }, + { url = "https://files.pythonhosted.org/packages/1e/74/220106da34502304b6751a2a9b8a9fbca6c3fd47e737a2e2e3da7c61c9db/tomli-2.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:c804ae44fe7b4bab5da295e4f980a1ff04670bca9d23fe0a4e887e08ebd741a8", size = 112742, upload-time = "2026-10-07T12:22:24.972Z" }, + { url = "https://files.pythonhosted.org/packages/27/99/7d9c8b41837a7773613e169504147375c157a290167aa59ad74a085f521f/tomli-2.5.0-cp311-cp311-win_arm64.whl", hash = "sha256:cfac177ebd6236003846ea339981f71457cb6eb748f23381eb257e45092e3980", size = 109332, upload-time = "2026-10-07T12:22:26.117Z" }, + { url = "https://files.pythonhosted.org/packages/52/ed/7baa86f87493646a594de388c7c1c40a39dd0461f7e9c0359cbeefc91fe8/tomli-2.5.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:1f4a40d03fb9f63424f0979855bdeaf44dd7696b8d59501822c10ed30ba532df", size = 164854, upload-time = "2026-10-07T12:22:27.444Z" }, + { url = "https://files.pythonhosted.org/packages/a5/b1/44c0341f2224397855723c7a8a39f718ea6fcbcc3dacc66e5aeca0f334e3/tomli-2.5.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9ebf8d19b17bd0daeb7b7dec81a946a439b753942fd0210d6e96c532249eea6b", size = 164074, upload-time = "2026-10-07T12:22:28.679Z" }, + { url = "https://files.pythonhosted.org/packages/23/04/e2d5b7d3fba47adedb23de616c16d428ea076c79a3d8e1d95d649ffe197e/tomli-2.5.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bf0b5e8e0f68ebb494356e577c06c139161efd8d3b9050f93b39b7c26cc54ff0", size = 274274, upload-time = "2026-10-07T12:22:29.804Z" }, + { url = "https://files.pythonhosted.org/packages/43/90/6090e706ff27a6f89f4a40578e3324b95c3cd8c4150868aabf33a8f414c3/tomli-2.5.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6cf74416bdc94ae458b14e37286c1073081850ac8459a00d0c5efef5d44294c6", size = 286435, upload-time = "2026-10-07T12:22:31.297Z" }, + { url = "https://files.pythonhosted.org/packages/0a/9e/a2c40768df16c408f22430afb0a73e9d7e5f79c950884954649d1146b74d/tomli-2.5.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:61ea1ebe1e55a34ea8199cc8dbff398d35027b82271c8ac4802fd3a1fd5b1bcc", size = 278119, upload-time = "2026-10-07T12:22:32.601Z" }, + { url = "https://files.pythonhosted.org/packages/12/25/3c0cb485b98e9cfac495629b1c93c87ccf0b72fbe9d2689fd8fe62c6d5a3/tomli-2.5.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ed53f7e89bb04f6d9e8e7799112360b0c4d5cbff067de0814c98c37c39b920f7", size = 286177, upload-time = "2026-10-07T12:22:33.745Z" }, + { url = "https://files.pythonhosted.org/packages/77/8b/0144c65f0e37e51c18d04ae15c21b19431c165002d0131fe9aa8b0b8b1e8/tomli-2.5.0-cp312-cp312-win32.whl", hash = "sha256:e7ad033e27a516a233bea839cdb77b80146facb3b4f40bf02cd0cac165cdd5c2", size = 102760, upload-time = "2026-10-07T12:22:34.887Z" }, + { url = "https://files.pythonhosted.org/packages/de/32/5d6d8f42fc9a05fce69354e00ff256484192f5f2fc9a2165718fa0de61ec/tomli-2.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:bd05de8c1698f8413dd7d869492693a0bf2211543b787ac78cd5e7536af1a6d7", size = 112722, upload-time = "2026-10-07T12:22:36.162Z" }, + { url = "https://files.pythonhosted.org/packages/30/65/df18032218db0fb9b769fb23c8039a051f15c811993995ea04c350273a32/tomli-2.5.0-cp312-cp312-win_arm64.whl", hash = "sha256:069435bd5480429b98c5e5afb02ab21c219b6f0064680671c6dc0d46817346ea", size = 109534, upload-time = "2026-10-07T12:22:37.296Z" }, + { url = "https://files.pythonhosted.org/packages/42/e5/51736d70da209350969e15aca5c5ab6e2ce1ea87a0a892a6c13aec172a86/tomli-2.5.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:943276cf269e0071948d9ff697159c1735e623c1151d88abb09b74659ef0cbea", size = 163328, upload-time = "2026-10-07T12:22:38.373Z" }, + { url = "https://files.pythonhosted.org/packages/ec/55/086f80dab4ab497602644274e6dea7ec5dd0b4e262e443a8ad3bb7edee2d/tomli-2.5.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:463b16086865b97facd8d0b3fb4cb7c544e3f58d2a69dc3113d6db9653fdb043", size = 162246, upload-time = "2026-10-07T12:22:39.673Z" }, + { url = "https://files.pythonhosted.org/packages/aa/eb/3ecc94459f3635c92321f4e7bde571323fdb2267c50e19e3188a281eae3b/tomli-2.5.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1245a6638fc4bb0a60af38a7d45413db34a13842027c77597c712c998c62fdf0", size = 272655, upload-time = "2026-10-07T12:22:41.08Z" }, + { url = "https://files.pythonhosted.org/packages/c0/d7/494fd1f0c37a621f1ad9975c2efadb523e8101f144ed6edb2e7fe64738f2/tomli-2.5.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5d8bac3d603c97e6854424e5b2b5b741bdbde387e09f162fb0446812b4a8362b", size = 283595, upload-time = "2026-10-07T12:22:42.222Z" }, + { url = "https://files.pythonhosted.org/packages/70/51/bb8d62b1317e6640866f6949b2d5855e5300f2c99d46de1cd245570bba65/tomli-2.5.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:21e4cae4114aba25aa0d4f85cdf486d290fb35c0954d7bba536248da64d43066", size = 276253, upload-time = "2026-10-07T12:22:43.625Z" }, + { url = "https://files.pythonhosted.org/packages/66/f4/f46bd7f0763cd47de2db697dca9257c6a4adfd1a93b018cc75c8190ed5a8/tomli-2.5.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:bbaefc84548d754be821bba7c4141c4787dda182f9e77f2f87b71213529efa7b", size = 283582, upload-time = "2026-10-07T12:22:44.983Z" }, + { url = "https://files.pythonhosted.org/packages/ac/03/70f2bcb2923a6db37818d917e124270a7f4cfd38ea576f5aa753a91c0ef5/tomli-2.5.0-cp313-cp313-win32.whl", hash = "sha256:abdbf6313b8d9efe157edeb7ab6eae4de064b1300ad31abf73755154b30abe68", size = 102628, upload-time = "2026-10-07T12:22:46.508Z" }, + { url = "https://files.pythonhosted.org/packages/dc/98/d52024bb5b0ff68b4f0d276d867f634c84a67319a7e9f6b7708a37742333/tomli-2.5.0-cp313-cp313-win_amd64.whl", hash = "sha256:fd4dc129784e0c5335bd4e61dfcc4487499a013419e655cf2da1d091b7e0efdc", size = 113301, upload-time = "2026-10-07T12:22:47.647Z" }, + { url = "https://files.pythonhosted.org/packages/6f/f2/540db3a70572a8c23a28aba3e9c358ce0ffffbafc990905c1343aa265b31/tomli-2.5.0-cp313-cp313-win_arm64.whl", hash = "sha256:69491c143d2fe063046e0301e62a810bed338fa4d1ce0fd870c27dc1e09b0d84", size = 109744, upload-time = "2026-10-07T12:22:48.925Z" }, + { url = "https://files.pythonhosted.org/packages/e4/49/caf6b307766eb9567664a8707e9d6be5fcc0e8903f18781c6677a60d80c7/tomli-2.5.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:d3182ee2d887e507bd67319a0a61105d1dd33facc111329559a233b772c1a105", size = 162899, upload-time = "2026-10-07T12:22:50.088Z" }, + { url = "https://files.pythonhosted.org/packages/d3/c8/68cfce773a2733a49c74f99d627fb461bd990756860099eac25617889585/tomli-2.5.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:521345fd1f19d45b8df87657aaa38b6f2ca3800059fadf428e7ebf479a383646", size = 162080, upload-time = "2026-10-07T12:22:51.558Z" }, + { url = "https://files.pythonhosted.org/packages/7e/b2/e5bb8651fdad593f670501a7d718b1a7f73f064d44dea15e04c04dfef45d/tomli-2.5.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6e95c7614e705bfe2b04b27aa124adec59752d15813df37e2156747cab3a006b", size = 273380, upload-time = "2026-10-07T12:22:52.918Z" }, + { url = "https://files.pythonhosted.org/packages/8d/d2/9e2d7f8b1dfe0e2b34c245986ebd55c4c553ea4ce6c47c443b332673253f/tomli-2.5.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7ac2027d37c3afbdf4bdd377f2676f6f1d2122a5be1f1137b49dced590b37e75", size = 283228, upload-time = "2026-10-07T12:22:54.173Z" }, + { url = "https://files.pythonhosted.org/packages/ba/df/ec7b876b7b1a2718bd74a3743c076fff565b04029ba33e8f61fac262739f/tomli-2.5.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c414be4ed9d3cac80c42e348fa5a956117d1a48227f48026e31f59cb4a7671eb", size = 277189, upload-time = "2026-10-07T12:22:55.342Z" }, + { url = "https://files.pythonhosted.org/packages/7d/7b/e192d9eed0b9cb80da799f4d77052297fb9a2c3cc9b19f571f56ea88add6/tomli-2.5.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:9b03d7dc168353b4132965bde20feceabaa470e570c6f59660dfae59b1f9eeb3", size = 283632, upload-time = "2026-10-07T12:22:56.735Z" }, + { url = "https://files.pythonhosted.org/packages/84/50/ff94454e75461d75623e47401ed323d65c10aab8fe9033242c20cd2fdf32/tomli-2.5.0-cp314-cp314-win32.whl", hash = "sha256:6f041843c4d3a37245c0c056fd955b186bf8b1fb85690cbe40b81230891dc34b", size = 103535, upload-time = "2026-10-07T12:22:58.084Z" }, + { url = "https://files.pythonhosted.org/packages/54/0b/bdacf05f963bd6026ebf6eeb0beda847d1d60e03e440725c64a4e08a0afd/tomli-2.5.0-cp314-cp314-win_amd64.whl", hash = "sha256:f4b653094e18f9031102d3a1da5c729c8f222d85225b18037dac621695e46e1a", size = 114621, upload-time = "2026-10-07T12:22:59.2Z" }, + { url = "https://files.pythonhosted.org/packages/61/99/53f438fa6ae4f9d4ed0ddde3e7242b3bdc34b48c8f9948b72b9e9b127676/tomli-2.5.0-cp314-cp314-win_arm64.whl", hash = "sha256:3f89d10c1ff6a38d992c27fc8a4816af71a909e08a40ec66934240b1e74347c3", size = 111572, upload-time = "2026-10-07T12:23:00.479Z" }, + { url = "https://files.pythonhosted.org/packages/b9/20/1f88f19427d380a40e90a770e087489eaafe4aeee070ae88ed2bbec00acd/tomli-2.5.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:e9e15b4a6c7dd6b85b5fbab29488a73f1f70de516942308daa266bf0e0aeb0d4", size = 171814, upload-time = "2026-10-07T12:23:01.914Z" }, + { url = "https://files.pythonhosted.org/packages/d0/56/cbe5079c9f9a54b9b3e27fc82f08f3cb36edee75561679f53d2380c801d6/tomli-2.5.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:e12bbcd32897272fb05929110362ae9ff4c1b9bb26bd9e971e71dcd3275b4c3d", size = 171324, upload-time = "2026-10-07T12:23:03.18Z" }, + { url = "https://files.pythonhosted.org/packages/2b/30/1d53fd3b0f1cb3ba542e345ec32c26aefdddc4e829e4f3429af8a4f27782/tomli-2.5.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:20aa36de8f2cf87237143bc1fa1aae8d6612c09118f4da21c6a684db5dd1f6f9", size = 297441, upload-time = "2026-10-07T12:23:04.345Z" }, + { url = "https://files.pythonhosted.org/packages/66/d9/0800acb6a111686f764c1b91ef15cc42a20a66a46013bb42220f1d2c61c1/tomli-2.5.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:22185fad8a1e622f064e78008018a0dd3323550dcb479cb7a1d296888d74024f", size = 307476, upload-time = "2026-10-07T12:23:05.671Z" }, + { url = "https://files.pythonhosted.org/packages/e8/63/30a8f3cd51b5bec37f04744bad0b0dc6160df84aad4f27b0e9283d66f221/tomli-2.5.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:984012f71908165449a951de2050d52f276bfe3aa5d5f570f63ddad814370374", size = 296113, upload-time = "2026-10-07T12:23:07.202Z" }, + { url = "https://files.pythonhosted.org/packages/ab/18/0b9ffc597e69c5a1e20a7823cb60d54b39a9f54e91edcb8574f022186758/tomli-2.5.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f79203b3965b4000e91808aaa7c040206093f2b8bf86f455982f2274c9ccf442", size = 307725, upload-time = "2026-10-07T12:23:08.508Z" }, + { url = "https://files.pythonhosted.org/packages/ab/c7/18f8baae0b5607a60e8e19b4a7fedee43a8ff6458e3896dcbbadeeac9c22/tomli-2.5.0-cp314-cp314t-win32.whl", hash = "sha256:91294a9fb94a75542f6e46e4a2ae709bd8d9b51134098cae5cf3bea5478b6d03", size = 108546, upload-time = "2026-10-07T12:23:09.956Z" }, + { url = "https://files.pythonhosted.org/packages/72/34/4cca9739254130627bde87500b3f2b512154fe2f278efa7e2a5e10ad4bcb/tomli-2.5.0-cp314-cp314t-win_amd64.whl", hash = "sha256:f15e3e0b835a6d68b10c86bf80a3149780498d6911c93c3ffd1861d19f9200f1", size = 117814, upload-time = "2026-10-07T12:23:11.486Z" }, + { url = "https://files.pythonhosted.org/packages/7d/fb/afa530d47dd80a78fce43beac6bc6e00f84558eafcffbc6f37b21e80d056/tomli-2.5.0-cp314-cp314t-win_arm64.whl", hash = "sha256:6664b7ae7af7294256c53960a6103077f4914cec8ff98479c352f622c6f6b2f0", size = 115188, upload-time = "2026-10-07T12:23:12.728Z" }, + { url = "https://files.pythonhosted.org/packages/66/98/316fdc00f8c0939e6fe50461dd343c162d3ad51d1286eb25b7db54361d50/tomli-2.5.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:a525685c2f97da40762b8695eb7aa0af4c8344ca1905c73e4e29cb04d34607dc", size = 162775, upload-time = "2026-10-07T12:23:13.941Z" }, + { url = "https://files.pythonhosted.org/packages/c5/22/7b10fa5bb01c9539f53f69b619361b19350acc73657772ea7ac70ba309a8/tomli-2.5.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:9dbb18c1cfb2f6517942fc9314437f66aa06d94436ffb1f06102ef3572f35276", size = 161406, upload-time = "2026-10-07T12:23:15.215Z" }, + { url = "https://files.pythonhosted.org/packages/9c/e7/1a069d86dfd20f1f84f71c63faed9f83c1d890bc06c27d82dc7d888fb573/tomli-2.5.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:752e8b1aa6a4367ef8bf6a1a1e005540f7ed055ba36d7193796812ca5404eb52", size = 273855, upload-time = "2026-10-07T12:23:16.471Z" }, + { url = "https://files.pythonhosted.org/packages/ae/83/d1ef43d1687d092ab9c235455c76e6e709483b346b056f086095c7c263a5/tomli-2.5.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c47300f9bf791808f77d82747691c4bb09cb14bdf3060cca99b42cdc4361d5a7", size = 284910, upload-time = "2026-10-07T12:23:18.166Z" }, + { url = "https://files.pythonhosted.org/packages/cc/05/f4d9cf7de61822ece0c3873f30d291e324911c71a378b8bfe5ced13fd9f5/tomli-2.5.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:19b0dd8749f4ea2f112c5fcfb3c5248390c899d7e2e173f1d91abee1fa0ff391", size = 277723, upload-time = "2026-10-07T12:23:19.355Z" }, + { url = "https://files.pythonhosted.org/packages/42/28/78262493141fa543151cf005760c3cb01d09fc28a11f993c05109902cb8c/tomli-2.5.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:57b1c3b01fab802e2899bc3d168dca320e14165e2fd9fd584760fb4ca5826859", size = 285115, upload-time = "2026-10-07T12:23:20.698Z" }, + { url = "https://files.pythonhosted.org/packages/1a/b9/e1dab9a30bcb677b5cc5cee810609cfd64f24306a3055767dd3fda00b1e0/tomli-2.5.0-cp315-cp315-win32.whl", hash = "sha256:667e521b37a6c5ccaa044202c235b530f90177ffe2cd4a64ecc213c7dd535feb", size = 103475, upload-time = "2026-10-07T12:23:21.941Z" }, + { url = "https://files.pythonhosted.org/packages/4c/bd/31a3790c11d6ea95fcf5e6022ac0f8d0543c9b61120b730fc481bd43d3b4/tomli-2.5.0-cp315-cp315-win_amd64.whl", hash = "sha256:d747252933c8a65ef6bd8da0fbb7ce28a90eb6119d8cd00772cd528aa07b68d5", size = 114589, upload-time = "2026-10-07T12:23:23.098Z" }, + { url = "https://files.pythonhosted.org/packages/47/a2/4f6310fa699364f0e3af7ee3af88dddd9af066d33e716a0265bbe2b3ea84/tomli-2.5.0-cp315-cp315-win_arm64.whl", hash = "sha256:75dbcde8751b0a960aa3de173aa5e894d590755c6d7758b7e774c06f1dc3cbdd", size = 111493, upload-time = "2026-10-07T12:23:24.233Z" }, + { url = "https://files.pythonhosted.org/packages/68/14/00853f0b396d8971107ae1921bb5b322fdee1650d2f16bf06c20adb532e5/tomli-2.5.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:2419c2a189551987b59d80e63ec355671283336f41c6b9b89462df679c7d0c57", size = 171380, upload-time = "2026-10-07T12:23:25.512Z" }, + { url = "https://files.pythonhosted.org/packages/89/ad/fa6949321dadee46b27363974fb197b94c911c3b0f7a5fd26d7dc18fc2a0/tomli-2.5.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:0dc598040da8d42cf20f0be588ed7004f46db12a0ac6c32e03a59dccedaaadcd", size = 170553, upload-time = "2026-10-07T12:23:26.855Z" }, + { url = "https://files.pythonhosted.org/packages/53/aa/3056c919eb3e084df3752b2cf5f865dcc04af0b27dba2f66d7b28af4633a/tomli-2.5.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:49096930c8d886c9bbdab62d2d0d17ce823ddeea522309a190b36245d5b49e01", size = 294428, upload-time = "2026-10-07T12:23:28.132Z" }, + { url = "https://files.pythonhosted.org/packages/96/b2/faeeb5d8769ea3832021d73e892c8391eae7b4b4f8b55a789127bd8b18a9/tomli-2.5.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b8ade5023067f99fe72b88accd30d0ea05a158e9e32a11f124e731ea9695313f", size = 304909, upload-time = "2026-10-07T12:23:29.381Z" }, + { url = "https://files.pythonhosted.org/packages/f6/52/f094c09e73fb654b621716d019acb5d29bdfd1be01df80c281d552bda48d/tomli-2.5.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:b69564772b5c8f22ea5f498dff08cfa825045b4d4c4400529000bdf818aa3b2a", size = 293220, upload-time = "2026-10-07T12:23:30.608Z" }, + { url = "https://files.pythonhosted.org/packages/86/f5/0c30541078ca4b505ce3bd76ed931facbfec524dd018535d691d1af0a6d2/tomli-2.5.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:8ff3a2ca028c7eee0c777f9a092038d0a594a9fa04e215f929a22c329e2cb142", size = 305705, upload-time = "2026-10-07T12:23:32.181Z" }, + { url = "https://files.pythonhosted.org/packages/05/74/590e7d19d6a118fc5cc5704ff358e21d95b8573f6b9443b1519f29ca8825/tomli-2.5.0-cp315-cp315t-win32.whl", hash = "sha256:62fc1bc8eb03e3a9cadfca713d65614ed8e09d974a283295ffe3a831976b4dc5", size = 108432, upload-time = "2026-10-07T12:23:33.496Z" }, + { url = "https://files.pythonhosted.org/packages/1c/b8/63a75cfb27a17c38550e44025d3a6e7be64516fd8608a3b75703bf37d81b/tomli-2.5.0-cp315-cp315t-win_amd64.whl", hash = "sha256:f3fcbc57b1791fa6cbe5d8434179d51de12be1a4811469529f47f6e7487a2571", size = 117281, upload-time = "2026-10-07T12:23:34.648Z" }, + { url = "https://files.pythonhosted.org/packages/72/01/e8c1debb2173973372934c68fc8e46170ab60ef23ed4592dff4dec6e8993/tomli-2.5.0-cp315-cp315t-win_arm64.whl", hash = "sha256:d2ba24db8a9376921b5e87b4762b9adb0f3f1deaea68f2b8b0bb2c11efb9c3e7", size = 115069, upload-time = "2026-10-07T12:23:35.77Z" }, + { url = "https://files.pythonhosted.org/packages/60/3f/3e3f8fd0919249b0200c80fbc4f9a1e70be19f9883da71dfb7f8b9ab8aca/tomli-2.5.0-py3-none-any.whl", hash = "sha256:32a7b79ac57a2e83670ce329ccf675798bc5a2094783a63676866b70503f2e2b", size = 14765, upload-time = "2026-10-07T12:23:36.875Z" }, +] + +[[package]] +name = "typing-extensions" +version = "4.16.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f6/cc/6253133b5bb138fc3306cebfbda2c520f545d36b5be2c7255cc528bb45d6/typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5", size = 113555, upload-time = "2026-07-02T08:40:05.92Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/49/d3/b8441a820a491ddfc024b0b0cf0393375b75ea13866d9c66727e54c2fc80/typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8", size = 45571, upload-time = "2026-07-02T08:40:04.659Z" }, +] From 9567c40914c758fd6c94aa40ac16763512b071aa Mon Sep 17 00:00:00 2001 From: Vladimir Kutuev Date: Sat, 28 Nov 2026 02:52:34 +0300 Subject: [PATCH 08/14] chore(python): enforce ruff lint and format Add a [tool.ruff] configuration (E/F/I/W rules, line-length 120) and bring the whole python/ tree to a clean baseline: - fix import sorting (I001) and unused imports (F401) - apply ruff format across the tree - E741 ignored: I/J/V is standard COO notation for sparse matrices - per-file ignores for the star-import re-export pattern in pyspla/__init__.py, the documented star import in example.py, and sys.path setup in test files --- python/algorithms/graph_spla.py | 3 +- python/algorithms/main_spla.py | 11 +-- python/algorithms/sssp_spla.py | 4 +- python/algorithms/test_compare.py | 3 +- python/pyproject.toml | 19 ++++ python/pyspla/__init__.py | 12 +-- python/pyspla/array.py | 6 +- python/pyspla/bridge.py | 142 ++++++++++++++++------------- python/pyspla/matrix.py | 144 ++++++++++++++++++++---------- python/pyspla/object.py | 1 - python/pyspla/op.py | 7 +- python/pyspla/scalar.py | 2 +- python/pyspla/type.py | 107 +++++++++++----------- python/pyspla/vector.py | 47 +++------- 14 files changed, 280 insertions(+), 228 deletions(-) diff --git a/python/algorithms/graph_spla.py b/python/algorithms/graph_spla.py index 054c8c9dc..4d855fd33 100644 --- a/python/algorithms/graph_spla.py +++ b/python/algorithms/graph_spla.py @@ -1,6 +1,7 @@ -from pyspla import FLOAT, INT, Matrix from scipy.io import mmread +from pyspla import FLOAT, INT, Matrix + def sort_by_ij(I, J, V): return map(list, zip(*sorted(zip(I, J, V)))) diff --git a/python/algorithms/main_spla.py b/python/algorithms/main_spla.py index fdebc6ffb..08dc40675 100644 --- a/python/algorithms/main_spla.py +++ b/python/algorithms/main_spla.py @@ -11,10 +11,11 @@ read_vectors_spla, ) from pr_spla import pr_spla -from pyspla import FLOAT, INT from sssp_spla import sssp_spla from tc_spla import tc_spla +from pyspla import FLOAT, INT + INF = math.inf @@ -81,9 +82,7 @@ def main(): v, count, depth = bfs_spla(args.start, A) else: A = read_vectors_spla(str(args.vectors), dtype=INT) - v, count, depth = bfs_spla( - args.start, A, push_only=True, pull_only=False, push_pull=False - ) + v, count, depth = bfs_spla(args.start, A, push_only=True, pull_only=False, push_pull=False) with open(args.output, "w") as f_out: f_out.write(f"Reached vertices: {count}\n") f_out.write(f"Max depth: {depth - 1}\n") @@ -97,9 +96,7 @@ def main(): v = sssp_spla(args.start, A) else: A = read_vectors_spla(str(args.vectors), dtype=FLOAT) - v = sssp_spla( - args.start, A, push_only=True, pull_only=False, push_pull=False - ) + v = sssp_spla(args.start, A, push_only=True, pull_only=False, push_pull=False) with open(args.output, "w") as f_out: idx, vals = v.to_lists() for k in range(len(idx)): diff --git a/python/algorithms/sssp_spla.py b/python/algorithms/sssp_spla.py index bc273b5a9..c9bde77a7 100644 --- a/python/algorithms/sssp_spla.py +++ b/python/algorithms/sssp_spla.py @@ -11,9 +11,7 @@ def make_vector(n): return v -def sssp_spla( - start, A, push_only=False, pull_only=False, push_pull=True, front_factor=0.05 -): +def sssp_spla(start, A, push_only=False, pull_only=False, push_pull=True, front_factor=0.05): n = A.n_rows if not (push_only or pull_only or push_pull): push_only = True diff --git a/python/algorithms/test_compare.py b/python/algorithms/test_compare.py index 743513bd3..d74d1e39a 100644 --- a/python/algorithms/test_compare.py +++ b/python/algorithms/test_compare.py @@ -22,11 +22,12 @@ from graph_spla import read_mtx_pr_spla, read_spla from pr_classic import pagerank_naive as pr_classic from pr_spla import pr_spla -from pyspla import FLOAT, INT from sssp_spla import sssp_spla from tc_classic import tc_naive as tc_classic from tc_spla import tc_sandia, tc_spla, tc_spla_mxmT +from pyspla import FLOAT, INT + DATA = Path(__file__).parent / "data" UNDIRECTED_GRAPH = DATA / "undirected.mtx" DIRECTED_GRAPH = DATA / "directed.mtx" diff --git a/python/pyproject.toml b/python/pyproject.toml index 9a335ed67..30cd4e886 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -68,3 +68,22 @@ dev = [ "networkx>=3.0", "ruff>=0.5", ] + +[tool.ruff] +line-length = 120 +target-version = "py39" + +[tool.ruff.lint] +select = ["E", "F", "I", "W"] +# I/J/V are standard COO notation for sparse matrices +ignore = ["E741"] + +[tool.ruff.lint.per-file-ignores] +# __init__.py re-exports the public API via star imports and +# initializes the native library between import groups +"pyspla/__init__.py" = ["E402", "E501", "F401", "F403", "F405"] +# example.py demonstrates the documented `from pyspla import *` usage +"example.py" = ["F403", "F405"] +# test files manipulate sys.path before importing project modules +"tests/**" = ["E402"] +"algorithms/test_compare.py" = ["E402"] diff --git a/python/pyspla/__init__.py b/python/pyspla/__init__.py index 9c6032403..728a127a3 100644 --- a/python/pyspla/__init__.py +++ b/python/pyspla/__init__.py @@ -254,16 +254,16 @@ bridge.initialize() -from .library import * +from .array import * from .descriptor import * -from .op import * +from .library import * +from .matrix import * from .object import * +from .op import * +from .scalar import * from .schedule import * from .type import * -from .array import * -from .matrix import * from .vector import * -from .scalar import * from .version import * __version__ = VERSIONS[-1] @@ -287,5 +287,5 @@ "Matrix", "Vector", "Scalar", - "VERSIONS" + "VERSIONS", ] diff --git a/python/pyspla/array.py b/python/pyspla/array.py index c47d6bd2d..ec4ed7388 100644 --- a/python/pyspla/array.py +++ b/python/pyspla/array.py @@ -27,12 +27,12 @@ """ import ctypes +import random as rnd from .bridge import backend, check -from .type import Type, INT, UINT, FLOAT -from .object import Object from .memview import MemView -import random as rnd +from .object import Object +from .type import FLOAT, INT, UINT, Type class Array(Object): diff --git a/python/pyspla/bridge.py b/python/pyspla/bridge.py index a9cdb5c0f..fccbb0e8d 100644 --- a/python/pyspla/bridge.py +++ b/python/pyspla/bridge.py @@ -26,25 +26,19 @@ SOFTWARE. """ -__all__ = [ - "backend", - "check", - "is_docs", - "FormatMatrix", - "FormatVector" -] +__all__ = ["backend", "check", "is_docs", "FormatMatrix", "FormatVector"] -import os +import atexit import ctypes +import enum +import os import pathlib import platform -import atexit -import enum -ARCH = {'AMD64': 'x64', 'x86_64': 'x64', 'arm64': 'arm64'}[platform.machine()] -SYSTEM = {'Darwin': 'macos', 'Linux': 'linux', 'Windows': 'windows'}[platform.system()] -TARGET_SUFFIX = {'macos': '.dylib', 'linux': '.so', 'windows': '.dll'}[SYSTEM] -TARGET = {'macos': 'libspla', 'linux': 'libspla', 'windows': 'spla'}[SYSTEM] + "_" + ARCH + TARGET_SUFFIX +ARCH = {"AMD64": "x64", "x86_64": "x64", "arm64": "arm64"}[platform.machine()] +SYSTEM = {"Darwin": "macos", "Linux": "linux", "Windows": "windows"}[platform.system()] +TARGET_SUFFIX = {"macos": ".dylib", "linux": ".so", "windows": ".dll"}[SYSTEM] +TARGET = {"macos": "libspla", "linux": "libspla", "windows": "spla"}[SYSTEM] + "_" + ARCH + TARGET_SUFFIX _spla_path = None _spla = None @@ -179,13 +173,9 @@ def load_library(lib_path): _status_t = ctypes.c_uint _object_t = ctypes.c_void_p _p_object_t = ctypes.POINTER(_object_t) - _callback_t = ctypes.CFUNCTYPE(None, - ctypes.c_int, - ctypes.c_char_p, - ctypes.c_char_p, - ctypes.c_char_p, - ctypes.c_int, - ctypes.c_void_p) + _callback_t = ctypes.CFUNCTYPE( + None, ctypes.c_int, ctypes.c_char_p, ctypes.c_char_p, ctypes.c_char_p, ctypes.c_int, ctypes.c_void_p + ) _spla.spla_Library_finalize.restype = None _spla.spla_Library_finalize.argtypes = [] @@ -576,46 +566,76 @@ def load_library(lib_path): _spla.spla_Exec_v_reduce.restype = _status_t _spla.spla_Exec_v_count_mf.restype = _status_t - _spla.spla_Exec_mxm.argtypes = \ - [_object_t, _object_t, _object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_mxmT_masked.argtypes = \ - [_object_t, _object_t, _object_t, _object_t, _object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_kron.argtypes = \ - [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_mxv_masked.argtypes = \ - [_object_t, _object_t, _object_t, _object_t, _object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_vxm_masked.argtypes = \ - [_object_t, _object_t, _object_t, _object_t, _object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_m_eadd.argtypes = \ - [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_m_emult.argtypes = \ - [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_m_reduce_by_row.argtypes = \ - [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_m_reduce_by_column.argtypes = \ - [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_m_reduce.argtypes = \ - [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_m_transpose.argtypes = \ - [_object_t, _object_t, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_m_extract_row.argtypes = \ - [_object_t, _object_t, _uint, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_m_extract_column.argtypes = \ - [_object_t, _object_t, _uint, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_v_eadd.argtypes = \ - [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_v_emult.argtypes = \ - [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_v_eadd_fdb.argtypes = \ - [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_v_assign_masked.argtypes = \ - [_object_t, _object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_v_map.argtypes = \ - [_object_t, _object_t, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_v_reduce.argtypes = \ - [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] - _spla.spla_Exec_v_count_mf.argtypes = \ - [_object_t, _object_t, _object_t, _p_object_t] + _spla.spla_Exec_mxm.argtypes = [ + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _p_object_t, + ] + _spla.spla_Exec_mxmT_masked.argtypes = [ + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _p_object_t, + ] + _spla.spla_Exec_kron.argtypes = [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] + _spla.spla_Exec_mxv_masked.argtypes = [ + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _p_object_t, + ] + _spla.spla_Exec_vxm_masked.argtypes = [ + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _p_object_t, + ] + _spla.spla_Exec_m_eadd.argtypes = [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] + _spla.spla_Exec_m_emult.argtypes = [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] + _spla.spla_Exec_m_reduce_by_row.argtypes = [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] + _spla.spla_Exec_m_reduce_by_column.argtypes = [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] + _spla.spla_Exec_m_reduce.argtypes = [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] + _spla.spla_Exec_m_transpose.argtypes = [_object_t, _object_t, _object_t, _object_t, _p_object_t] + _spla.spla_Exec_m_extract_row.argtypes = [_object_t, _object_t, _uint, _object_t, _object_t, _p_object_t] + _spla.spla_Exec_m_extract_column.argtypes = [_object_t, _object_t, _uint, _object_t, _object_t, _p_object_t] + _spla.spla_Exec_v_eadd.argtypes = [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] + _spla.spla_Exec_v_emult.argtypes = [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] + _spla.spla_Exec_v_eadd_fdb.argtypes = [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] + _spla.spla_Exec_v_assign_masked.argtypes = [ + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _object_t, + _p_object_t, + ] + _spla.spla_Exec_v_map.argtypes = [_object_t, _object_t, _object_t, _object_t, _p_object_t] + _spla.spla_Exec_v_reduce.argtypes = [_object_t, _object_t, _object_t, _object_t, _object_t, _p_object_t] + _spla.spla_Exec_v_count_mf.argtypes = [_object_t, _object_t, _object_t, _p_object_t] def default_callback(status, msg, file, function, line, user_data): diff --git a/python/pyspla/matrix.py b/python/pyspla/matrix.py index 5756c48df..efb37f306 100644 --- a/python/pyspla/matrix.py +++ b/python/pyspla/matrix.py @@ -27,15 +27,14 @@ """ import ctypes +import random as rnd from .bridge import backend, check -from .type import Type, INT, UINT, FLOAT -from .object import Object +from .descriptor import Descriptor from .memview import MemView +from .object import Object from .scalar import Scalar -from .descriptor import Descriptor -from .op import OpUnary, OpBinary, OpSelect -import random as rnd +from .type import FLOAT, INT, UINT, Type class Matrix(Object): @@ -112,10 +111,11 @@ def __init__(self, shape, dtype=INT, hnd=None, label=None): if not hnd: hnd = ctypes.c_void_p(0) - check(backend().spla_Matrix_make(ctypes.byref(hnd), - ctypes.c_uint(shape[0]), - ctypes.c_uint(shape[1]), - dtype._hnd)) + check( + backend().spla_Matrix_make( + ctypes.byref(hnd), ctypes.c_uint(shape[0]), ctypes.c_uint(shape[1]), dtype._hnd + ) + ) super().__init__(label, hnd) @@ -275,13 +275,16 @@ def read(self): view_I_hnd = ctypes.c_void_p(0) view_J_hnd = ctypes.c_void_p(0) view_V_hnd = ctypes.c_void_p(0) - check(backend().spla_Matrix_read(self.hnd, - ctypes.byref(view_I_hnd), - ctypes.byref(view_J_hnd), - ctypes.byref(view_V_hnd))) - return MemView(hnd=view_I_hnd, owner=self), \ - MemView(hnd=view_J_hnd, owner=self), \ - MemView(hnd=view_V_hnd, owner=self) + check( + backend().spla_Matrix_read( + self.hnd, ctypes.byref(view_I_hnd), ctypes.byref(view_J_hnd), ctypes.byref(view_V_hnd) + ) + ) + return ( + MemView(hnd=view_I_hnd, owner=self), + MemView(hnd=view_J_hnd, owner=self), + MemView(hnd=view_V_hnd, owner=self), + ) def clear(self): """ @@ -479,8 +482,14 @@ def rand(cls, shape, dtype=INT, density=0.1, seed=None, dist=(0, 1)): if seed is not None: rnd.seed(seed) - keys = sorted(list({(rnd.randint(0, shape[0] - 1), rnd.randint(0, shape[1] - 1)) - for _ in range(int(shape[0] * shape[1] * density))})) + keys = sorted( + list( + { + (rnd.randint(0, shape[0] - 1), rnd.randint(0, shape[1] - 1)) + for _ in range(int(shape[0] * shape[1] * density)) + } + ) + ) I = [k[0] for k in keys] J = [k[1] for k in keys] @@ -646,9 +655,11 @@ def mxm(self, M, op_mult, op_add, out=None, init=None, desc=None): assert out.n_cols == M.n_cols assert self.n_cols == M.n_rows - check(backend().spla_Exec_mxm(out.hnd, self.hnd, M.hnd, - op_mult.hnd, op_add.hnd, - init.hnd, self._get_desc(desc), self._get_task(None))) + check( + backend().spla_Exec_mxm( + out.hnd, self.hnd, M.hnd, op_mult.hnd, op_add.hnd, init.hnd, self._get_desc(desc), self._get_task(None) + ) + ) return out @@ -757,9 +768,20 @@ def mxmT(self, mask, M, op_mult, op_add, op_select, out=None, init=None, desc=No assert self.n_cols == M.n_cols assert mask.shape == out.shape - check(backend().spla_Exec_mxmT_masked(out.hnd, mask.hnd, self.hnd, M.hnd, - op_mult.hnd, op_add.hnd, op_select.hnd, - init.hnd, self._get_desc(desc), self._get_task(None))) + check( + backend().spla_Exec_mxmT_masked( + out.hnd, + mask.hnd, + self.hnd, + M.hnd, + op_mult.hnd, + op_add.hnd, + op_select.hnd, + init.hnd, + self._get_desc(desc), + self._get_task(None), + ) + ) return out @@ -845,8 +867,9 @@ def kron(self, M, op_mult, out=None, desc=None): assert out.n_rows == self.n_rows * M.n_rows assert out.n_cols == self.n_cols * M.n_cols - check(backend().spla_Exec_kron(out.hnd, self.hnd, M.hnd, op_mult.hnd, - self._get_desc(desc), self._get_task(None))) + check( + backend().spla_Exec_kron(out.hnd, self.hnd, M.hnd, op_mult.hnd, self._get_desc(desc), self._get_task(None)) + ) return out @@ -1008,9 +1031,20 @@ def mxv(self, mask, v, op_mult, op_add, op_select, out=None, init=None, desc=Non assert mask.n_rows == self.n_rows assert v.n_rows == self.n_cols - check(backend().spla_Exec_mxv_masked(out.hnd, mask.hnd, self.hnd, v.hnd, - op_mult.hnd, op_add.hnd, op_select.hnd, - init.hnd, self._get_desc(desc), self._get_task(None))) + check( + backend().spla_Exec_mxv_masked( + out.hnd, + mask.hnd, + self.hnd, + v.hnd, + op_mult.hnd, + op_add.hnd, + op_select.hnd, + init.hnd, + self._get_desc(desc), + self._get_task(None), + ) + ) return out @@ -1068,8 +1102,9 @@ def eadd(self, op_add, M, out=None, desc=None): assert self.dtype == M.dtype assert self.dtype == out.dtype - check(backend().spla_Exec_m_eadd(out.hnd, self.hnd, M.hnd, op_add.hnd, - self._get_desc(desc), self._get_task(None))) + check( + backend().spla_Exec_m_eadd(out.hnd, self.hnd, M.hnd, op_add.hnd, self._get_desc(desc), self._get_task(None)) + ) return out @@ -1127,8 +1162,11 @@ def emult(self, op_mult, M, out=None, desc=None): assert self.dtype == M.dtype assert self.dtype == out.dtype - check(backend().spla_Exec_m_emult(out.hnd, self.hnd, M.hnd, op_mult.hnd, - self._get_desc(desc), self._get_task(None))) + check( + backend().spla_Exec_m_emult( + out.hnd, self.hnd, M.hnd, op_mult.hnd, self._get_desc(desc), self._get_task(None) + ) + ) return out @@ -1173,8 +1211,11 @@ def reduce_by_row(self, op_reduce, out=None, init=None, desc=None): assert out.dtype == self.dtype assert init.dtype == self.dtype - check(backend().spla_Exec_m_reduce_by_row(out.hnd, self.hnd, op_reduce.hnd, init.hnd, - self._get_desc(desc), self._get_task(None))) + check( + backend().spla_Exec_m_reduce_by_row( + out.hnd, self.hnd, op_reduce.hnd, init.hnd, self._get_desc(desc), self._get_task(None) + ) + ) return out @@ -1219,8 +1260,11 @@ def reduce_by_column(self, op_reduce, out=None, init=None, desc=None): assert out.dtype == self.dtype assert init.dtype == self.dtype - check(backend().spla_Exec_m_reduce_by_column(out.hnd, self.hnd, op_reduce.hnd, init.hnd, - self._get_desc(desc), self._get_task(None))) + check( + backend().spla_Exec_m_reduce_by_column( + out.hnd, self.hnd, op_reduce.hnd, init.hnd, self._get_desc(desc), self._get_task(None) + ) + ) return out @@ -1257,8 +1301,11 @@ def reduce(self, op_reduce, out=None, init=None, desc=None): assert out.dtype == self.dtype assert init.dtype == self.dtype - check(backend().spla_Exec_m_reduce(out.hnd, init.hnd, self.hnd, op_reduce.hnd, - self._get_desc(desc), self._get_task(None))) + check( + backend().spla_Exec_m_reduce( + out.hnd, init.hnd, self.hnd, op_reduce.hnd, self._get_desc(desc), self._get_task(None) + ) + ) return out @@ -1333,8 +1380,9 @@ def transpose(self, out=None, op_apply=None, desc=None): assert out.n_cols == self.n_rows assert out.dtype == self.dtype - check(backend().spla_Exec_m_transpose(out.hnd, self.hnd, op_apply.hnd, - self._get_desc(desc), self._get_task(None))) + check( + backend().spla_Exec_m_transpose(out.hnd, self.hnd, op_apply.hnd, self._get_desc(desc), self._get_task(None)) + ) return out @@ -1396,8 +1444,11 @@ def extract_row(self, index, out=None, op_apply=None, desc=None): assert out.n_rows == self.n_cols assert 0 <= index < self.n_rows - check(backend().spla_Exec_m_extract_row(out.hnd, self.hnd, ctypes.c_uint(index), op_apply.hnd, - self._get_desc(desc), self._get_task(None))) + check( + backend().spla_Exec_m_extract_row( + out.hnd, self.hnd, ctypes.c_uint(index), op_apply.hnd, self._get_desc(desc), self._get_task(None) + ) + ) return out @@ -1457,8 +1508,11 @@ def extract_column(self, index, out=None, op_apply=None, desc=None): assert out.n_rows == self.n_rows assert 0 <= index < self.n_cols - check(backend().spla_Exec_m_extract_column(out.hnd, self.hnd, ctypes.c_uint(index), op_apply.hnd, - self._get_desc(desc), self._get_task(None))) + check( + backend().spla_Exec_m_extract_column( + out.hnd, self.hnd, ctypes.c_uint(index), op_apply.hnd, self._get_desc(desc), self._get_task(None) + ) + ) return out diff --git a/python/pyspla/object.py b/python/pyspla/object.py index d4e9e0a1e..3e39163fe 100644 --- a/python/pyspla/object.py +++ b/python/pyspla/object.py @@ -26,7 +26,6 @@ SOFTWARE. """ -import ctypes from .bridge import backend, check diff --git a/python/pyspla/op.py b/python/pyspla/op.py index 106d0248b..928a27999 100644 --- a/python/pyspla/op.py +++ b/python/pyspla/op.py @@ -28,12 +28,7 @@ from .object import Object -__all__ = [ - "Op", - "OpUnary", - "OpBinary", - "OpSelect" -] +__all__ = ["Op", "OpUnary", "OpBinary", "OpSelect"] class Op(Object): diff --git a/python/pyspla/scalar.py b/python/pyspla/scalar.py index 4efd5d1cc..9d34f88c7 100644 --- a/python/pyspla/scalar.py +++ b/python/pyspla/scalar.py @@ -29,8 +29,8 @@ import ctypes from .bridge import backend, check -from .type import INT, FLOAT from .object import Object +from .type import FLOAT, INT class Scalar(Object): diff --git a/python/pyspla/type.py b/python/pyspla/type.py index 51410b83c..c3f966214 100644 --- a/python/pyspla/type.py +++ b/python/pyspla/type.py @@ -29,16 +29,9 @@ import ctypes from .bridge import backend -from .op import OpUnary, OpBinary, OpSelect +from .op import OpBinary, OpSelect, OpUnary -__all__ = [ - "Type", - "BOOL", - "INT", - "UINT", - "FLOAT", - "BUILT_IN" -] +__all__ = ["Type", "BOOL", "INT", "UINT", "FLOAT", "BUILT_IN"] class Type: @@ -109,7 +102,7 @@ class Type: _c_type = None _c_type_p = None - _code = '' + _code = "" _scalar_get = None _scalar_set = None _array_get = None @@ -216,26 +209,26 @@ def load_op(name): func = getattr(b, f) if hasattr(b, f) else None return OpUnary(hnd=func(), name=name, dtype_res=cls, dtype_arg0=cls) if func else None - cls.IDENTITY = load_op('IDENTITY') - cls.AINV = load_op('AINV') - cls.MINV = load_op('MINV') - cls.LNOT = load_op('LNOT') - cls.UONE = load_op('UONE') - cls.ABS = load_op('ABS') - cls.BNOT = load_op('BNOT') - cls.SQRT = load_op('SQRT') - cls.LOG = load_op('LOG') - cls.EXP = load_op('EXP') - cls.SIN = load_op('SIN') - cls.COS = load_op('COS') - cls.TAN = load_op('TAN') - cls.ASIN = load_op('ASIN') - cls.ACOS = load_op('ACOS') - cls.ATAN = load_op('ATAN') - cls.CEIL = load_op('CEIL') - cls.FLOOR = load_op('FLOOR') - cls.ROUND = load_op('ROUND') - cls.TRUNC = load_op('TRUNC') + cls.IDENTITY = load_op("IDENTITY") + cls.AINV = load_op("AINV") + cls.MINV = load_op("MINV") + cls.LNOT = load_op("LNOT") + cls.UONE = load_op("UONE") + cls.ABS = load_op("ABS") + cls.BNOT = load_op("BNOT") + cls.SQRT = load_op("SQRT") + cls.LOG = load_op("LOG") + cls.EXP = load_op("EXP") + cls.SIN = load_op("SIN") + cls.COS = load_op("COS") + cls.TAN = load_op("TAN") + cls.ASIN = load_op("ASIN") + cls.ACOS = load_op("ACOS") + cls.ATAN = load_op("ATAN") + cls.CEIL = load_op("CEIL") + cls.FLOOR = load_op("FLOOR") + cls.ROUND = load_op("ROUND") + cls.TRUNC = load_op("TRUNC") @classmethod def _setup_op_binary(cls): @@ -247,21 +240,21 @@ def load_op(name): func = getattr(b, f) if hasattr(b, f) else None return OpBinary(hnd=func(), name=name, dtype_res=cls, dtype_arg0=cls, dtype_arg1=cls) if func else None - cls.PLUS = load_op('PLUS') - cls.MINUS = load_op('MINUS') - cls.MULT = load_op('MULT') - cls.DIV = load_op('DIV') - cls.MINUS_POW2 = load_op('MINUS_POW2') - cls.FIRST = load_op('FIRST') - cls.SECOND = load_op('SECOND') - cls.BONE = load_op('BONE') - cls.MIN = load_op('MIN') - cls.MAX = load_op('MAX') - cls.LOR = load_op('LOR') - cls.LAND = load_op('LAND') - cls.BOR = load_op('BOR') - cls.BAND = load_op('BAND') - cls.BXOR = load_op('BXOR') + cls.PLUS = load_op("PLUS") + cls.MINUS = load_op("MINUS") + cls.MULT = load_op("MULT") + cls.DIV = load_op("DIV") + cls.MINUS_POW2 = load_op("MINUS_POW2") + cls.FIRST = load_op("FIRST") + cls.SECOND = load_op("SECOND") + cls.BONE = load_op("BONE") + cls.MIN = load_op("MIN") + cls.MAX = load_op("MAX") + cls.LOR = load_op("LOR") + cls.LAND = load_op("LAND") + cls.BOR = load_op("BOR") + cls.BAND = load_op("BAND") + cls.BXOR = load_op("BXOR") @classmethod def _setup_op_select(cls): @@ -273,14 +266,14 @@ def load_op(name): func = getattr(b, f) if hasattr(b, f) else None return OpSelect(hnd=func(), name=name, dtype_arg0=cls) if func else None - cls.EQZERO = load_op('EQZERO') - cls.NQZERO = load_op('NQZERO') - cls.GTZERO = load_op('GTZERO') - cls.GEZERO = load_op('GEZERO') - cls.LTZERO = load_op('LTZERO') - cls.LEZERO = load_op('LEZERO') - cls.ALWAYS = load_op('ALWAYS') - cls.NEVER = load_op('NEVER') + cls.EQZERO = load_op("EQZERO") + cls.NQZERO = load_op("NQZERO") + cls.GTZERO = load_op("GTZERO") + cls.GEZERO = load_op("GEZERO") + cls.LTZERO = load_op("LTZERO") + cls.LEZERO = load_op("LEZERO") + cls.ALWAYS = load_op("ALWAYS") + cls.NEVER = load_op("NEVER") @classmethod def _setup(cls): @@ -311,7 +304,7 @@ class BOOL(Type): _c_type = ctypes.c_bool _c_type_p = ctypes.POINTER(ctypes.c_bool) - _code = 'B' + _code = "B" @classmethod def cast_value(cls, value): @@ -323,7 +316,7 @@ class INT(Type): _c_type = ctypes.c_int _c_type_p = ctypes.POINTER(ctypes.c_int) - _code = 'I' + _code = "I" @classmethod def cast_value(cls, value): @@ -335,7 +328,7 @@ class UINT(Type): _c_type = ctypes.c_uint _c_type_p = ctypes.POINTER(ctypes.c_uint) - _code = 'U' + _code = "U" @classmethod def cast_value(cls, value): @@ -347,7 +340,7 @@ class FLOAT(Type): _c_type = ctypes.c_float _c_type_p = ctypes.POINTER(ctypes.c_float) - _code = 'F' + _code = "F" @classmethod def cast_value(cls, value): diff --git a/python/pyspla/vector.py b/python/pyspla/vector.py index cf796e850..7e8df0ba5 100644 --- a/python/pyspla/vector.py +++ b/python/pyspla/vector.py @@ -27,15 +27,14 @@ """ import ctypes +import random as rnd from .bridge import backend, check -from .type import Type, INT, UINT, FLOAT -from .object import Object +from .descriptor import Descriptor from .memview import MemView +from .object import Object from .scalar import Scalar -from .descriptor import Descriptor -from .op import OpUnary, OpBinary, OpSelect -import random as rnd +from .type import FLOAT, INT, UINT, Type class Vector(Object): @@ -246,11 +245,7 @@ def read(self): keys_view_hnd = ctypes.c_void_p(0) values_view_hnd = ctypes.c_void_p(0) - check( - backend().spla_Vector_read( - self.hnd, ctypes.byref(keys_view_hnd), ctypes.byref(values_view_hnd) - ) - ) + check(backend().spla_Vector_read(self.hnd, ctypes.byref(keys_view_hnd), ctypes.byref(values_view_hnd))) return MemView(hnd=keys_view_hnd, owner=self), MemView(hnd=values_view_hnd, owner=self) def clear(self): @@ -279,16 +274,8 @@ def to_lists(self): buffer_I = (UINT._c_type * count)() buffer_V = (self._dtype._c_type * count)() - check( - backend().spla_MemView_read( - I.hnd, ctypes.c_size_t(0), ctypes.sizeof(buffer_I), buffer_I - ) - ) - check( - backend().spla_MemView_read( - V.hnd, ctypes.c_size_t(0), ctypes.sizeof(buffer_V), buffer_V - ) - ) + check(backend().spla_MemView_read(I.hnd, ctypes.c_size_t(0), ctypes.sizeof(buffer_I), buffer_I)) + check(backend().spla_MemView_read(V.hnd, ctypes.c_size_t(0), ctypes.sizeof(buffer_V), buffer_V)) return list(buffer_I), list(buffer_V) @@ -343,9 +330,7 @@ def to_string(self, format_string="{:>%s}", width=2, precision=2, skip_value=0): value = self.get(row) value = value if value != skip_value else "." result += format_string.format(row) + "|" - result += format_string.format( - self.dtype.format_value(value, width, precision) - ).rstrip() + result += format_string.format(self.dtype.format_value(value, width, precision)).rstrip() if row < self.n_rows - 1: result += "\n" @@ -614,9 +599,7 @@ def eadd(self, op_add, v, out=None, desc=None): assert op_add check( - backend().spla_Exec_v_eadd( - out.hnd, self.hnd, v.hnd, op_add.hnd, self._get_desc(desc), self._get_task(None) - ) + backend().spla_Exec_v_eadd(out.hnd, self.hnd, v.hnd, op_add.hnd, self._get_desc(desc), self._get_task(None)) ) return out @@ -755,11 +738,7 @@ def map(self, op_map, out=None, desc=None): assert out.n_rows == self.n_rows assert out.dtype == self.dtype - check( - backend().spla_Exec_v_map( - out.hnd, self.hnd, op_map.hnd, self._get_desc(desc), self._get_task(None) - ) - ) + check(backend().spla_Exec_v_map(out.hnd, self.hnd, op_map.hnd, self._get_desc(desc), self._get_task(None))) return out @@ -836,11 +815,7 @@ def count_mf(self, out=None, desc=None): if out is None: out = Scalar(INT) - check( - backend().spla_Exec_v_count_mf( - out.hnd, self.hnd, self._get_desc(desc), self._get_task(None) - ) - ) + check(backend().spla_Exec_v_count_mf(out.hnd, self.hnd, self._get_desc(desc), self._get_task(None))) return out From 59215c52db652666b3fcb021b7f3860cda7c89ac Mon Sep 17 00:00:00 2001 From: Vladimir Kutuev Date: Sat, 28 Nov 2026 03:21:16 +0300 Subject: [PATCH 09/14] fix(python): correct Scalar.__sub__ The subtraction operator was implemented with addition, so a - b returned a + b. --- python/pyspla/scalar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pyspla/scalar.py b/python/pyspla/scalar.py index 9d34f88c7..822d850d7 100644 --- a/python/pyspla/scalar.py +++ b/python/pyspla/scalar.py @@ -208,7 +208,7 @@ def __add__(self, other): return Scalar(dtype=self.dtype, value=self.get() + Scalar._value(other)) def __sub__(self, other): - return Scalar(dtype=self.dtype, value=self.get() + Scalar._value(other)) + return Scalar(dtype=self.dtype, value=self.get() - Scalar._value(other)) def __mul__(self, other): return Scalar(dtype=self.dtype, value=self.get() * Scalar._value(other)) From e65829d312a035ede86674731eb519eba9734b03 Mon Sep 17 00:00:00 2001 From: Vladimir Kutuev Date: Sat, 28 Nov 2026 03:21:19 +0300 Subject: [PATCH 10/14] test(python): add pytest suite for pyspla and algorithms Replace the ad-hoc algorithms/test_compare.py with a proper test suite under python/tests/: - test_pyspla.py exercises the installed package: scalar/vector/matrix containers, element-wise and sparse operations, format conversion, descriptors and wrapper-level error handling. - test_algorithms.py checks the SPLA graph algorithms (BFS, SSSP, PageRank, triangle counting) against classic pure-Python references on small committed Matrix Market fixtures, with a NetworkX cross-check for triangle counting. Wire pytest into pyproject.toml and point the algorithms README at the new suite. --- python/algorithms/README.md | 16 +- python/pyproject.toml | 8 +- python/tests/conftest.py | 18 + python/tests/data/directed.mtx | 902 ++++++++++++++++++ python/tests/data/undirected.mtx | 902 ++++++++++++++++++ python/tests/data/undirected_upper.mtx | 902 ++++++++++++++++++ .../test_algorithms.py} | 121 ++- python/tests/test_pyspla.py | 275 ++++++ 8 files changed, 3063 insertions(+), 81 deletions(-) create mode 100644 python/tests/conftest.py create mode 100644 python/tests/data/directed.mtx create mode 100644 python/tests/data/undirected.mtx create mode 100644 python/tests/data/undirected_upper.mtx rename python/{algorithms/test_compare.py => tests/test_algorithms.py} (50%) create mode 100644 python/tests/test_pyspla.py diff --git a/python/algorithms/README.md b/python/algorithms/README.md index 6b05f8bec..c21c31cfd 100644 --- a/python/algorithms/README.md +++ b/python/algorithms/README.md @@ -3,19 +3,9 @@ This project provides a Python implementation of graph algorithms using sparse linear algebra primitives from SPLA on GPU -Tests (`test_compare.py`) check that the SPLA implementations produce the same -results as the classic (pure-Python) reference implementations. The triangle -counting tests additionally cross-check against NetworkX when it is installed -(`pip install networkx`); that test is skipped otherwise. - -The tests read small Matrix Market fixtures from `data/` (next to this file): -`undirected.mtx`, `undirected_upper.mtx`, and `directed.mtx`. The fixtures are -not committed; place your own `.mtx` files there (any connected graph works). - -Run tests: -```bash -python -m unittest test_compare -v -``` +The algorithms are tested in [`../tests/`](../tests/) against classic +(pure-Python) reference implementations; see the development instructions in +[`../README.md`](../README.md). --- ## Supported Algorithms diff --git a/python/pyproject.toml b/python/pyproject.toml index 30cd4e886..f9dfba892 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -69,6 +69,13 @@ dev = [ "ruff>=0.5", ] +[tool.pytest.ini_options] +testpaths = ["tests"] +filterwarnings = [ + # scipy's spmatrix->sparray migration notice, triggered by mmread + "ignore::DeprecationWarning:scipy.io", +] + [tool.ruff] line-length = 120 target-version = "py39" @@ -86,4 +93,3 @@ ignore = ["E741"] "example.py" = ["F403", "F405"] # test files manipulate sys.path before importing project modules "tests/**" = ["E402"] -"algorithms/test_compare.py" = ["E402"] diff --git a/python/tests/conftest.py b/python/tests/conftest.py new file mode 100644 index 000000000..180043eac --- /dev/null +++ b/python/tests/conftest.py @@ -0,0 +1,18 @@ +"""Shared fixtures for the pyspla test suite.""" + +import sys +from pathlib import Path + +import pytest + +# The algorithm demo modules live in python/algorithms and are not part of +# the installed package; make them importable from the tests. +ALGORITHMS_DIR = Path(__file__).resolve().parent.parent / "algorithms" +if str(ALGORITHMS_DIR) not in sys.path: + sys.path.insert(0, str(ALGORITHMS_DIR)) + + +@pytest.fixture(scope="session") +def data_dir() -> Path: + """Directory with the committed Matrix Market test fixtures.""" + return Path(__file__).resolve().parent / "data" diff --git a/python/tests/data/directed.mtx b/python/tests/data/directed.mtx new file mode 100644 index 000000000..468e8bc6d --- /dev/null +++ b/python/tests/data/directed.mtx @@ -0,0 +1,902 @@ +%%MatrixMarket matrix coordinate real general +300 300 900 +1 208 6.63 +1 230 9.07 +2 1 7.98 +3 2 3.03 +4 2 3.70 +4 47 8.86 +4 59 1.05 +5 3 8.39 +5 16 8.17 +5 56 5.21 +5 84 3.73 +6 5 3.51 +6 131 3.29 +7 4 5.01 +7 217 5.54 +8 6 5.98 +8 81 9.96 +9 7 8.13 +9 199 6.60 +9 229 9.90 +10 3 2.94 +10 250 2.44 +11 1 6.51 +12 4 1.40 +12 246 1.32 +12 280 5.63 +13 4 5.20 +13 166 9.25 +14 12 6.66 +14 97 5.63 +14 266 5.47 +15 13 3.23 +15 206 1.11 +16 1 2.73 +16 190 7.23 +16 258 2.81 +17 8 4.33 +17 104 1.03 +17 217 8.47 +17 240 2.39 +18 14 3.41 +18 240 8.92 +19 3 5.59 +19 102 8.62 +19 119 6.76 +20 16 7.68 +21 3 1.82 +21 43 5.87 +21 166 5.57 +22 10 8.84 +22 147 4.25 +22 171 6.38 +22 227 1.53 +22 233 4.49 +22 241 3.91 +23 18 2.35 +23 60 8.35 +23 289 4.42 +24 7 9.81 +24 43 6.31 +24 172 6.45 +25 9 6.74 +25 227 7.09 +26 7 2.36 +26 217 4.96 +27 7 3.16 +27 19 4.62 +27 234 1.87 +27 236 9.71 +28 7 2.94 +28 56 7.05 +28 102 3.70 +28 237 8.87 +29 28 6.96 +30 13 2.18 +31 15 8.61 +31 85 9.50 +31 117 9.14 +31 168 6.13 +31 229 2.31 +32 16 2.73 +32 287 9.35 +33 19 5.97 +33 36 2.62 +33 50 8.96 +33 167 6.77 +34 19 6.13 +34 56 4.39 +34 95 4.70 +35 18 3.16 +35 204 1.34 +36 35 8.89 +36 190 5.21 +37 8 5.93 +37 30 3.90 +38 30 7.76 +38 240 1.23 +38 289 4.35 +39 20 1.27 +39 27 2.11 +39 45 9.70 +39 217 6.92 +40 22 4.85 +40 25 5.71 +40 138 8.86 +41 14 4.10 +41 189 6.31 +42 41 7.15 +42 49 4.20 +43 20 5.67 +44 10 7.89 +44 21 9.18 +44 35 2.36 +44 117 9.40 +44 205 1.05 +45 33 7.78 +45 38 8.29 +45 114 2.23 +45 122 4.77 +46 8 8.34 +46 34 1.13 +46 254 6.66 +47 10 8.14 +47 40 5.62 +47 140 7.53 +48 29 3.04 +48 42 2.79 +48 143 4.27 +48 147 2.61 +48 249 4.11 +49 6 9.53 +49 76 6.16 +50 3 4.06 +50 24 3.44 +50 61 9.57 +50 170 5.00 +50 201 9.82 +51 16 5.64 +51 23 5.69 +51 53 9.07 +51 210 7.68 +51 224 6.23 +52 2 4.84 +52 10 8.90 +52 114 4.70 +52 179 9.30 +52 290 1.62 +53 8 4.87 +53 168 5.68 +54 25 9.56 +54 28 3.26 +55 50 8.25 +55 53 7.09 +55 220 7.45 +55 263 6.67 +55 266 9.74 +55 274 3.99 +56 26 4.58 +56 52 2.83 +56 121 1.46 +57 46 2.92 +58 53 9.24 +58 158 8.56 +58 199 2.01 +59 48 6.43 +59 83 5.31 +59 86 6.35 +60 38 6.93 +60 56 3.76 +60 229 9.65 +60 286 5.19 +61 27 6.65 +61 223 6.72 +62 32 2.66 +62 134 1.56 +63 17 4.70 +63 99 7.88 +64 32 8.34 +64 225 7.57 +64 269 2.02 +65 25 9.22 +65 184 8.22 +66 8 8.90 +66 17 5.71 +66 78 9.24 +66 131 1.42 +67 66 1.27 +68 1 1.18 +68 125 3.27 +68 260 3.24 +69 7 2.69 +69 62 6.10 +69 81 1.35 +69 94 6.31 +70 14 2.49 +70 77 7.10 +70 156 1.19 +70 192 3.80 +71 68 9.45 +71 111 5.85 +71 189 8.30 +71 251 6.92 +71 287 6.50 +72 50 2.72 +72 58 6.17 +72 241 1.36 +73 64 8.21 +74 12 9.64 +74 15 8.69 +74 19 1.46 +74 70 4.05 +74 153 3.86 +74 175 2.01 +75 54 6.64 +75 130 8.18 +75 137 3.82 +76 4 8.77 +76 28 8.17 +76 41 2.16 +76 176 7.90 +76 275 8.94 +76 276 2.78 +77 38 6.16 +78 1 6.75 +78 76 6.48 +78 143 1.87 +79 49 6.95 +79 94 6.69 +79 159 8.41 +79 183 8.23 +79 209 3.94 +80 6 7.50 +80 66 8.81 +81 54 9.04 +82 13 2.45 +82 92 1.24 +82 192 6.86 +83 44 2.93 +83 95 6.07 +84 23 9.50 +84 28 4.41 +84 249 3.27 +85 80 5.11 +85 82 6.92 +85 197 1.91 +85 267 4.43 +86 75 2.20 +86 174 6.96 +86 264 8.47 +87 17 4.39 +87 244 4.35 +88 45 5.86 +88 119 2.94 +88 143 3.23 +88 267 3.97 +89 65 5.12 +89 83 1.73 +89 155 7.77 +89 255 6.21 +90 14 3.70 +90 76 1.70 +90 100 7.87 +90 275 2.18 +91 61 2.20 +91 64 2.18 +91 95 1.73 +91 188 9.16 +92 39 3.42 +92 59 3.76 +92 112 8.50 +92 178 6.58 +93 4 2.68 +93 214 4.91 +94 69 8.96 +94 149 4.38 +94 193 7.40 +94 216 1.87 +95 45 7.55 +95 121 7.99 +95 245 8.43 +95 261 7.07 +96 9 4.34 +96 266 1.58 +97 24 5.67 +97 135 7.82 +97 217 2.72 +98 53 3.40 +98 67 5.83 +98 289 7.73 +99 51 9.07 +99 72 2.13 +100 10 2.66 +100 15 8.20 +100 51 6.80 +101 62 7.49 +101 81 9.97 +101 112 9.45 +102 34 8.59 +102 89 7.99 +102 91 4.56 +102 180 6.77 +102 214 2.66 +103 70 7.84 +103 126 7.82 +103 254 7.49 +104 38 5.00 +104 87 4.40 +104 88 4.78 +104 226 1.30 +105 9 8.60 +105 11 5.88 +105 20 4.49 +105 67 5.93 +106 63 7.49 +107 1 4.43 +107 12 8.48 +108 7 9.28 +108 53 4.49 +108 222 2.24 +108 232 7.84 +109 72 9.94 +109 99 2.33 +109 194 7.41 +110 43 8.43 +110 117 9.29 +111 66 2.11 +111 137 1.83 +111 204 9.89 +112 36 2.05 +113 26 2.59 +113 92 6.17 +113 184 5.02 +113 254 7.75 +113 277 2.72 +114 12 9.23 +114 17 2.95 +114 127 7.92 +114 147 1.61 +114 257 5.26 +115 44 1.29 +115 54 3.82 +115 80 3.81 +115 87 7.48 +115 113 5.10 +115 154 1.51 +115 173 9.96 +116 75 9.00 +116 94 9.25 +116 133 3.22 +116 192 4.55 +116 213 3.04 +117 47 2.12 +117 94 1.30 +117 172 5.53 +118 45 2.11 +119 21 2.59 +119 38 8.74 +119 68 5.36 +119 218 2.65 +119 226 7.03 +119 276 3.39 +120 117 5.74 +121 48 3.55 +121 50 5.65 +121 168 6.66 +122 13 5.83 +122 72 4.56 +122 300 8.12 +123 54 8.86 +123 206 2.61 +124 75 2.23 +124 82 2.02 +124 191 9.82 +125 56 9.47 +126 40 3.08 +126 63 9.73 +126 80 2.87 +126 122 5.56 +126 135 5.48 +127 39 9.23 +127 69 1.36 +128 10 3.84 +128 86 6.40 +128 140 1.60 +128 243 3.13 +128 270 5.19 +129 123 8.93 +129 141 7.85 +130 20 8.46 +130 163 7.85 +131 7 7.37 +131 28 8.65 +131 74 7.13 +131 240 7.62 +132 58 3.71 +132 60 2.51 +132 198 7.81 +132 242 2.49 +133 48 9.28 +133 150 6.37 +133 243 3.96 +134 32 9.43 +135 8 2.40 +135 186 5.63 +135 216 1.82 +135 260 9.69 +136 30 6.18 +136 55 8.23 +136 194 3.54 +137 65 8.22 +137 94 7.33 +137 113 6.79 +137 198 9.56 +137 199 4.90 +137 201 4.74 +137 275 7.23 +138 14 8.52 +138 175 4.02 +139 57 7.03 +139 211 2.88 +140 135 5.97 +140 249 7.92 +140 268 1.59 +141 64 7.55 +141 134 1.14 +141 289 9.63 +142 31 5.22 +142 246 4.68 +143 2 7.48 +143 11 5.71 +143 123 7.58 +144 97 1.76 +144 132 6.07 +145 3 6.02 +145 137 9.39 +145 161 1.36 +145 262 5.08 +146 44 6.68 +146 186 5.96 +147 73 1.67 +147 84 6.34 +147 157 3.00 +147 218 2.76 +148 50 8.91 +148 129 2.78 +148 134 5.09 +148 141 7.75 +148 196 7.37 +149 14 5.98 +149 168 8.26 +150 41 5.19 +150 42 6.58 +150 60 8.37 +150 99 7.10 +150 277 6.78 +151 40 4.66 +151 80 6.02 +152 20 4.56 +152 26 7.70 +153 24 4.42 +153 56 5.20 +153 129 7.80 +154 18 5.53 +154 106 4.04 +154 130 8.44 +155 36 4.43 +155 38 8.60 +155 60 8.07 +155 71 5.03 +155 75 7.42 +156 147 1.31 +156 212 4.51 +157 95 8.74 +158 23 6.22 +158 114 6.02 +158 142 6.98 +158 195 7.10 +159 24 6.25 +159 152 4.79 +160 91 2.65 +160 95 3.63 +160 231 3.64 +161 45 4.88 +161 100 9.99 +161 173 4.17 +161 186 5.03 +161 248 4.34 +162 24 6.23 +162 157 9.53 +163 92 9.00 +163 149 4.39 +163 286 3.40 +164 32 8.96 +164 275 5.44 +164 294 7.17 +165 49 1.66 +165 124 8.80 +166 153 3.82 +166 154 5.45 +167 41 2.78 +167 56 4.78 +167 279 8.45 +168 38 8.45 +168 93 5.26 +169 9 7.91 +169 215 5.12 +170 31 4.36 +170 229 5.91 +171 65 2.81 +171 259 3.85 +171 300 7.36 +172 152 7.93 +172 166 1.51 +172 174 7.60 +172 282 8.36 +173 167 5.01 +174 41 1.56 +174 74 7.15 +174 102 3.22 +174 111 6.79 +175 102 4.39 +175 189 6.73 +176 100 3.32 +176 173 5.29 +176 201 5.72 +176 224 6.68 +176 241 2.83 +177 11 9.66 +177 295 3.60 +178 34 3.75 +178 47 3.31 +178 67 1.61 +178 115 4.81 +178 228 7.95 +179 25 7.39 +179 31 2.76 +179 176 2.23 +179 187 3.89 +179 246 7.91 +180 74 5.39 +180 127 9.31 +181 39 6.91 +181 92 6.59 +181 119 7.91 +182 31 7.75 +182 44 4.09 +182 82 3.31 +182 199 4.94 +182 255 5.40 +183 130 2.28 +183 146 4.97 +183 278 6.76 +184 7 2.22 +185 172 2.24 +185 179 2.56 +186 120 3.55 +186 163 9.66 +187 82 1.23 +187 106 2.65 +188 88 2.49 +189 12 5.27 +189 144 1.14 +190 104 5.12 +190 284 2.47 +191 88 3.43 +191 91 8.13 +191 282 2.66 +192 62 6.55 +192 269 4.66 +193 25 4.76 +193 86 8.35 +193 127 2.45 +193 244 9.31 +194 146 9.04 +195 11 7.01 +196 5 1.45 +196 193 6.97 +197 142 6.40 +197 288 7.95 +198 74 2.92 +198 164 9.58 +199 65 8.98 +199 74 2.03 +199 160 3.84 +199 162 1.29 +199 219 8.48 +199 259 9.24 +200 7 9.91 +201 182 6.51 +202 25 6.99 +202 49 7.11 +203 84 6.13 +203 278 9.57 +204 124 6.47 +204 138 4.02 +204 197 5.62 +204 203 1.17 +204 291 7.52 +204 297 7.25 +205 23 4.79 +205 250 8.66 +205 275 7.80 +206 135 4.03 +206 226 1.70 +206 242 2.19 +207 150 2.66 +208 89 3.74 +209 17 5.03 +209 43 9.35 +209 241 3.51 +210 58 9.09 +210 110 7.12 +210 163 8.68 +210 245 4.63 +211 92 1.03 +211 205 8.08 +212 14 3.21 +212 19 2.28 +212 117 8.20 +212 185 7.18 +212 189 2.91 +212 259 3.41 +213 75 9.45 +213 145 3.42 +214 74 7.32 +214 75 2.17 +215 13 8.34 +215 211 2.06 +216 101 5.64 +216 127 1.32 +216 228 5.95 +217 53 8.62 +217 61 1.76 +217 205 3.47 +218 20 7.88 +218 149 6.47 +218 256 3.82 +219 18 6.66 +219 189 5.09 +220 61 8.76 +220 78 3.64 +220 81 7.82 +221 19 6.72 +221 152 7.66 +221 199 4.40 +221 219 7.52 +222 115 7.29 +222 272 4.49 +223 118 1.24 +223 137 9.67 +223 264 7.42 +224 69 2.84 +224 76 7.58 +224 171 3.51 +225 118 5.22 +225 161 8.74 +225 177 5.03 +225 182 3.59 +225 230 3.75 +226 66 1.69 +226 205 2.98 +226 265 3.44 +226 291 2.56 +227 81 1.57 +227 140 5.19 +227 204 2.93 +227 214 7.65 +227 226 9.30 +227 250 3.46 +228 22 6.15 +228 35 5.56 +228 282 1.68 +229 23 2.12 +229 95 8.96 +229 173 5.27 +229 200 8.24 +229 226 1.60 +230 141 6.35 +230 177 8.79 +230 214 8.80 +230 238 1.05 +231 71 5.70 +231 101 4.32 +231 112 7.84 +231 115 1.66 +231 277 3.38 +232 2 8.31 +232 174 5.23 +233 134 5.08 +233 148 9.72 +233 285 3.88 +234 85 1.38 +234 176 4.53 +235 98 2.38 +235 174 1.74 +236 50 6.11 +236 52 9.58 +236 191 6.21 +236 242 6.82 +237 152 3.91 +238 13 6.14 +238 33 7.77 +238 178 6.30 +238 204 8.23 +238 249 5.95 +238 253 2.78 +239 29 6.24 +239 42 5.42 +239 64 2.49 +239 140 6.57 +239 202 8.35 +239 231 2.22 +240 5 5.90 +240 101 7.60 +241 115 4.63 +241 194 3.43 +241 204 4.35 +241 231 5.88 +241 232 7.18 +241 242 6.03 +242 59 1.96 +242 197 8.36 +243 235 9.31 +244 4 1.91 +244 231 3.25 +245 35 2.56 +245 58 8.64 +245 212 9.19 +245 253 1.40 +245 275 3.99 +246 154 2.73 +246 286 5.23 +247 42 9.29 +247 120 1.63 +247 126 2.54 +247 183 5.38 +248 63 5.72 +248 113 7.71 +248 143 4.94 +248 155 2.27 +248 164 4.18 +248 187 9.84 +248 196 7.76 +249 231 2.05 +249 237 8.27 +249 246 3.80 +250 128 8.03 +250 200 1.11 +251 22 8.84 +251 66 2.46 +251 213 5.10 +251 226 6.96 +252 179 5.57 +252 183 2.49 +253 34 2.25 +253 37 3.56 +253 59 1.47 +253 92 2.95 +253 96 2.17 +253 221 5.18 +254 40 4.21 +254 41 6.28 +254 58 3.53 +254 179 1.31 +254 231 3.98 +254 281 7.80 +255 5 3.30 +255 49 4.64 +256 51 7.79 +256 203 4.66 +257 57 8.98 +257 58 9.26 +257 80 3.79 +257 114 7.62 +257 138 3.28 +257 233 2.26 +257 250 4.94 +257 265 6.42 +257 266 9.42 +258 92 2.31 +258 94 7.41 +258 162 5.28 +258 259 2.19 +259 28 9.75 +259 141 7.26 +260 47 2.16 +261 103 9.15 +261 113 1.93 +261 289 1.83 +262 91 3.98 +263 82 9.44 +263 90 1.30 +263 228 9.26 +264 235 6.50 +264 250 1.60 +265 107 6.12 +265 137 5.13 +265 152 6.08 +265 229 7.63 +265 246 7.11 +266 152 9.98 +266 190 2.41 +267 56 8.32 +267 157 4.70 +267 263 8.05 +268 78 9.03 +268 91 9.93 +268 277 3.39 +269 11 5.08 +269 37 9.49 +269 114 9.51 +269 183 4.36 +269 219 9.46 +270 74 4.65 +271 25 4.37 +271 132 7.81 +271 257 5.24 +272 40 5.03 +272 220 4.48 +272 259 4.90 +273 60 2.26 +273 94 1.55 +273 144 7.79 +274 122 6.08 +274 248 7.05 +275 56 8.22 +275 136 3.07 +275 140 3.10 +275 155 3.50 +276 270 3.74 +276 275 7.85 +277 44 4.37 +277 88 3.91 +277 115 6.73 +277 292 2.68 +278 143 1.96 +278 298 7.27 +279 112 7.81 +279 226 3.67 +279 265 6.72 +280 146 1.31 +280 213 4.64 +280 220 6.20 +281 206 3.28 +281 252 4.13 +282 191 6.49 +282 252 6.31 +282 297 2.39 +282 299 7.36 +283 22 1.72 +283 56 9.73 +283 217 2.82 +283 228 3.28 +284 65 2.80 +284 74 9.92 +284 85 3.58 +284 211 6.45 +284 238 9.92 +285 57 9.55 +285 164 1.38 +286 134 5.69 +286 166 6.41 +286 169 7.32 +286 227 4.02 +286 261 3.95 +287 238 1.04 +288 26 1.32 +288 123 5.95 +288 143 1.68 +289 135 2.82 +289 273 4.00 +290 254 1.63 +290 283 1.28 +291 109 9.34 +291 165 4.92 +291 166 2.84 +292 99 7.38 +292 120 1.09 +292 135 3.21 +292 171 9.65 +292 221 9.08 +292 232 6.72 +293 96 1.84 +293 158 3.86 +293 209 1.25 +294 136 2.97 +294 271 1.23 +295 29 2.14 +295 181 6.70 +296 20 1.90 +296 21 2.40 +296 152 9.13 +297 74 4.02 +297 229 4.00 +298 128 1.78 +298 198 8.16 +299 49 7.09 +299 119 5.92 +299 127 6.56 +300 156 1.90 diff --git a/python/tests/data/undirected.mtx b/python/tests/data/undirected.mtx new file mode 100644 index 000000000..28f0f78ea --- /dev/null +++ b/python/tests/data/undirected.mtx @@ -0,0 +1,902 @@ +%%MatrixMarket matrix coordinate real symmetric +300 300 900 +1 2 7.97 +1 3 4.95 +1 9 8.73 +1 46 7.28 +1 49 1.85 +1 85 9.78 +1 106 7.85 +2 12 8.07 +2 13 2.15 +2 38 5.05 +2 134 4.34 +2 216 9.34 +2 282 6.79 +2 290 8.40 +3 4 4.99 +3 5 3.05 +3 6 5.99 +3 7 1.57 +3 11 8.45 +3 20 6.68 +3 38 7.82 +3 58 4.19 +3 102 9.74 +3 113 9.04 +3 170 8.01 +3 172 2.75 +3 260 5.20 +3 269 1.39 +4 35 2.39 +4 47 7.15 +4 91 7.70 +4 101 9.71 +4 164 3.93 +4 172 4.33 +5 25 5.23 +5 26 2.71 +5 82 2.17 +5 119 5.28 +5 140 3.04 +5 235 7.03 +5 271 4.93 +5 274 8.49 +5 281 7.30 +6 71 3.81 +6 149 8.49 +6 167 8.24 +6 204 4.49 +6 255 3.59 +7 8 7.14 +7 10 2.26 +7 13 2.80 +7 43 1.07 +7 86 8.08 +7 120 6.98 +7 163 7.35 +7 232 8.03 +7 274 5.13 +8 34 6.12 +8 78 2.26 +8 90 2.03 +8 150 7.02 +8 200 5.24 +8 215 6.09 +9 24 7.88 +9 89 6.71 +9 100 5.98 +9 152 6.03 +9 160 3.74 +9 260 1.28 +10 19 4.93 +10 22 2.93 +10 37 4.68 +10 60 8.68 +10 76 3.11 +10 206 1.52 +11 15 3.53 +11 42 3.64 +11 54 6.96 +11 61 6.01 +11 129 8.06 +11 252 6.98 +11 273 4.66 +11 277 8.33 +12 16 2.50 +12 17 1.20 +12 23 1.81 +12 29 7.50 +12 41 5.16 +12 71 2.45 +12 72 5.51 +13 14 2.37 +13 32 7.27 +13 35 5.02 +13 89 4.43 +13 90 3.71 +13 131 6.67 +13 134 4.26 +13 135 1.79 +14 18 2.06 +14 32 9.66 +14 59 9.18 +14 74 7.30 +14 85 3.39 +14 122 9.72 +14 160 8.01 +14 161 7.45 +14 264 5.04 +14 283 3.45 +15 16 1.87 +15 33 9.12 +15 85 5.10 +15 102 2.82 +15 115 3.75 +15 145 6.21 +15 286 2.59 +16 29 8.71 +16 33 7.83 +16 46 7.48 +16 47 4.89 +16 58 6.65 +16 74 6.26 +16 174 6.85 +17 21 1.76 +17 22 4.74 +17 31 1.37 +17 112 5.45 +17 120 3.97 +17 153 2.30 +17 213 1.93 +17 247 6.29 +17 250 2.54 +18 28 9.33 +18 74 6.23 +18 80 4.12 +18 185 6.32 +18 198 1.21 +18 219 9.63 +19 42 5.34 +19 118 8.04 +19 169 1.74 +19 173 5.38 +19 234 5.42 +19 281 9.44 +20 36 6.15 +20 55 5.26 +20 159 3.40 +20 172 3.98 +20 223 5.69 +20 265 4.95 +21 25 1.19 +21 27 8.44 +21 104 9.07 +21 248 2.26 +21 250 5.99 +22 49 1.98 +22 68 7.05 +22 87 3.53 +22 185 6.93 +22 220 7.54 +23 35 7.92 +23 239 1.97 +23 299 9.24 +24 26 3.07 +24 30 1.34 +24 65 5.99 +24 85 4.34 +24 99 8.47 +24 200 8.27 +24 245 3.85 +24 282 9.58 +25 99 3.62 +25 120 5.64 +26 42 3.30 +26 56 9.42 +26 70 2.48 +26 79 1.40 +26 175 4.92 +26 195 9.93 +26 204 9.03 +26 222 7.74 +26 256 9.02 +26 281 9.04 +27 217 5.67 +27 260 3.84 +28 57 7.95 +28 67 6.95 +28 77 4.36 +28 90 1.85 +28 98 7.72 +28 112 3.36 +28 184 9.43 +28 187 3.17 +28 225 2.10 +28 251 8.48 +29 92 2.38 +29 137 2.61 +29 170 6.39 +29 172 8.87 +29 180 2.77 +29 191 3.79 +29 223 8.00 +29 266 9.75 +30 121 5.51 +30 207 2.30 +30 213 1.13 +31 45 3.07 +31 96 2.19 +31 110 7.10 +31 144 2.10 +31 187 5.56 +31 222 7.25 +31 269 6.23 +32 37 2.80 +32 59 8.24 +32 113 7.44 +32 156 7.65 +32 189 2.18 +32 253 2.11 +32 288 9.35 +33 39 4.58 +33 40 3.71 +33 44 5.40 +33 95 6.97 +33 97 9.60 +33 111 3.58 +33 200 9.32 +33 296 1.22 +34 51 6.00 +34 72 6.71 +34 87 1.95 +34 153 2.26 +34 164 4.77 +34 243 9.70 +34 256 6.36 +35 38 9.40 +35 75 8.24 +35 83 5.21 +35 137 8.06 +35 150 1.16 +35 156 1.98 +35 196 8.46 +36 39 8.17 +36 85 3.09 +36 113 5.78 +36 128 6.45 +36 173 8.81 +36 201 6.43 +36 236 4.71 +36 254 4.37 +37 78 4.83 +37 84 6.87 +37 96 8.81 +37 232 5.09 +37 256 3.23 +37 291 3.13 +38 131 7.71 +38 258 8.35 +39 170 1.95 +39 219 1.60 +39 277 6.35 +40 52 2.32 +40 53 8.42 +40 84 3.79 +40 145 2.29 +40 147 9.29 +40 248 2.49 +40 276 3.56 +41 93 2.38 +41 104 2.04 +41 196 1.19 +41 222 1.50 +41 232 2.57 +41 293 1.48 +42 62 6.32 +42 113 7.13 +42 138 4.54 +42 161 3.86 +42 218 5.54 +42 275 8.88 +42 280 8.66 +43 136 1.39 +43 163 2.63 +43 167 3.13 +43 180 3.24 +43 196 6.14 +43 217 4.75 +44 50 1.44 +44 108 4.36 +44 131 5.71 +44 134 1.92 +44 154 8.50 +44 212 1.47 +44 278 9.32 +45 48 1.89 +45 61 8.59 +45 68 9.12 +45 191 9.82 +45 264 8.22 +45 289 8.02 +46 48 6.78 +46 81 8.01 +46 156 2.21 +46 191 5.82 +46 226 5.63 +46 253 8.72 +46 261 5.17 +46 268 4.47 +46 276 6.76 +47 54 3.40 +47 64 2.26 +47 86 5.30 +47 87 4.75 +47 123 3.09 +47 135 4.31 +47 174 4.30 +47 213 3.95 +47 289 4.42 +48 94 7.17 +48 255 3.67 +49 141 9.54 +50 55 9.25 +50 126 5.33 +50 141 3.96 +50 179 5.82 +50 180 8.64 +50 214 6.87 +51 52 8.24 +51 241 5.79 +52 111 6.70 +52 124 3.59 +52 147 7.61 +52 169 2.82 +52 211 7.25 +53 59 8.75 +53 69 2.19 +53 77 6.53 +53 116 1.86 +53 166 7.53 +54 118 1.76 +54 123 9.42 +54 169 2.24 +54 221 9.63 +54 225 8.21 +55 82 6.34 +55 87 8.04 +55 92 8.16 +55 148 9.51 +55 206 3.28 +55 280 6.31 +56 142 1.86 +56 208 6.55 +56 211 2.54 +56 213 6.08 +56 232 6.15 +57 171 5.19 +57 260 5.70 +57 300 7.88 +58 63 8.19 +58 73 5.43 +58 88 6.40 +58 95 9.38 +58 192 2.08 +58 248 2.05 +59 117 1.79 +59 126 6.92 +59 148 4.77 +60 126 7.97 +60 130 7.04 +60 146 4.00 +60 218 9.09 +60 243 7.86 +61 88 3.43 +61 106 4.28 +61 137 3.83 +61 242 2.42 +61 252 2.33 +61 286 9.43 +62 69 4.94 +62 142 4.45 +63 66 7.57 +63 135 5.98 +63 202 9.43 +63 203 8.02 +64 101 5.31 +64 115 4.39 +65 178 9.88 +66 150 7.46 +66 253 9.56 +66 266 2.07 +67 118 8.65 +67 167 6.73 +68 100 2.10 +68 157 6.29 +68 165 7.17 +68 166 1.11 +68 199 5.09 +68 201 8.43 +68 269 3.66 +69 75 5.13 +69 97 4.98 +69 101 3.72 +70 91 9.27 +70 125 8.03 +70 139 2.00 +70 167 9.97 +70 182 8.91 +70 190 3.56 +70 228 8.53 +70 293 1.96 +71 81 9.99 +71 86 6.99 +71 90 6.85 +71 116 1.81 +71 180 9.07 +71 196 1.26 +71 258 3.17 +71 273 2.29 +72 77 7.99 +72 128 2.78 +72 181 9.20 +72 267 6.91 +72 289 1.33 +72 294 1.05 +73 74 1.46 +73 110 6.45 +73 124 8.21 +73 180 3.15 +73 190 8.64 +73 257 1.52 +73 285 8.21 +74 81 9.35 +74 95 7.95 +74 134 7.28 +74 198 8.54 +74 203 1.36 +74 237 2.82 +74 273 2.12 +75 80 5.54 +75 94 7.71 +75 131 6.67 +75 133 8.66 +75 160 2.40 +75 241 7.61 +75 280 2.74 +75 284 3.44 +76 92 7.39 +76 136 9.82 +76 238 6.50 +76 240 1.49 +77 191 6.55 +77 245 1.38 +77 272 8.96 +78 83 7.39 +78 195 2.56 +78 283 1.83 +79 112 2.65 +79 114 9.82 +79 159 5.13 +79 204 8.06 +79 294 6.73 +80 95 6.15 +80 155 2.31 +80 265 9.51 +80 278 3.71 +81 161 6.20 +81 237 7.30 +81 240 6.84 +81 273 9.47 +82 125 2.34 +82 178 5.58 +82 191 4.64 +82 256 5.27 +83 124 2.07 +83 137 2.21 +83 147 3.50 +84 105 3.74 +84 125 4.85 +84 132 6.50 +84 139 6.71 +84 188 4.71 +84 285 4.68 +85 94 2.96 +85 103 6.29 +85 107 3.85 +85 108 1.32 +85 109 4.77 +85 256 5.27 +86 157 3.03 +86 206 6.15 +86 289 6.09 +86 295 7.32 +87 97 6.83 +87 124 6.87 +87 197 3.85 +87 249 8.09 +87 255 5.94 +88 191 4.88 +89 114 6.63 +89 130 4.25 +89 152 5.61 +89 160 7.63 +89 192 8.98 +90 97 9.29 +90 126 5.53 +90 131 5.68 +90 271 8.20 +91 136 3.83 +91 163 8.54 +91 167 5.45 +91 182 2.04 +91 292 1.65 +91 294 8.58 +92 159 1.50 +92 177 3.53 +92 185 4.01 +93 127 2.56 +93 187 3.83 +93 249 7.68 +94 96 1.13 +94 128 8.44 +94 238 8.71 +94 270 4.35 +95 133 2.38 +95 141 6.41 +95 160 2.08 +95 185 4.28 +95 207 9.63 +95 220 9.96 +95 287 7.95 +96 181 3.80 +96 249 7.19 +96 287 7.35 +96 289 4.49 +97 155 6.77 +97 216 1.10 +97 241 2.88 +97 292 5.73 +98 169 2.47 +98 294 2.49 +98 296 8.53 +99 130 9.90 +99 221 6.00 +99 222 8.55 +99 232 9.91 +100 145 2.27 +100 224 5.03 +101 160 4.53 +101 170 1.72 +101 199 7.80 +101 205 4.90 +101 220 5.22 +102 111 2.36 +102 224 2.63 +102 265 9.16 +103 116 1.40 +103 165 3.10 +103 203 3.63 +103 265 5.41 +104 158 6.28 +104 192 5.44 +104 240 1.76 +104 250 3.19 +105 158 8.59 +105 263 6.74 +105 270 6.84 +106 170 7.03 +108 127 7.87 +108 233 1.52 +109 137 4.30 +109 158 5.86 +109 164 4.05 +109 235 8.60 +110 152 5.34 +110 153 7.92 +110 218 8.67 +110 239 5.54 +110 248 9.19 +111 152 6.28 +111 180 8.65 +112 125 4.07 +112 165 5.49 +113 124 5.78 +113 295 1.94 +114 131 4.59 +115 222 9.26 +116 149 6.68 +116 191 2.60 +116 236 4.05 +116 277 2.72 +117 226 1.22 +117 237 9.35 +118 195 5.03 +118 253 3.77 +118 300 6.39 +119 148 1.07 +119 241 3.50 +120 135 7.33 +120 269 6.70 +121 191 9.84 +121 228 6.58 +122 194 5.30 +122 208 7.85 +122 278 9.13 +123 177 7.49 +123 179 9.67 +123 202 8.04 +123 233 8.80 +124 130 2.03 +124 151 7.59 +124 292 4.96 +125 254 5.98 +125 256 6.89 +125 259 9.73 +125 285 9.86 +126 148 3.59 +126 174 7.60 +126 219 7.75 +126 225 4.12 +126 231 2.11 +126 251 1.37 +126 291 8.00 +127 135 5.41 +127 162 9.87 +127 176 5.18 +127 287 9.80 +128 179 4.70 +128 243 8.14 +128 278 1.76 +129 178 6.00 +129 185 8.22 +129 186 9.32 +129 196 8.40 +130 141 1.33 +130 273 4.35 +130 279 1.44 +130 281 1.98 +131 144 7.08 +131 153 7.42 +132 167 7.96 +132 191 8.79 +132 193 7.65 +132 249 8.21 +132 300 1.44 +133 230 3.11 +133 243 6.60 +133 283 8.72 +134 235 1.04 +134 247 5.63 +134 278 7.10 +135 151 1.27 +135 175 4.61 +135 208 9.06 +135 216 7.04 +135 232 3.14 +136 168 8.68 +137 296 4.13 +138 178 8.68 +138 213 3.69 +138 284 6.31 +138 291 4.57 +138 292 3.47 +139 153 8.98 +139 161 2.69 +139 243 1.76 +139 251 4.08 +139 261 7.46 +140 143 8.27 +140 258 9.99 +140 286 3.67 +141 144 4.67 +141 253 2.23 +142 155 6.17 +142 244 9.98 +143 144 7.31 +143 179 6.36 +143 259 4.53 +143 275 9.24 +144 177 5.47 +144 184 2.21 +144 206 4.29 +144 264 1.60 +144 275 2.82 +145 147 1.16 +145 257 5.08 +147 196 6.71 +147 198 4.09 +147 289 4.78 +148 156 9.63 +148 217 7.77 +149 275 5.87 +150 151 3.56 +150 175 9.07 +151 163 3.12 +151 259 3.93 +151 288 9.18 +152 210 5.77 +152 242 7.68 +152 256 6.32 +152 296 6.88 +153 199 3.69 +153 214 3.17 +153 220 3.90 +153 234 2.40 +154 234 8.87 +154 262 3.55 +154 289 6.05 +155 187 8.13 +155 205 8.05 +155 217 4.95 +155 247 5.29 +155 276 9.95 +155 286 7.07 +155 298 8.33 +156 252 9.12 +156 268 8.09 +157 185 2.67 +157 204 6.06 +157 221 1.92 +157 281 6.88 +157 295 9.60 +158 191 5.61 +158 225 4.90 +158 227 1.32 +158 239 9.64 +158 278 1.93 +158 291 1.37 +159 188 3.21 +159 209 1.59 +160 166 5.10 +160 217 5.64 +160 231 3.81 +160 246 1.46 +160 255 2.00 +161 248 4.46 +161 272 1.54 +161 300 7.28 +162 163 2.86 +162 210 3.72 +162 224 4.55 +162 297 4.75 +163 181 1.01 +163 236 2.01 +163 241 8.76 +164 227 1.01 +165 190 5.57 +165 195 5.41 +165 212 4.00 +165 266 4.88 +166 195 8.03 +166 235 8.57 +166 271 3.34 +166 290 3.90 +167 180 3.18 +167 195 5.32 +167 288 7.15 +168 266 3.05 +169 215 3.98 +170 257 9.37 +171 183 1.44 +171 238 5.15 +171 279 7.40 +172 193 2.35 +172 262 1.43 +174 234 2.24 +175 230 9.27 +175 259 1.08 +176 236 2.69 +176 299 1.28 +177 196 2.00 +177 203 6.58 +177 211 3.17 +177 285 6.12 +178 213 6.31 +178 217 8.64 +179 221 1.04 +179 236 8.68 +180 209 6.57 +181 227 2.46 +182 230 7.96 +182 246 8.70 +183 279 3.29 +184 202 9.27 +184 225 5.09 +184 236 6.43 +185 204 9.86 +185 229 4.25 +185 234 8.32 +185 275 3.87 +185 286 8.19 +186 197 6.41 +187 218 2.95 +187 241 4.73 +188 235 3.86 +188 249 1.70 +189 190 1.27 +189 193 4.12 +189 197 1.17 +190 230 2.49 +191 236 7.53 +191 285 7.37 +191 289 7.65 +192 206 3.85 +192 257 9.01 +192 264 6.34 +193 278 2.13 +194 202 2.29 +196 271 7.24 +196 296 2.56 +197 251 5.57 +197 289 9.93 +198 233 1.04 +200 202 1.15 +200 222 9.94 +200 234 6.26 +200 300 2.14 +201 241 9.08 +202 271 8.92 +202 275 5.83 +203 210 6.60 +203 280 3.46 +205 259 1.45 +205 270 6.35 +207 232 3.65 +207 256 6.97 +208 263 8.53 +209 279 1.16 +210 254 6.36 +210 269 3.08 +210 270 8.86 +211 257 3.28 +212 257 6.50 +214 229 5.98 +215 295 4.57 +216 263 7.10 +217 248 7.53 +219 220 6.10 +219 230 7.83 +219 280 9.85 +221 225 4.77 +221 244 5.63 +221 247 1.11 +221 263 8.16 +222 235 5.68 +222 242 4.67 +222 243 1.85 +222 270 9.01 +223 296 4.56 +224 299 7.14 +225 292 2.34 +226 289 9.65 +227 251 2.61 +229 239 2.80 +229 246 8.73 +229 296 9.21 +231 282 2.91 +233 277 5.23 +234 252 7.60 +234 257 8.91 +234 300 4.41 +236 293 5.65 +238 256 7.68 +238 285 7.58 +239 299 8.05 +240 277 6.13 +241 271 1.94 +241 295 9.14 +241 298 8.79 +242 260 8.18 +245 253 1.90 +246 252 2.84 +246 266 7.69 +252 254 1.21 +253 254 9.81 +253 261 4.39 +254 268 7.47 +254 280 8.99 +254 286 4.55 +254 299 3.87 +255 289 6.48 +258 291 6.23 +261 280 4.68 +261 289 6.42 +263 296 9.42 +264 267 5.21 +264 276 2.77 +267 288 4.39 +268 273 4.55 +270 288 2.18 +275 277 2.47 +276 300 7.16 +277 297 4.06 +278 289 9.59 +279 291 3.19 +280 284 1.89 +281 285 7.78 +281 295 8.93 +281 298 3.50 +282 288 2.82 +285 299 2.67 +291 298 5.70 diff --git a/python/tests/data/undirected_upper.mtx b/python/tests/data/undirected_upper.mtx new file mode 100644 index 000000000..ded835489 --- /dev/null +++ b/python/tests/data/undirected_upper.mtx @@ -0,0 +1,902 @@ +%%MatrixMarket matrix coordinate real general +300 300 900 +1 2 7.97 +1 3 4.95 +1 9 8.73 +1 46 7.28 +1 49 1.85 +1 85 9.78 +1 106 7.85 +2 12 8.07 +2 13 2.15 +2 38 5.05 +2 134 4.34 +2 216 9.34 +2 282 6.79 +2 290 8.40 +3 4 4.99 +3 5 3.05 +3 6 5.99 +3 7 1.57 +3 11 8.45 +3 20 6.68 +3 38 7.82 +3 58 4.19 +3 102 9.74 +3 113 9.04 +3 170 8.01 +3 172 2.75 +3 260 5.20 +3 269 1.39 +4 35 2.39 +4 47 7.15 +4 91 7.70 +4 101 9.71 +4 164 3.93 +4 172 4.33 +5 25 5.23 +5 26 2.71 +5 82 2.17 +5 119 5.28 +5 140 3.04 +5 235 7.03 +5 271 4.93 +5 274 8.49 +5 281 7.30 +6 71 3.81 +6 149 8.49 +6 167 8.24 +6 204 4.49 +6 255 3.59 +7 8 7.14 +7 10 2.26 +7 13 2.80 +7 43 1.07 +7 86 8.08 +7 120 6.98 +7 163 7.35 +7 232 8.03 +7 274 5.13 +8 34 6.12 +8 78 2.26 +8 90 2.03 +8 150 7.02 +8 200 5.24 +8 215 6.09 +9 24 7.88 +9 89 6.71 +9 100 5.98 +9 152 6.03 +9 160 3.74 +9 260 1.28 +10 19 4.93 +10 22 2.93 +10 37 4.68 +10 60 8.68 +10 76 3.11 +10 206 1.52 +11 15 3.53 +11 42 3.64 +11 54 6.96 +11 61 6.01 +11 129 8.06 +11 252 6.98 +11 273 4.66 +11 277 8.33 +12 16 2.50 +12 17 1.20 +12 23 1.81 +12 29 7.50 +12 41 5.16 +12 71 2.45 +12 72 5.51 +13 14 2.37 +13 32 7.27 +13 35 5.02 +13 89 4.43 +13 90 3.71 +13 131 6.67 +13 134 4.26 +13 135 1.79 +14 18 2.06 +14 32 9.66 +14 59 9.18 +14 74 7.30 +14 85 3.39 +14 122 9.72 +14 160 8.01 +14 161 7.45 +14 264 5.04 +14 283 3.45 +15 16 1.87 +15 33 9.12 +15 85 5.10 +15 102 2.82 +15 115 3.75 +15 145 6.21 +15 286 2.59 +16 29 8.71 +16 33 7.83 +16 46 7.48 +16 47 4.89 +16 58 6.65 +16 74 6.26 +16 174 6.85 +17 21 1.76 +17 22 4.74 +17 31 1.37 +17 112 5.45 +17 120 3.97 +17 153 2.30 +17 213 1.93 +17 247 6.29 +17 250 2.54 +18 28 9.33 +18 74 6.23 +18 80 4.12 +18 185 6.32 +18 198 1.21 +18 219 9.63 +19 42 5.34 +19 118 8.04 +19 169 1.74 +19 173 5.38 +19 234 5.42 +19 281 9.44 +20 36 6.15 +20 55 5.26 +20 159 3.40 +20 172 3.98 +20 223 5.69 +20 265 4.95 +21 25 1.19 +21 27 8.44 +21 104 9.07 +21 248 2.26 +21 250 5.99 +22 49 1.98 +22 68 7.05 +22 87 3.53 +22 185 6.93 +22 220 7.54 +23 35 7.92 +23 239 1.97 +23 299 9.24 +24 26 3.07 +24 30 1.34 +24 65 5.99 +24 85 4.34 +24 99 8.47 +24 200 8.27 +24 245 3.85 +24 282 9.58 +25 99 3.62 +25 120 5.64 +26 42 3.30 +26 56 9.42 +26 70 2.48 +26 79 1.40 +26 175 4.92 +26 195 9.93 +26 204 9.03 +26 222 7.74 +26 256 9.02 +26 281 9.04 +27 217 5.67 +27 260 3.84 +28 57 7.95 +28 67 6.95 +28 77 4.36 +28 90 1.85 +28 98 7.72 +28 112 3.36 +28 184 9.43 +28 187 3.17 +28 225 2.10 +28 251 8.48 +29 92 2.38 +29 137 2.61 +29 170 6.39 +29 172 8.87 +29 180 2.77 +29 191 3.79 +29 223 8.00 +29 266 9.75 +30 121 5.51 +30 207 2.30 +30 213 1.13 +31 45 3.07 +31 96 2.19 +31 110 7.10 +31 144 2.10 +31 187 5.56 +31 222 7.25 +31 269 6.23 +32 37 2.80 +32 59 8.24 +32 113 7.44 +32 156 7.65 +32 189 2.18 +32 253 2.11 +32 288 9.35 +33 39 4.58 +33 40 3.71 +33 44 5.40 +33 95 6.97 +33 97 9.60 +33 111 3.58 +33 200 9.32 +33 296 1.22 +34 51 6.00 +34 72 6.71 +34 87 1.95 +34 153 2.26 +34 164 4.77 +34 243 9.70 +34 256 6.36 +35 38 9.40 +35 75 8.24 +35 83 5.21 +35 137 8.06 +35 150 1.16 +35 156 1.98 +35 196 8.46 +36 39 8.17 +36 85 3.09 +36 113 5.78 +36 128 6.45 +36 173 8.81 +36 201 6.43 +36 236 4.71 +36 254 4.37 +37 78 4.83 +37 84 6.87 +37 96 8.81 +37 232 5.09 +37 256 3.23 +37 291 3.13 +38 131 7.71 +38 258 8.35 +39 170 1.95 +39 219 1.60 +39 277 6.35 +40 52 2.32 +40 53 8.42 +40 84 3.79 +40 145 2.29 +40 147 9.29 +40 248 2.49 +40 276 3.56 +41 93 2.38 +41 104 2.04 +41 196 1.19 +41 222 1.50 +41 232 2.57 +41 293 1.48 +42 62 6.32 +42 113 7.13 +42 138 4.54 +42 161 3.86 +42 218 5.54 +42 275 8.88 +42 280 8.66 +43 136 1.39 +43 163 2.63 +43 167 3.13 +43 180 3.24 +43 196 6.14 +43 217 4.75 +44 50 1.44 +44 108 4.36 +44 131 5.71 +44 134 1.92 +44 154 8.50 +44 212 1.47 +44 278 9.32 +45 48 1.89 +45 61 8.59 +45 68 9.12 +45 191 9.82 +45 264 8.22 +45 289 8.02 +46 48 6.78 +46 81 8.01 +46 156 2.21 +46 191 5.82 +46 226 5.63 +46 253 8.72 +46 261 5.17 +46 268 4.47 +46 276 6.76 +47 54 3.40 +47 64 2.26 +47 86 5.30 +47 87 4.75 +47 123 3.09 +47 135 4.31 +47 174 4.30 +47 213 3.95 +47 289 4.42 +48 94 7.17 +48 255 3.67 +49 141 9.54 +50 55 9.25 +50 126 5.33 +50 141 3.96 +50 179 5.82 +50 180 8.64 +50 214 6.87 +51 52 8.24 +51 241 5.79 +52 111 6.70 +52 124 3.59 +52 147 7.61 +52 169 2.82 +52 211 7.25 +53 59 8.75 +53 69 2.19 +53 77 6.53 +53 116 1.86 +53 166 7.53 +54 118 1.76 +54 123 9.42 +54 169 2.24 +54 221 9.63 +54 225 8.21 +55 82 6.34 +55 87 8.04 +55 92 8.16 +55 148 9.51 +55 206 3.28 +55 280 6.31 +56 142 1.86 +56 208 6.55 +56 211 2.54 +56 213 6.08 +56 232 6.15 +57 171 5.19 +57 260 5.70 +57 300 7.88 +58 63 8.19 +58 73 5.43 +58 88 6.40 +58 95 9.38 +58 192 2.08 +58 248 2.05 +59 117 1.79 +59 126 6.92 +59 148 4.77 +60 126 7.97 +60 130 7.04 +60 146 4.00 +60 218 9.09 +60 243 7.86 +61 88 3.43 +61 106 4.28 +61 137 3.83 +61 242 2.42 +61 252 2.33 +61 286 9.43 +62 69 4.94 +62 142 4.45 +63 66 7.57 +63 135 5.98 +63 202 9.43 +63 203 8.02 +64 101 5.31 +64 115 4.39 +65 178 9.88 +66 150 7.46 +66 253 9.56 +66 266 2.07 +67 118 8.65 +67 167 6.73 +68 100 2.10 +68 157 6.29 +68 165 7.17 +68 166 1.11 +68 199 5.09 +68 201 8.43 +68 269 3.66 +69 75 5.13 +69 97 4.98 +69 101 3.72 +70 91 9.27 +70 125 8.03 +70 139 2.00 +70 167 9.97 +70 182 8.91 +70 190 3.56 +70 228 8.53 +70 293 1.96 +71 81 9.99 +71 86 6.99 +71 90 6.85 +71 116 1.81 +71 180 9.07 +71 196 1.26 +71 258 3.17 +71 273 2.29 +72 77 7.99 +72 128 2.78 +72 181 9.20 +72 267 6.91 +72 289 1.33 +72 294 1.05 +73 74 1.46 +73 110 6.45 +73 124 8.21 +73 180 3.15 +73 190 8.64 +73 257 1.52 +73 285 8.21 +74 81 9.35 +74 95 7.95 +74 134 7.28 +74 198 8.54 +74 203 1.36 +74 237 2.82 +74 273 2.12 +75 80 5.54 +75 94 7.71 +75 131 6.67 +75 133 8.66 +75 160 2.40 +75 241 7.61 +75 280 2.74 +75 284 3.44 +76 92 7.39 +76 136 9.82 +76 238 6.50 +76 240 1.49 +77 191 6.55 +77 245 1.38 +77 272 8.96 +78 83 7.39 +78 195 2.56 +78 283 1.83 +79 112 2.65 +79 114 9.82 +79 159 5.13 +79 204 8.06 +79 294 6.73 +80 95 6.15 +80 155 2.31 +80 265 9.51 +80 278 3.71 +81 161 6.20 +81 237 7.30 +81 240 6.84 +81 273 9.47 +82 125 2.34 +82 178 5.58 +82 191 4.64 +82 256 5.27 +83 124 2.07 +83 137 2.21 +83 147 3.50 +84 105 3.74 +84 125 4.85 +84 132 6.50 +84 139 6.71 +84 188 4.71 +84 285 4.68 +85 94 2.96 +85 103 6.29 +85 107 3.85 +85 108 1.32 +85 109 4.77 +85 256 5.27 +86 157 3.03 +86 206 6.15 +86 289 6.09 +86 295 7.32 +87 97 6.83 +87 124 6.87 +87 197 3.85 +87 249 8.09 +87 255 5.94 +88 191 4.88 +89 114 6.63 +89 130 4.25 +89 152 5.61 +89 160 7.63 +89 192 8.98 +90 97 9.29 +90 126 5.53 +90 131 5.68 +90 271 8.20 +91 136 3.83 +91 163 8.54 +91 167 5.45 +91 182 2.04 +91 292 1.65 +91 294 8.58 +92 159 1.50 +92 177 3.53 +92 185 4.01 +93 127 2.56 +93 187 3.83 +93 249 7.68 +94 96 1.13 +94 128 8.44 +94 238 8.71 +94 270 4.35 +95 133 2.38 +95 141 6.41 +95 160 2.08 +95 185 4.28 +95 207 9.63 +95 220 9.96 +95 287 7.95 +96 181 3.80 +96 249 7.19 +96 287 7.35 +96 289 4.49 +97 155 6.77 +97 216 1.10 +97 241 2.88 +97 292 5.73 +98 169 2.47 +98 294 2.49 +98 296 8.53 +99 130 9.90 +99 221 6.00 +99 222 8.55 +99 232 9.91 +100 145 2.27 +100 224 5.03 +101 160 4.53 +101 170 1.72 +101 199 7.80 +101 205 4.90 +101 220 5.22 +102 111 2.36 +102 224 2.63 +102 265 9.16 +103 116 1.40 +103 165 3.10 +103 203 3.63 +103 265 5.41 +104 158 6.28 +104 192 5.44 +104 240 1.76 +104 250 3.19 +105 158 8.59 +105 263 6.74 +105 270 6.84 +106 170 7.03 +108 127 7.87 +108 233 1.52 +109 137 4.30 +109 158 5.86 +109 164 4.05 +109 235 8.60 +110 152 5.34 +110 153 7.92 +110 218 8.67 +110 239 5.54 +110 248 9.19 +111 152 6.28 +111 180 8.65 +112 125 4.07 +112 165 5.49 +113 124 5.78 +113 295 1.94 +114 131 4.59 +115 222 9.26 +116 149 6.68 +116 191 2.60 +116 236 4.05 +116 277 2.72 +117 226 1.22 +117 237 9.35 +118 195 5.03 +118 253 3.77 +118 300 6.39 +119 148 1.07 +119 241 3.50 +120 135 7.33 +120 269 6.70 +121 191 9.84 +121 228 6.58 +122 194 5.30 +122 208 7.85 +122 278 9.13 +123 177 7.49 +123 179 9.67 +123 202 8.04 +123 233 8.80 +124 130 2.03 +124 151 7.59 +124 292 4.96 +125 254 5.98 +125 256 6.89 +125 259 9.73 +125 285 9.86 +126 148 3.59 +126 174 7.60 +126 219 7.75 +126 225 4.12 +126 231 2.11 +126 251 1.37 +126 291 8.00 +127 135 5.41 +127 162 9.87 +127 176 5.18 +127 287 9.80 +128 179 4.70 +128 243 8.14 +128 278 1.76 +129 178 6.00 +129 185 8.22 +129 186 9.32 +129 196 8.40 +130 141 1.33 +130 273 4.35 +130 279 1.44 +130 281 1.98 +131 144 7.08 +131 153 7.42 +132 167 7.96 +132 191 8.79 +132 193 7.65 +132 249 8.21 +132 300 1.44 +133 230 3.11 +133 243 6.60 +133 283 8.72 +134 235 1.04 +134 247 5.63 +134 278 7.10 +135 151 1.27 +135 175 4.61 +135 208 9.06 +135 216 7.04 +135 232 3.14 +136 168 8.68 +137 296 4.13 +138 178 8.68 +138 213 3.69 +138 284 6.31 +138 291 4.57 +138 292 3.47 +139 153 8.98 +139 161 2.69 +139 243 1.76 +139 251 4.08 +139 261 7.46 +140 143 8.27 +140 258 9.99 +140 286 3.67 +141 144 4.67 +141 253 2.23 +142 155 6.17 +142 244 9.98 +143 144 7.31 +143 179 6.36 +143 259 4.53 +143 275 9.24 +144 177 5.47 +144 184 2.21 +144 206 4.29 +144 264 1.60 +144 275 2.82 +145 147 1.16 +145 257 5.08 +147 196 6.71 +147 198 4.09 +147 289 4.78 +148 156 9.63 +148 217 7.77 +149 275 5.87 +150 151 3.56 +150 175 9.07 +151 163 3.12 +151 259 3.93 +151 288 9.18 +152 210 5.77 +152 242 7.68 +152 256 6.32 +152 296 6.88 +153 199 3.69 +153 214 3.17 +153 220 3.90 +153 234 2.40 +154 234 8.87 +154 262 3.55 +154 289 6.05 +155 187 8.13 +155 205 8.05 +155 217 4.95 +155 247 5.29 +155 276 9.95 +155 286 7.07 +155 298 8.33 +156 252 9.12 +156 268 8.09 +157 185 2.67 +157 204 6.06 +157 221 1.92 +157 281 6.88 +157 295 9.60 +158 191 5.61 +158 225 4.90 +158 227 1.32 +158 239 9.64 +158 278 1.93 +158 291 1.37 +159 188 3.21 +159 209 1.59 +160 166 5.10 +160 217 5.64 +160 231 3.81 +160 246 1.46 +160 255 2.00 +161 248 4.46 +161 272 1.54 +161 300 7.28 +162 163 2.86 +162 210 3.72 +162 224 4.55 +162 297 4.75 +163 181 1.01 +163 236 2.01 +163 241 8.76 +164 227 1.01 +165 190 5.57 +165 195 5.41 +165 212 4.00 +165 266 4.88 +166 195 8.03 +166 235 8.57 +166 271 3.34 +166 290 3.90 +167 180 3.18 +167 195 5.32 +167 288 7.15 +168 266 3.05 +169 215 3.98 +170 257 9.37 +171 183 1.44 +171 238 5.15 +171 279 7.40 +172 193 2.35 +172 262 1.43 +174 234 2.24 +175 230 9.27 +175 259 1.08 +176 236 2.69 +176 299 1.28 +177 196 2.00 +177 203 6.58 +177 211 3.17 +177 285 6.12 +178 213 6.31 +178 217 8.64 +179 221 1.04 +179 236 8.68 +180 209 6.57 +181 227 2.46 +182 230 7.96 +182 246 8.70 +183 279 3.29 +184 202 9.27 +184 225 5.09 +184 236 6.43 +185 204 9.86 +185 229 4.25 +185 234 8.32 +185 275 3.87 +185 286 8.19 +186 197 6.41 +187 218 2.95 +187 241 4.73 +188 235 3.86 +188 249 1.70 +189 190 1.27 +189 193 4.12 +189 197 1.17 +190 230 2.49 +191 236 7.53 +191 285 7.37 +191 289 7.65 +192 206 3.85 +192 257 9.01 +192 264 6.34 +193 278 2.13 +194 202 2.29 +196 271 7.24 +196 296 2.56 +197 251 5.57 +197 289 9.93 +198 233 1.04 +200 202 1.15 +200 222 9.94 +200 234 6.26 +200 300 2.14 +201 241 9.08 +202 271 8.92 +202 275 5.83 +203 210 6.60 +203 280 3.46 +205 259 1.45 +205 270 6.35 +207 232 3.65 +207 256 6.97 +208 263 8.53 +209 279 1.16 +210 254 6.36 +210 269 3.08 +210 270 8.86 +211 257 3.28 +212 257 6.50 +214 229 5.98 +215 295 4.57 +216 263 7.10 +217 248 7.53 +219 220 6.10 +219 230 7.83 +219 280 9.85 +221 225 4.77 +221 244 5.63 +221 247 1.11 +221 263 8.16 +222 235 5.68 +222 242 4.67 +222 243 1.85 +222 270 9.01 +223 296 4.56 +224 299 7.14 +225 292 2.34 +226 289 9.65 +227 251 2.61 +229 239 2.80 +229 246 8.73 +229 296 9.21 +231 282 2.91 +233 277 5.23 +234 252 7.60 +234 257 8.91 +234 300 4.41 +236 293 5.65 +238 256 7.68 +238 285 7.58 +239 299 8.05 +240 277 6.13 +241 271 1.94 +241 295 9.14 +241 298 8.79 +242 260 8.18 +245 253 1.90 +246 252 2.84 +246 266 7.69 +252 254 1.21 +253 254 9.81 +253 261 4.39 +254 268 7.47 +254 280 8.99 +254 286 4.55 +254 299 3.87 +255 289 6.48 +258 291 6.23 +261 280 4.68 +261 289 6.42 +263 296 9.42 +264 267 5.21 +264 276 2.77 +267 288 4.39 +268 273 4.55 +270 288 2.18 +275 277 2.47 +276 300 7.16 +277 297 4.06 +278 289 9.59 +279 291 3.19 +280 284 1.89 +281 285 7.78 +281 295 8.93 +281 298 3.50 +282 288 2.82 +285 299 2.67 +291 298 5.70 diff --git a/python/algorithms/test_compare.py b/python/tests/test_algorithms.py similarity index 50% rename from python/algorithms/test_compare.py rename to python/tests/test_algorithms.py index d74d1e39a..11d2d3284 100644 --- a/python/algorithms/test_compare.py +++ b/python/tests/test_algorithms.py @@ -1,22 +1,15 @@ -import warnings +"""Tests comparing the SPLA-based graph algorithms against classic references. -warnings.simplefilter("ignore", DeprecationWarning) +The SPLA implementations (python/algorithms) are checked against pure-Python +reference implementations on the small Matrix Market fixtures in ``data/``. +Triangle counting is additionally cross-checked against NetworkX when it is +installed. +""" import heapq import math -import sys -import unittest -from pathlib import Path - -sys.path.insert(0, str(Path(__file__).parent)) - -try: - import networkx as nx - - HAS_NETWORKX = True -except ImportError: - HAS_NETWORKX = False +import networkx as nx from bfs_classic import bfs_naive as bfs_classic from bfs_spla import bfs_spla from graph_spla import read_mtx_pr_spla, read_spla @@ -28,10 +21,9 @@ from pyspla import FLOAT, INT -DATA = Path(__file__).parent / "data" -UNDIRECTED_GRAPH = DATA / "undirected.mtx" -DIRECTED_GRAPH = DATA / "directed.mtx" -UPPER = DATA / "undirected_upper.mtx" +UNDIRECTED_GRAPH = "undirected.mtx" +DIRECTED_GRAPH = "directed.mtx" +UPPER = "undirected_upper.mtx" def split(A): @@ -79,9 +71,9 @@ def short_distance(n, adj, start): return dist -class TestBfs(unittest.TestCase): - def _check(self, mtx, **kwargs): - A = read_spla(str(mtx), INT) +class TestBfs: + def _check(self, data_dir, name, **kwargs): + A = read_spla(str(data_dir / name), INT) n, pairs, _ = split(A) ref = bfs_classic(0, adj_plain(n, pairs), n) @@ -90,24 +82,24 @@ def _check(self, mtx, **kwargs): v, _, _ = bfs_spla(0, A, **kwargs) got = to_list(v, n, 0) - self.assertEqual(ref, got) + assert ref == got - def test_symmetric_push(self): - self._check(UNDIRECTED_GRAPH, push_only=True, pull_only=False, push_pull=False) + def test_symmetric_push(self, data_dir): + self._check(data_dir, UNDIRECTED_GRAPH, push_only=True, pull_only=False, push_pull=False) - def test_symmetric_pull(self): - self._check(UNDIRECTED_GRAPH, push_only=False, pull_only=True, push_pull=False) + def test_symmetric_pull(self, data_dir): + self._check(data_dir, UNDIRECTED_GRAPH, push_only=False, pull_only=True, push_pull=False) - def test_symmetric_push_pull(self): - self._check(UNDIRECTED_GRAPH, push_only=False, pull_only=False, push_pull=True) + def test_symmetric_push_pull(self, data_dir): + self._check(data_dir, UNDIRECTED_GRAPH, push_only=False, pull_only=False, push_pull=True) - def test_directed_push(self): - self._check(DIRECTED_GRAPH, push_only=True, pull_only=False, push_pull=False) + def test_directed_push(self, data_dir): + self._check(data_dir, DIRECTED_GRAPH, push_only=True, pull_only=False, push_pull=False) -class TestSssp(unittest.TestCase): - def _check(self, mtx, **kwargs): - A = read_spla(str(mtx), FLOAT) +class TestSssp: + def _check(self, data_dir, name, **kwargs): + A = read_spla(str(data_dir / name), FLOAT) n, pairs, weights = split(A) ref = short_distance(n, adj_weighted(n, pairs, weights), 0) @@ -119,21 +111,21 @@ def _check(self, mtx, **kwargs): for i, (a, b) in enumerate(zip(ref, got)): if math.isinf(a) and math.isinf(b): continue - self.assertLessEqual(abs(a - b), 1e-4, f"v{i}: ref={a} got={b}") + assert abs(a - b) <= 1e-4, f"v{i}: ref={a} got={b}" - def test_symmetric_push(self): - self._check(UNDIRECTED_GRAPH, push_only=True, pull_only=False, push_pull=False) + def test_symmetric_push(self, data_dir): + self._check(data_dir, UNDIRECTED_GRAPH, push_only=True, pull_only=False, push_pull=False) - def test_symmetric_pull(self): - self._check(UNDIRECTED_GRAPH, push_only=False, pull_only=True, push_pull=False) + def test_symmetric_pull(self, data_dir): + self._check(data_dir, UNDIRECTED_GRAPH, push_only=False, pull_only=True, push_pull=False) - def test_directed_push(self): - self._check(DIRECTED_GRAPH, push_only=True, pull_only=False, push_pull=False) + def test_directed_push(self, data_dir): + self._check(data_dir, DIRECTED_GRAPH, push_only=True, pull_only=False, push_pull=False) -class TestPr(unittest.TestCase): - def _check(self, mtx): - A = read_mtx_pr_spla(str(mtx)) +class TestPr: + def _check(self, data_dir, name): + A = read_mtx_pr_spla(str(data_dir / name)) n, pairs, weights = split(A) adj = [[] for _ in range(n)] @@ -149,19 +141,19 @@ def _check(self, mtx): got = to_list(p, n, 0.0) max_diff = max(abs(a - b) for a, b in zip(ref, got)) - self.assertLess(max_diff, 1e-4, f"max diff {max_diff:.2e}") + assert max_diff < 1e-4, f"max diff {max_diff:.2e}" - def test_symmetric(self): - self._check(UNDIRECTED_GRAPH) + def test_symmetric(self, data_dir): + self._check(data_dir, UNDIRECTED_GRAPH) - def test_directed(self): - self._check(DIRECTED_GRAPH) + def test_directed(self, data_dir): + self._check(data_dir, DIRECTED_GRAPH) -class TestTc(unittest.TestCase): - def _check(self, algo): +class TestTc: + def _check(self, data_dir, algo): # triangle counting is unweighted: read with unit weights - A = read_spla(str(UPPER), INT, unit_weights=True) + A = read_spla(str(data_dir / UPPER), INT, unit_weights=True) n, pairs, _ = split(A) adj = [[] for _ in range(n)] @@ -172,20 +164,19 @@ def _check(self, algo): ref = tc_classic(adj, n) got = algo(A) - self.assertEqual(ref, got) + assert ref == got - def test_sandia(self): - self._check(tc_sandia) + def test_sandia(self, data_dir): + self._check(data_dir, tc_sandia) - def test_default(self): - self._check(tc_spla) + def test_default(self, data_dir): + self._check(data_dir, tc_spla) - def test_mxmT(self): - self._check(tc_spla_mxmT) + def test_mxmT(self, data_dir): + self._check(data_dir, tc_spla_mxmT) - @unittest.skipUnless(HAS_NETWORKX, "networkx is not installed") - def test_networkx(self): - A = read_spla(str(UPPER), INT, unit_weights=True) + def test_networkx(self, data_dir): + A = read_spla(str(data_dir / UPPER), INT, unit_weights=True) n, pairs, _ = split(A) G = nx.Graph() @@ -193,9 +184,5 @@ def test_networkx(self): G.add_edges_from(pairs) ref = sum(nx.triangles(G).values()) // 3 - self.assertEqual(tc_sandia(A), ref) - self.assertEqual(tc_spla_mxmT(A), ref) - - -if __name__ == "__main__": - unittest.main(verbosity=2) + assert tc_sandia(A) == ref + assert tc_spla_mxmT(A) == ref diff --git a/python/tests/test_pyspla.py b/python/tests/test_pyspla.py new file mode 100644 index 000000000..9725a9d2d --- /dev/null +++ b/python/tests/test_pyspla.py @@ -0,0 +1,275 @@ +"""Tests for the pyspla package: containers, ops, and error handling.""" + +import pytest + +from pyspla import ( + FLOAT, + INT, + UINT, + Descriptor, + FormatVector, + Matrix, + Scalar, + Vector, +) + +# 4-vertex directed graph from the package docs: +# 0 -> 1, 1 -> 2, 2 -> 0, 2 -> 3, 3 -> 2 +GRAPH_I = [0, 1, 2, 2, 3] +GRAPH_J = [1, 2, 0, 3, 2] +GRAPH_V = [1, 1, 1, 1, 1] + + +@pytest.fixture(scope="module") +def graph() -> Matrix: + return Matrix.from_lists(GRAPH_I, GRAPH_J, GRAPH_V, shape=(4, 4), dtype=INT) + + +class TestScalar: + def test_set_get_each_dtype(self): + # BOOL scalars are not supported by the C bindings (no set/get function) + for dtype, value in ((INT, -42), (UINT, 7), (FLOAT, 2.5)): + s = Scalar(dtype, value) + assert s.get() == value + + def test_set_after_construction(self): + s = Scalar(INT, 1) + s.set(9) + assert s.get() == 9 + + def test_arithmetic(self): + a, b = Scalar(INT, 6), Scalar(INT, 4) + assert (a + b).get() == 10 + assert (a - b).get() == 2 + assert (a * b).get() == 24 + assert (a // b).get() == 1 + # true division yields a float, so it is only representable for FLOAT scalars + fa, fb = Scalar(FLOAT, 6.0), Scalar(FLOAT, 4.0) + assert (fa / fb).get() == 1.5 + + def test_inplace_arithmetic(self): + a = Scalar(INT, 6) + a += 4 + assert a.get() == 10 + a -= 4 + assert a.get() == 6 + a *= 2 + assert a.get() == 12 + + def test_mixed_scalar_and_python_value(self): + s = Scalar(FLOAT, 2.0) + assert (s + 3.0).get() == 5.0 + assert (s * 3).get() == 6.0 + + +class TestVector: + def test_empty_construction(self): + v = Vector(5, INT) + assert v.n_rows == 5 + assert v.shape == (5, 1) + assert v.dtype == INT + assert v.to_lists() == ([], []) + + def test_set_get(self): + v = Vector(4, INT) + v.set(1, 10) + v.set(3, 20) + assert v.get(1) == 10 + assert v.get(3) == 20 + assert v.get(0) == 0 # unset entries read as zero + + def test_from_lists_roundtrip(self): + v = Vector.from_lists([0, 2], [10, 20], 4, INT) + assert v.to_lists() == ([0, 2], [10, 20]) + assert v.to_list() == [(0, 10), (2, 20)] + + def test_float_values(self): + v = Vector.from_lists([0, 1], [1.5, -2.25], 2, FLOAT) + assert v.to_lists() == ([0, 1], [1.5, -2.25]) + + def test_fill_with(self): + v = Vector(4, INT) + v.fill_with(Scalar(INT, 7)) + assert v.to_list() == [(0, 7), (1, 7), (2, 7), (3, 7)] + + def test_set_fill_value(self): + # explicit entries must be preserved when the fill value changes + v = Vector.from_lists([0], [10], 4, INT) + v.set_fill_value(Scalar(INT, -1)) + assert v.to_list() == [(0, 10)] + assert v.get(1) == -1 + + def test_reduce(self): + v = Vector.from_lists([0, 1, 2], [1, 2, 3], 3, INT) + assert v.reduce(op_reduce=INT.PLUS).get() == 6 + assert v.reduce(op_reduce=INT.MAX).get() == 3 + # reduction starts from `init` (default 0), so MIN needs a proper neutral value + assert v.reduce(op_reduce=INT.MIN, init=Scalar(INT, 100)).get() == 1 + + def test_eadd_emult(self): + # eadd/emult are element-wise: both operands must have the same length + v = Vector.from_lists([0, 1], [1, 2], 3, INT) + w = Vector.from_lists([1, 2], [10, 20], 3, INT) + s = v.eadd(INT.PLUS, w) + assert s.to_list() == [(0, 1), (1, 12), (2, 20)] + p = v.emult(INT.MULT, w) + assert p.to_list() == [(1, 20)] + + def test_assign_masked(self): + v = Vector(4, INT) + mask = Vector.from_lists([1, 3], [1, 1], 4, INT) + v.assign(mask, Scalar(INT, 5), op_assign=INT.SECOND, op_select=INT.NQZERO) + assert v.to_list() == [(1, 5), (3, 5)] + + def test_map_unary(self): + v = Vector.from_lists([0, 1], [3, -4], 2, INT) + neg = v.map(INT.AINV) + assert neg.to_list() == [(0, -3), (1, 4)] + abs_ = v.map(INT.ABS) + assert abs_.to_list() == [(0, 3), (1, 4)] + + def test_count_mf(self): + v = Vector.from_lists([0, 2], [1, 1], 4, INT) + assert v.count_mf().get() == 2 + + def test_vxm_masked(self): + # BFS-style traversal: front x A, keep only unvisited targets + A = Matrix.from_lists(GRAPH_I, GRAPH_J, GRAPH_V, shape=(4, 4), dtype=INT) + front = Vector.from_lists([0], [1], 4, INT) + visited = Vector(4, INT) + nxt = front.vxm(visited, A, op_mult=INT.LAND, op_add=INT.LOR, op_select=INT.EQZERO) + assert nxt.to_list() == [(1, 1)] + + def test_format_conversion(self): + v = Vector.from_lists([0, 2], [10, 20], 4, INT) + v.set_format(FormatVector.CPU_DENSE) + # reading back goes through the sparse representation, which drops fill values + assert v.to_list() == [(0, 10), (2, 20)] + assert v.get(1) == 0 + + +class TestMatrix: + def test_from_lists_roundtrip(self, graph): + i, j, v = graph.to_lists() + assert sorted(zip(i, j, v)) == sorted(zip(GRAPH_I, GRAPH_J, GRAPH_V)) + + def test_shape_properties(self, graph): + assert graph.n_rows == 4 + assert graph.n_cols == 4 + assert graph.shape == (4, 4) + + def test_set_get(self): + m = Matrix((3, 3), INT) + m.set(0, 1, 5) + assert m.get(0, 1) == 5 + assert m.get(1, 0) == 0 + + def test_mxm(self, graph): + # A * A: two-hop reachability + r = graph.mxm(graph, op_mult=INT.MULT, op_add=INT.PLUS) + i, j, v = r.to_lists() + assert sorted(zip(i, j)) == [(0, 2), (1, 0), (1, 3), (2, 1), (2, 2), (3, 0), (3, 3)] + assert all(x == 1 for x in v) + + def test_mxmT_masked(self, graph): + # R = mask * (A * A^T): common out-neighbors per masked position. + # The mask must not alias the operands: the kernel writes the result + # into the same LIL rows it reads from. + mask = graph.eadd(INT.PLUS, Matrix.diag((4, 4), INT, diag_value=1)) + r = graph.mxmT(mask, graph, op_mult=INT.MULT, op_add=INT.PLUS, op_select=INT.GTZERO) + i, j, v = r.to_lists() + # diagonal of A * A^T: out-degree of each vertex; some backends keep + # explicit zeros at the other masked positions + got = dict(zip(zip(i, j), v)) + expected = {(0, 0): 1, (1, 1): 1, (2, 2): 2, (3, 3): 1} + for key, value in expected.items(): + assert got.get(key) == value + for key, value in got.items(): + if key not in expected: + assert value == 0 + + def test_mxv(self, graph): + v = Vector.from_lists([0, 1, 2, 3], [1, 2, 3, 4], 4, INT) + r = graph.mxv(v, v, op_mult=INT.MULT, op_add=INT.PLUS, op_select=INT.ALWAYS) + assert r.to_list() == [(0, 2), (1, 3), (2, 5), (3, 3)] + + def test_vxm(self, graph): + v = Vector.from_lists([0, 1, 2, 3], [1, 2, 3, 4], 4, INT) + r = v.vxm(v, graph, op_mult=INT.MULT, op_add=INT.PLUS, op_select=INT.ALWAYS) + assert r.to_list() == [(0, 3), (1, 1), (2, 6), (3, 3)] + + def test_transpose(self, graph): + t = graph.transpose() + i, j, _ = t.to_lists() + assert sorted(zip(i, j)) == sorted(zip(GRAPH_J, GRAPH_I)) + + def test_eadd_emult(self, graph): + other = Matrix.from_lists([0, 0], [1, 3], [10, 20], shape=(4, 4), dtype=INT) + s = graph.eadd(INT.PLUS, other) + assert s.get(0, 1) == 11 + assert s.get(0, 3) == 20 + p = graph.emult(INT.MULT, other) + assert p.get(0, 1) == 10 + assert p.get(1, 2) == 0 # absent in `other` + + def test_reduce_by_row(self, graph): + r = graph.reduce_by_row(op_reduce=INT.PLUS) + assert r.to_list() == [(0, 1), (1, 1), (2, 2), (3, 1)] + + def test_reduce_by_column(self, graph): + r = graph.reduce_by_column(op_reduce=INT.PLUS) + assert r.to_list() == [(0, 1), (1, 1), (2, 2), (3, 1)] + + def test_reduce(self, graph): + assert graph.reduce(op_reduce=INT.PLUS).get() == 5 + + def test_extract_row(self, graph): + r = graph.extract_row(2) + i, v = r.to_lists() + assert list(zip(i, v)) == [(0, 1), (3, 1)] + + def test_extract_column(self, graph): + c = graph.extract_column(2) + i, v = c.to_lists() + assert list(zip(i, v)) == [(1, 1), (3, 1)] + + def test_kron(self): + a = Matrix.from_lists([0, 1], [1, 0], [1, 2], shape=(2, 2), dtype=INT) + r = a.kron(a, op_mult=INT.MULT) + i, j, v = r.to_lists() + assert dict(zip(zip(i, j), v)) == {(0, 3): 1, (1, 2): 2, (2, 1): 2, (3, 0): 4} + + def test_diag(self): + d = Matrix.diag((3, 3), INT, diag_value=2) + i, j, v = d.to_lists() + assert sorted(zip(i, j, v)) == [(0, 0, 2), (1, 1, 2), (2, 2, 2)] + + def test_dense(self): + d = Matrix.dense((3, 3), INT, fill_value=5) + assert d.to_list() == [(i, j, 5) for i in range(3) for j in range(3)] + + +class TestDescriptor: + def test_make_and_setters(self): + d = Descriptor() + d.set_struct_only(True) + d.set_early_exit(False) + # a descriptor must be usable in an operation + v = Vector.from_lists([0], [1], 2, INT) + assert v.reduce(op_reduce=INT.PLUS, desc=d).get() == 1 + + +class TestErrors: + # Note: out-of-range set() indices are not validated by the C library in + # release builds (bounds checks are asserts only), so they are not tested. + + def test_shape_mismatch_mxm(self, graph): + other = Matrix.from_lists([0], [0], [1], shape=(3, 3), dtype=INT) + with pytest.raises(AssertionError): + graph.mxm(other, op_mult=INT.MULT, op_add=INT.PLUS) + + def test_dtype_mismatch_eadd(self): + v = Vector.from_lists([0], [1], 2, INT) + w = Vector.from_lists([0], [1.5], 2, FLOAT) + with pytest.raises(AssertionError): + v.eadd(INT.PLUS, w) From 6429eb9bf54d10016447623f9177507d109bbf15 Mon Sep 17 00:00:00 2001 From: Vladimir Kutuev Date: Sat, 28 Nov 2026 11:39:50 +0300 Subject: [PATCH 11/14] fix(python): import bridge explicitly in package __init__ bridge.initialize() relied on the import system attaching the pyspla.bridge submodule to the package namespace as a side effect of the star import. After a failed first import (e.g. missing native library), the submodule stays in sys.modules but is not re-attached to the fresh package object, so a retry raised a misleading NameError instead of the real 'no compiled spla file' error. --- python/pyspla/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/pyspla/__init__.py b/python/pyspla/__init__.py index 728a127a3..56bae32c6 100644 --- a/python/pyspla/__init__.py +++ b/python/pyspla/__init__.py @@ -250,6 +250,7 @@ SOFTWARE. """ +from . import bridge from .bridge import * bridge.initialize() From 05128183e35003038d38b2d1ea537c4f3812fd2a Mon Sep 17 00:00:00 2001 From: Vladimir Kutuev Date: Sat, 28 Nov 2026 03:23:33 +0300 Subject: [PATCH 12/14] ci(python): add lint and test workflow Two jobs on pushes/PRs touching the Python side (and the C++ sources it builds against): - lint: ruff check + ruff format --check via uv - test: build libspla (CPU config), stage the shared library into the package and run the pytest suite --- .github/workflows/python.yml | 91 ++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 .github/workflows/python.yml diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml new file mode 100644 index 000000000..7f39bf18e --- /dev/null +++ b/.github/workflows/python.yml @@ -0,0 +1,91 @@ +name: Python + +on: + push: + branches: + - main + - release + - pre-release + paths: + - '.github/**' + - 'deps/**' + - 'include/**' + - 'src/**' + - 'python/**' + - 'CMakeLists.txt' + pull_request: + branches: [ main ] + +env: + build-dir: "build" + config: "Release" + nt: "4" + +jobs: + lint: + name: Lint + runs-on: ubuntu-24.04 + defaults: + run: + working-directory: python + steps: + - uses: actions/checkout@v7 + + - uses: astral-sh/setup-uv@v10.4.0 + with: + enable-cache: true + + - name: Check formatting + run: uv run ruff format --check . + + - name: Lint + run: uv run ruff check . + + test: + name: Test ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: + - os: ubuntu-24.04 + lib: libspla_x64.so + - os: windows-2022 + lib: spla_x64.dll + - os: macos-latest + lib: libspla_arm64.dylib + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v7 + + - uses: seanmiddleditch/gha-setup-ninja@master + + - uses: ilammy/msvc-dev-cmd@v1 + if: runner.os == 'Windows' + with: + arch: amd64 + + - uses: astral-sh/setup-uv@v10.4.0 + with: + enable-cache: true + + - name: Configure CMake + run: | + cmake . -G Ninja -B ${{ env.build-dir }} \ + -DCMAKE_BUILD_TYPE=${{ env.config }} \ + -DSPLA_BUILD_TESTS=OFF \ + -DSPLA_BUILD_EXAMPLES=OFF \ + -DSPLA_BUILD_OPENCL=OFF + + - name: Build library + run: | + cmake --build ${{ env.build-dir }} --verbose -j ${{ env.nt }} + + - name: Stage native library + run: cp ${{ env.build-dir }}/${{ matrix.lib }} python/pyspla/ + + - name: Run tests + working-directory: python + run: uv run pytest tests/ -v From a959a50dbe967a09ea199c40931b7bd66c9fbd7c Mon Sep 17 00:00:00 2001 From: Vladimir Kutuev Date: Sat, 28 Nov 2026 20:08:08 +0300 Subject: [PATCH 13/14] docs(python): add docstrings to graph algorithms Document every algorithm module and function: the classic reference implementations, the spla frontier-based versions (bfs, sssp), PageRank, triangle counting (Sandia and masked mxmT variants), the graph loaders, and the CLI driver. The tc_spla.py docstrings previously shipped inside the triangle-counting fix commit are moved here so all documentation lives in a single commit. --- python/algorithms/bfs_classic.py | 16 ++++++++++ python/algorithms/bfs_spla.py | 23 ++++++++++++++ python/algorithms/graph_spla.py | 53 +++++++++++++++++++++++++++++++ python/algorithms/main_spla.py | 7 ++++ python/algorithms/pr_classic.py | 16 ++++++++++ python/algorithms/pr_spla.py | 16 ++++++++++ python/algorithms/sssp_classic.py | 13 ++++++++ python/algorithms/sssp_spla.py | 23 ++++++++++++++ python/algorithms/tc_classic.py | 12 +++++++ python/algorithms/tc_spla.py | 32 +++++++++++++++++++ 10 files changed, 211 insertions(+) diff --git a/python/algorithms/bfs_classic.py b/python/algorithms/bfs_classic.py index 808b76607..a21568d7d 100644 --- a/python/algorithms/bfs_classic.py +++ b/python/algorithms/bfs_classic.py @@ -1,7 +1,23 @@ +"""Classic (reference) graph algorithms on plain Python adjacency structures. + +Used as a correctness baseline for the spla implementations. +""" + from collections import deque def bfs_naive(start, graph, n): + """Breadth-first search from `start` over an adjacency list. + + Args: + start: source vertex. + graph: adjacency list, graph[u] is the list of neighbors of u. + n: number of vertices. + + Returns: + depth, where depth[v] is the shortest path length (in edges) from + start to v, or None if v is unreachable. + """ depth = [None] * n q = deque() depth[start] = 0 diff --git a/python/algorithms/bfs_spla.py b/python/algorithms/bfs_spla.py index 73f83d984..3d18b2cb0 100644 --- a/python/algorithms/bfs_spla.py +++ b/python/algorithms/bfs_spla.py @@ -1,3 +1,5 @@ +"""Frontier-based breadth-first search using spla sparse primitives.""" + from pyspla import INT, Descriptor, Matrix, Scalar, Vector @@ -9,6 +11,27 @@ def bfs_spla( push_pull: bool = True, front_factor: float = 0.05, ): + """Breadth-first search from vertex s via level-synchronous frontier propagation. + + Each iteration advances the current frontier by one edge using either a + vector-matrix product (push, vxm) or a matrix-vector product (pull, mxv); + in push_pull mode the cheaper one is picked by comparing the frontier + density against front_factor. + + Args: + s: source vertex. + A: square adjacency matrix with 0/1 entries. + push_only: always use push (vxm) propagation. + pull_only: always use pull (mxv) propagation. + push_pull: pick push or pull per iteration by frontier density. + front_factor: density threshold at or below which push is preferred. + + Returns: + (depths, reached, levels): depths[v] is the BFS level of v, 1-based + (source is 1, its neighbors 2, ...), 0 for unreached vertices; + reached is the number of reached vertices; levels is the number of + iterations executed (max 0-based distance + 1). + """ n = A.n_rows if not (push_only or pull_only or push_pull): push_only = True diff --git a/python/algorithms/graph_spla.py b/python/algorithms/graph_spla.py index 4d855fd33..6d46f9904 100644 --- a/python/algorithms/graph_spla.py +++ b/python/algorithms/graph_spla.py @@ -1,13 +1,32 @@ +"""Graph loaders for the spla algorithm examples. + +Two on-disk formats are supported: +- Matrix Market (.mtx), read via scipy.io.mmread; +- "vectors" text format: three lines of space-separated numbers — + row indices, column indices, values. +""" + from scipy.io import mmread from pyspla import FLOAT, INT, Matrix def sort_by_ij(I, J, V): + """Sort COO triplets by (row, column) and return them as (I, J, V) lists.""" return map(list, zip(*sorted(zip(I, J, V)))) def read_spla(filepath, dtype=FLOAT, unit_weights=False): + """Read a square graph from a Matrix Market file into a spla Matrix. + + Args: + filepath: path to the .mtx file. + dtype: element type of the result (INT or FLOAT). + unit_weights: replace all edge weights with 1. + + Returns: + An n x n spla Matrix, where n is the largest dimension in the file. + """ coo = mmread(filepath).tocoo() n = int(max(coo.shape)) rows = coo.row.astype(int).tolist() @@ -23,6 +42,18 @@ def read_spla(filepath, dtype=FLOAT, unit_weights=False): def read_vectors_spla(filepath, dtype=FLOAT): + """Read a square graph from the 3-line vectors format into a spla Matrix. + + The file contains three lines: row indices, column indices, values. + The size n is inferred as max(index) + 1. + + Args: + filepath: path to the vectors file. + dtype: element type of the result (INT or FLOAT). + + Returns: + An n x n spla Matrix. + """ with open(filepath) as f: I = list(map(int, f.readline().split())) J = list(map(int, f.readline().split())) @@ -35,6 +66,17 @@ def read_vectors_spla(filepath, dtype=FLOAT): def read_mtx_pr_spla(file_path, alpha=0.85): + """Build the PageRank contribution matrix from a Matrix Market file. + + Each unit-weight edge i -> j becomes A[i, j] = alpha / out_deg(i). + + Args: + file_path: path to the .mtx file. + alpha: damping factor. + + Returns: + An n x n FLOAT spla Matrix. + """ coo = mmread(file_path).tocoo() n = int(max(coo.shape)) rows = coo.row.astype(int).tolist() @@ -48,6 +90,17 @@ def read_mtx_pr_spla(file_path, alpha=0.85): def read_vectors_pr_spla(file_path, alpha=0.85): + """Build the PageRank contribution matrix from the 3-line vectors format. + + Each unit-weight edge i -> j becomes A[i, j] = alpha / out_deg(i). + + Args: + file_path: path to the vectors file. + alpha: damping factor. + + Returns: + An n x n FLOAT spla Matrix. + """ with open(file_path) as f: I = list(map(int, f.readline().split())) J = list(map(int, f.readline().split())) diff --git a/python/algorithms/main_spla.py b/python/algorithms/main_spla.py index 08dc40675..88f14e698 100644 --- a/python/algorithms/main_spla.py +++ b/python/algorithms/main_spla.py @@ -1,3 +1,9 @@ +"""Command-line driver for the spla graph algorithms. + +Runs one of bfs / sssp / pr / tc on a graph loaded from a Matrix Market +(.mtx) or vectors (.txt) file and writes the result to an output file. +""" + import argparse import math import sys @@ -20,6 +26,7 @@ def main(): + """Parse the arguments, run the selected algorithm, and write the result file.""" parser = argparse.ArgumentParser() parser.add_argument( "--algo", diff --git a/python/algorithms/pr_classic.py b/python/algorithms/pr_classic.py index 3639d4415..673b9b0b8 100644 --- a/python/algorithms/pr_classic.py +++ b/python/algorithms/pr_classic.py @@ -1,7 +1,23 @@ +"""Classic (reference) PageRank on plain Python adjacency structures.""" + import math def pagerank_naive(Ai, Ax, alpha, eps): + """PageRank by power iteration. + + Repeats p[i] = (1 - alpha) / N + sum_k Ax[i][k] * p[Ai[i][k]] until the + L2 norm of the change drops below eps. + + Args: + Ai: Ai[i] is the list of vertices contributing to i. + Ax: Ax[i][k] is the weight of the contribution of Ai[i][k] to i. + alpha: damping factor. + eps: convergence tolerance (L2 norm of the rank change). + + Returns: + The converged PageRank vector. + """ N = len(Ai) p_prev = [1.0 / N] * N error = eps + 1.0 diff --git a/python/algorithms/pr_spla.py b/python/algorithms/pr_spla.py index 6fbdbe208..5d38591b6 100644 --- a/python/algorithms/pr_spla.py +++ b/python/algorithms/pr_spla.py @@ -1,9 +1,25 @@ +"""PageRank using spla sparse primitives.""" + import math from pyspla import FLOAT, Matrix, Scalar, Vector def pr_spla(A: Matrix, alpha: float, eps: float): + """PageRank by power iteration. + + Repeats p = A * p_prev + (1 - alpha) / N until the L2 norm of the change + drops below eps. + + Args: + A: contribution matrix, A[i, j] is the weight with which the rank of + j contributes to i (built by read_mtx_pr_spla / read_vectors_pr_spla). + alpha: damping factor. + eps: convergence tolerance (L2 norm of the rank change). + + Returns: + The converged PageRank vector. + """ N = A.n_rows mask = Vector(N, FLOAT) addition = Vector(N, FLOAT).fill_with(Scalar(FLOAT, (1.0 - alpha) / N)) diff --git a/python/algorithms/sssp_classic.py b/python/algorithms/sssp_classic.py index e533bc5b4..6c4518607 100644 --- a/python/algorithms/sssp_classic.py +++ b/python/algorithms/sssp_classic.py @@ -1,9 +1,22 @@ +"""Classic (reference) single-source shortest paths on plain Python structures.""" + import math INF = math.inf def sssp_naive(start, graph, n): + """Single-source shortest paths by Bellman-Ford. + + Args: + start: source vertex. + graph: adjacency list of (neighbor, weight) pairs. + n: number of vertices. + + Returns: + dist, where dist[v] is the shortest path weight from start to v + (INF if v is unreachable). + """ dist = [INF] * n dist[start] = 0 diff --git a/python/algorithms/sssp_spla.py b/python/algorithms/sssp_spla.py index c9bde77a7..06b6dc346 100644 --- a/python/algorithms/sssp_spla.py +++ b/python/algorithms/sssp_spla.py @@ -1,3 +1,5 @@ +"""Frontier-based single-source shortest paths using spla sparse primitives.""" + import math from pyspla import FLOAT, Scalar, Vector @@ -6,12 +8,33 @@ def make_vector(n): + """Vector of length n filled with INF (the 'unreached' sentinel).""" v = Vector(n, FLOAT) v.set_fill_value(Scalar(FLOAT, INF)) return v def sssp_spla(start, A, push_only=False, pull_only=False, push_pull=True, front_factor=0.05): + """Single-source shortest paths via frontier (dynamic Bellman-Ford) relaxation. + + Each iteration relaxes the edges incident to the current frontier of + improved vertices using either a vector-matrix product (push, vxm) or a + matrix-vector product (pull, mxv); in push_pull mode the cheaper one is + picked by comparing the frontier density against front_factor. The loop + stops when an iteration improves no distance. + + Args: + start: source vertex. + A: weighted adjacency matrix, A[i, j] is the weight of the edge i -> j. + push_only: always use push (vxm) propagation. + pull_only: always use pull (mxv) propagation. + push_pull: pick push or pull per iteration by frontier density. + front_factor: density threshold at or below which push is preferred. + + Returns: + dist, where dist[v] is the shortest path weight from start to v + (INF if v is unreachable). + """ n = A.n_rows if not (push_only or pull_only or push_pull): push_only = True diff --git a/python/algorithms/tc_classic.py b/python/algorithms/tc_classic.py index cf091695f..e8220d5d5 100644 --- a/python/algorithms/tc_classic.py +++ b/python/algorithms/tc_classic.py @@ -1,4 +1,16 @@ +"""Classic (reference) triangle counting on plain Python adjacency structures.""" + + def tc_naive(graph, n): + """Count triangles by enumerating all length-2 walks. + + Args: + graph: adjacency list of an undirected graph (both directions present). + n: number of vertices. + + Returns: + The number of triangles (each 3-cycle is counted once). + """ triangles = 0 for i in range(n): diff --git a/python/algorithms/tc_spla.py b/python/algorithms/tc_spla.py index 5dfdbc43b..0a5d9d2bf 100644 --- a/python/algorithms/tc_spla.py +++ b/python/algorithms/tc_spla.py @@ -1,7 +1,16 @@ +"""Triangle counting using spla sparse primitives.""" + from pyspla import INT, Matrix, Scalar def _strict_lower(A: Matrix) -> Matrix: + """ + Strict lower triangle of an undirected adjacency matrix with unit weights. + + Robust to the storage orientation of A (upper, lower or symmetric) and + to duplicated edges: each undirected edge {i, j} is represented once, + as (max(i, j), min(i, j)). + """ i, j, _ = A.to_lists() edges = sorted({(a, b) if a > b else (b, a) for a, b in zip(i, j) if a != b}) li = [a for a, b in edges] @@ -10,6 +19,16 @@ def _strict_lower(A: Matrix) -> Matrix: def tc_sandia(A: Matrix) -> int: + """ + Triangle count, Sandia algorithm (M.M. Wolf et al., HPEC 2017): + + L = tril(A) strict lower triangle, unit weights + C = L * L (mask L) C[i, j] = number of k with i > k > j and i~k, k~j + t = sigma(C) every triangle is counted exactly once + + A: undirected graph adjacency matrix, any edge orientation. + Edge weights of A are ignored (triangles are counted, not weighted). + """ L = _strict_lower(A) zero = Scalar(INT, 0) C = L.mxmT( @@ -24,10 +43,23 @@ def tc_sandia(A: Matrix) -> int: def tc_spla(A: Matrix) -> int: + """ + Triangle count (default implementation: Sandia algorithm, see tc_sandia). + """ return tc_sandia(A) def tc_spla_mxmT(A: Matrix) -> int: + """ + Triangle count via masked A * A^T product (mirrors C++ spla::tc): + + C = A * A^T (mask A) C[i, j] = number of common neighbors of i, j + that are greater than both + t = sigma(C) every triangle is counted exactly once + + A: upper triangle of the undirected graph (entries with i < j only), + unit weights. + """ zero = Scalar(INT, 0) B = A.mxmT(A, A, op_mult=INT.MULT, op_add=INT.PLUS, op_select=INT.GTZERO, init=zero) return B.reduce(op_reduce=INT.PLUS, init=zero).get() From 0200b74179368ab1211a441b2712148599c6d762 Mon Sep 17 00:00:00 2001 From: Vladimir Kutuev Date: Sat, 28 Nov 2026 20:19:25 +0300 Subject: [PATCH 14/14] docs(python): fix algorithms README - drop the stale venv/pip installation section (the project uses uv; ../README.md documents the current workflow) - correct the 'on GPU' claim: spla is OpenCL-based (GPU, PoCL CPU, or pure-CPU builds) - extend the undirected-graph warning from SSSP to BFS and explain why: the pull step (mxv) walks each edge i -> j backwards, so it is only correct for symmetric graphs; push-only mode is directed-safe - point the examples at files that actually ship (graph.txt, ../tests/data/undirected.mtx) instead of a nonexistent graph.mtx - document the index-base difference (vectors 0-based, Matrix Market 1-based) and the square-graph assumption - replace the doctored --help dump with the real one --- python/algorithms/README.md | 101 +++++++++++++++++++----------------- 1 file changed, 54 insertions(+), 47 deletions(-) diff --git a/python/algorithms/README.md b/python/algorithms/README.md index c21c31cfd..52972a991 100644 --- a/python/algorithms/README.md +++ b/python/algorithms/README.md @@ -1,11 +1,13 @@ # Graph Algorithms with SPLA -This project provides a Python implementation of graph algorithms using sparse -linear algebra primitives from SPLA on GPU +This project provides a Python implementation of graph algorithms using the +sparse linear algebra primitives of SPLA (OpenCL-based: runs on a GPU, on CPU +via PoCL, or with a pure-CPU build). The algorithms are tested in [`../tests/`](../tests/) against classic (pure-Python) reference implementations; see the development instructions in [`../README.md`](../README.md). + --- ## Supported Algorithms @@ -19,52 +21,34 @@ The algorithms are tested in [`../tests/`](../tests/) against classic --- -SSSP should be used with undirected graphs only - -## Installation - -```bash -cd python -python -m venv venv -source venv/bin/activate -pip install -e . -cd algorithms -``` - ---- - ## Usage + ```text -usage: main_spla.py [-h] --algo {bfs,sssp,pr,tc} [-m MATRIX] [-v VECTORS] [-o OUTPUT] [-s START] [-a ALPHA] [-e EPS] +usage: main_spla.py [-h] --algo {bfs,sssp,pr,tc} [-m MATRIX] [-v VECTORS] + [-o OUTPUT] [-s START] [-a ALPHA] [-e EPS] options: -h, --help show this help message and exit --algo {bfs,sssp,pr,tc} - Algorithm to run: - bfs - Breadth-First Search - sssp - Single-Source Shortest Paths - pr - PageRank - tc - Triangle Counting - -m MATRIX, --matrix MATRIX - Path to graph in Matrix Market format (.mtx) - -v VECTORS, --vectors VECTORS + Algorithm to run: bfs - Breadth-First Search, sssp - + Single-Source Shortest Paths, pr - PageRank, tc - + Triangle Counting + -m, --matrix MATRIX Path to graph in Matrix Market format (.mtx) + -v, --vectors VECTORS Path to graph in vectors format (.txt) - -o OUTPUT, --output OUTPUT - Output file path (default: result.txt) - -s START, --start START - Start vertex (used in bfs, sssp; default: 0) - -a ALPHA, --alpha ALPHA - Damping factor (used in pr; default: 0.85) - -e EPS, --eps EPS - Convergence tolerance (used in pr; default: 1e-4) + -o, --output OUTPUT Output file path + -s, --start START Start vertex(default: 0) + -a, --alpha ALPHA Damping factor(default: 0.85) + -e, --eps EPS Convergence tolerance(default: 1e-4) ``` + --- ## Examples ```bash -# BFS -python main_spla.py --algo bfs -m graph.mtx -s 0 -o bfs_result.txt +# BFS (vectors format; graph.txt ships with this directory) +python main_spla.py --algo bfs -v graph.txt -s 0 -o bfs_result.txt # SSSP python main_spla.py --algo sssp -v graph.txt -s 0 -o sssp_result.txt @@ -72,8 +56,8 @@ python main_spla.py --algo sssp -v graph.txt -s 0 -o sssp_result.txt # PageRank python main_spla.py --algo pr -v graph.txt -a 0.85 -e 1e-6 -o pr_result.txt -# Triangle Counting -python main_spla.py --algo tc -m graph.mtx -o tc_result.txt +# Triangle Counting (Matrix Market format) +python main_spla.py --algo tc -m ../tests/data/undirected.mtx -o tc_result.txt ``` --- @@ -82,27 +66,50 @@ python main_spla.py --algo tc -m graph.mtx -o tc_result.txt Two options: -- `-v graph.txt` — Vectors format -- `-m graph.mtx` — Matrix Market format (from https://sparse.tamu.edu/) +- `-v graph.txt` — vectors format, **0-based** indices +- `-m graph.mtx` — Matrix Market format, **1-based** indices per the + specification (converted to 0-based on load); see + [https://sparse.tamu.edu/](https://sparse.tamu.edu/) +Both readers assume a **square** graph: the size `n` is taken as the largest +index (or matrix dimension) seen, and an `n x n` matrix is built. -### graph.txt +### graph.txt (vectors format) + +Three lines of space-separated numbers: row indices, column indices, values. -Example ```text 0 1 2 # I: source vertex indices 1 2 0 # J: target vertex indices -5 3 2 # V: edge weights +5 3 2 # V: edge weights ``` ### graph.mtx (Matrix Market) -Example + ```text %%MatrixMarket matrix coordinate real general -% rows cols nnz -4 4 4 #rows, cols, non-zero values -1 2 1.0 #source vertex, target vertex, weight +4 4 4 +1 2 1.0 2 3 2.0 3 4 3.0 4 1 4.0 -``` \ No newline at end of file +``` + +--- + +## Directed graphs + +The frontier-based algorithms (`bfs`, `sssp`) advance the frontier with either +a **push** step (vector-matrix product) or a **pull** step (matrix-vector +product); in the default `push_pull` mode the cheaper one is picked per +iteration by frontier density. + +The push step follows directed edges correctly, but the pull step walks each +edge `i -> j` backwards (it updates `i` from `j` via the entry `A[i, j]`), so +it is only correct for **undirected** (symmetric) graphs. + +- **Undirected graphs:** all propagation modes work. +- **Directed graphs:** use push-only propagation. `main_spla.py` already does + this for the vectors format; for the Matrix Market format the default + `push_pull` mode is used, so directed graphs should be converted to the + vectors format (or the call changed to `push_only=True`).