Commit 1e90ab6
BUG: numpy 1.16 doesn't support
* Revert "Increase minimum numpy version to 1.19.0 (#1162)"
This reverts commit 149b057.
* Refactor matrix multiplication to use vectorized core_dot_2d
Replaces usage of _core_dot_2d with a new vectorized _core_dot_nd for mixed-type matrix multiplication in _core_dot. Defines _core_dot_nd as a vectorized wrapper around _core_dot_2d, improving code clarity and consistency.
* Change _core_dot_2d from cdef to def and add return type
Refactored _core_dot_2d to be a Python-accessible function with an explicit return type annotation. This improves clarity and allows the function to be used from Python code.
* Remove unused NDArray import and update type hints
NumPy 1.x doesn't support this
* Move _vec_evaluate definition above _ensure_array
Relocated the _vec_evaluate assignment to precede the _ensure_array function for improved code organization and clarity.
* Use bint for boolean variables in matrix.pxi
NumPy 1.x doesn't support bool
---------
Co-authored-by: João Dionísio <57299939+Joao-Dionisio@users.noreply.github.com>@np.vectorize decorator syntax (#1164)1 parent a82bf15 commit 1e90ab6
File tree
4 files changed
+14
-12
lines changed- src/pyscipopt
4 files changed
+14
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
76 | | - | |
77 | 75 | | |
78 | 76 | | |
79 | 77 | | |
| |||
100 | 98 | | |
101 | 99 | | |
102 | 100 | | |
103 | | - | |
| 101 | + | |
104 | 102 | | |
105 | 103 | | |
106 | 104 | | |
| |||
127 | 125 | | |
128 | 126 | | |
129 | 127 | | |
130 | | - | |
131 | | - | |
| 128 | + | |
| 129 | + | |
132 | 130 | | |
133 | 131 | | |
134 | | - | |
| 132 | + | |
135 | 133 | | |
136 | 134 | | |
137 | | - | |
| 135 | + | |
138 | 136 | | |
139 | 137 | | |
140 | 138 | | |
| |||
145 | 143 | | |
146 | 144 | | |
147 | 145 | | |
148 | | - | |
149 | 146 | | |
150 | 147 | | |
151 | 148 | | |
| |||
183 | 180 | | |
184 | 181 | | |
185 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
186 | 190 | | |
187 | 191 | | |
188 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
10735 | 10734 | | |
10736 | 10735 | | |
10737 | 10736 | | |
10738 | | - | |
| 10737 | + | |
10739 | 10738 | | |
10740 | 10739 | | |
10741 | 10740 | | |
| |||
0 commit comments