polybench 0.3.0__tar.gz → 0.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. {polybench-0.3.0 → polybench-0.3.1}/LICENSE +1 -1
  2. {polybench-0.3.0 → polybench-0.3.1}/PKG-INFO +14 -14
  3. {polybench-0.3.0 → polybench-0.3.1}/README.md +5 -5
  4. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/rings/build.gradle +3 -3
  5. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/symbolica/Cargo.lock +2 -2
  6. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/symbolica/Cargo.toml +1 -1
  7. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/symbolica/src/main.rs +5 -10
  8. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/symbolica.py +1 -5
  9. {polybench-0.3.0 → polybench-0.3.1}/pyproject.toml +6 -6
  10. {polybench-0.3.0 → polybench-0.3.1}/polybench/__init__.py +0 -0
  11. {polybench-0.3.0 → polybench-0.3.1}/polybench/__main__.py +0 -0
  12. {polybench-0.3.0 → polybench-0.3.1}/polybench/main.py +0 -0
  13. {polybench-0.3.0 → polybench-0.3.1}/polybench/plot.py +0 -0
  14. {polybench-0.3.0 → polybench-0.3.1}/polybench/poly.py +0 -0
  15. {polybench-0.3.0 → polybench-0.3.1}/polybench/prob.py +0 -0
  16. {polybench-0.3.0 → polybench-0.3.1}/polybench/py.typed +0 -0
  17. {polybench-0.3.0 → polybench-0.3.1}/polybench/solver.py +0 -0
  18. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/__init__.py +0 -0
  19. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/fer.py +0 -0
  20. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/flint/CMakeLists.txt +0 -0
  21. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/flint/cmake/init-vcpkg.cmake +0 -0
  22. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/flint/main.c +0 -0
  23. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/flint/vcpkg.json +0 -0
  24. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/flint/version.h.in +0 -0
  25. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/flint.py +0 -0
  26. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/form.py +0 -0
  27. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/mma.py +0 -0
  28. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/reform/Cargo.lock +0 -0
  29. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/reform/Cargo.toml +0 -0
  30. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/reform/src/main.rs +0 -0
  31. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/reform.py +0 -0
  32. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/rings/config/greclipse.properties +0 -0
  33. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/rings/gradle/wrapper/gradle-wrapper.jar +0 -0
  34. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/rings/gradle/wrapper/gradle-wrapper.properties +0 -0
  35. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/rings/gradlew +0 -0
  36. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/rings/gradlew.bat +0 -0
  37. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/rings/src/main/java/com/github/tueda/polybench/rings/App.java +0 -0
  38. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/rings.py +0 -0
  39. {polybench-0.3.0 → polybench-0.3.1}/polybench/solvers/singular.py +0 -0
  40. {polybench-0.3.0 → polybench-0.3.1}/polybench/util.py +0 -0
  41. {polybench-0.3.0 → polybench-0.3.1}/polybench/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020-2024 Takahiro Ueda
3
+ Copyright (c) 2020-2025 Takahiro Ueda
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,8 +1,7 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: polybench
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Multivariate polynomial arithmetic benchmark tests.
5
- Home-page: https://github.com/tueda/polybench
6
5
  License: MIT
7
6
  Keywords: benchmark,mathematics,multivariate-polynomials
8
7
  Author: Takahiro Ueda
@@ -19,6 +18,7 @@ Classifier: Programming Language :: Python :: 3.9
19
18
  Classifier: Programming Language :: Python :: 3.10
20
19
  Classifier: Programming Language :: Python :: 3.11
21
20
  Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
22
  Classifier: Topic :: Scientific/Engineering :: Mathematics
23
23
  Classifier: Topic :: System :: Benchmark
24
24
  Requires-Dist: colorama (>=0.4.5,<0.5.0)
@@ -26,21 +26,21 @@ Requires-Dist: colorlog (>=6.8.2,<7.0.0)
26
26
  Requires-Dist: importlib-metadata (>=4.8.3,<5.0.0)
27
27
  Requires-Dist: importlib-resources (>=5.4.0,<6.0.0)
28
28
  Requires-Dist: kiwisolver (>=1.3.1,<1.4.0) ; python_full_version >= "3.6.1" and python_full_version < "3.7.0"
29
- Requires-Dist: kiwisolver (>=1.4.5,<2.0.0) ; python_version >= "3.7" and python_version < "3.13"
29
+ Requires-Dist: kiwisolver (>=1.4.5,<2.0.0) ; python_version >= "3.7" and python_version < "3.14"
30
30
  Requires-Dist: matplotlib (>=3.3.4,<3.4.0) ; python_full_version >= "3.6.1" and python_full_version < "3.7.0"
31
31
  Requires-Dist: matplotlib (>=3.5.3,<3.6.0) ; python_version >= "3.7" and python_version < "3.11"
32
- Requires-Dist: matplotlib (>=3.9.0,<4.0.0) ; python_version >= "3.11" and python_version < "3.13"
32
+ Requires-Dist: matplotlib (>=3.9.0,<4.0.0) ; python_version >= "3.11" and python_version < "3.14"
33
33
  Requires-Dist: numpy (>=1.19.5,<1.20.0) ; python_full_version >= "3.6.1" and python_full_version < "3.7.0"
34
34
  Requires-Dist: numpy (>=1.21.6,<1.22.0) ; python_version >= "3.7" and python_version < "3.11"
35
- Requires-Dist: numpy (>=2.0.0,<3.0.0) ; python_version >= "3.11" and python_version < "3.13"
35
+ Requires-Dist: numpy (>=2.0.0,<3.0.0) ; python_version >= "3.11" and python_version < "3.14"
36
36
  Requires-Dist: pandas (>=1.1.5,<1.2.0) ; python_full_version >= "3.6.1" and python_full_version < "3.7.1"
37
37
  Requires-Dist: pandas (>=1.3.5,<1.4.0) ; python_full_version >= "3.7.1" and python_version < "3.11"
38
- Requires-Dist: pandas (>=2.2.2,<3.0.0) ; python_version >= "3.11" and python_version < "3.13"
38
+ Requires-Dist: pandas (>=2.2.2,<3.0.0) ; python_version >= "3.11" and python_version < "3.14"
39
39
  Requires-Dist: pretty-errors (>=1.2.25,<2.0.0)
40
40
  Requires-Dist: psutil (>=6.0.0,<7.0.0)
41
41
  Requires-Dist: py-cpuinfo (>=9.0.0,<10.0.0)
42
- Requires-Dist: symengine (>=0.10.0,<0.11.0) ; python_version >= "3.7" and python_version < "3.8"
43
- Requires-Dist: symengine (>=0.11.0,<0.12.0) ; python_version >= "3.8" and python_version < "3.13"
42
+ Requires-Dist: symengine (>=0.10.0,<0.11.0) ; python_version == "3.7"
43
+ Requires-Dist: symengine (>=0.13.0,<0.14.0) ; python_version >= "3.8" and python_version < "3.14"
44
44
  Requires-Dist: symengine (>=0.8.1,<0.9.0) ; python_full_version >= "3.6.1" and python_full_version < "3.7.0"
45
45
  Requires-Dist: toml (>=0.10.2,<0.11.0)
46
46
  Requires-Dist: typing-extensions (>=4.1.1,<5.0.0)
@@ -160,14 +160,14 @@ Example
160
160
  | FLINT | flint 2.9.0, cc (GNU) 10.5.0 |
161
161
  | FORM | FORM 4.3.1 (Apr 11 2023, v4.3.1) 64-bits |
162
162
  | Mathematica | 14.1.0 for Linux x86 (64-bit) (July 22, 2024) |
163
- | reFORM | 0.1.0-fix-serialize, rustc 1.81.0 (eeb90cda1 2024-09-04) |
163
+ | reFORM | 0.1.0-fix-serialize, rustc 1.84.1 (e71f9a9a9 2025-01-27) |
164
164
  | Rings | 2.5.8, JVM: 11.0.20.1 (Ubuntu 11.0.20.1+1-post-Ubuntu-0ubuntu120.04) |
165
- | Singular | Singular for x86_64-Linux version 4.4.0 (44002, 64 bit) May 29 2024 14:14:10 |
166
- | Symbolica | 0.11.0, rustc 1.81.0 (eeb90cda1 2024-09-04) |
165
+ | Singular | Singular for x86_64-Linux version 4.4.1 (44100, 64 bit) Jan 2025 |
166
+ | Symbolica | 0.15.0, rustc 1.84.1 (e71f9a9a9 2025-01-27) |
167
167
 
168
- ![nontrivial-gcd](https://raw.githubusercontent.com/tueda/polybench-result/refs/heads/main/0.3.0/05/0002.figures/summary.png)
168
+ ![nontrivial-gcd](https://raw.githubusercontent.com/tueda/polybench-result/refs/heads/main/0.3.1/05/0002.figures/summary.png)
169
169
 
170
- ![nontrivial-factor](https://raw.githubusercontent.com/tueda/polybench-result/refs/heads/main/0.3.0/05/0004.figures/summary.png)
170
+ ![nontrivial-factor](https://raw.githubusercontent.com/tueda/polybench-result/refs/heads/main/0.3.1/05/0004.figures/summary.png)
171
171
 
172
172
  Additional benchmark results are available [here](https://github.com/tueda/polybench-result/tree/main).
173
173
 
@@ -111,14 +111,14 @@ Example
111
111
  | FLINT | flint 2.9.0, cc (GNU) 10.5.0 |
112
112
  | FORM | FORM 4.3.1 (Apr 11 2023, v4.3.1) 64-bits |
113
113
  | Mathematica | 14.1.0 for Linux x86 (64-bit) (July 22, 2024) |
114
- | reFORM | 0.1.0-fix-serialize, rustc 1.81.0 (eeb90cda1 2024-09-04) |
114
+ | reFORM | 0.1.0-fix-serialize, rustc 1.84.1 (e71f9a9a9 2025-01-27) |
115
115
  | Rings | 2.5.8, JVM: 11.0.20.1 (Ubuntu 11.0.20.1+1-post-Ubuntu-0ubuntu120.04) |
116
- | Singular | Singular for x86_64-Linux version 4.4.0 (44002, 64 bit) May 29 2024 14:14:10 |
117
- | Symbolica | 0.11.0, rustc 1.81.0 (eeb90cda1 2024-09-04) |
116
+ | Singular | Singular for x86_64-Linux version 4.4.1 (44100, 64 bit) Jan 2025 |
117
+ | Symbolica | 0.15.0, rustc 1.84.1 (e71f9a9a9 2025-01-27) |
118
118
 
119
- ![nontrivial-gcd](https://raw.githubusercontent.com/tueda/polybench-result/refs/heads/main/0.3.0/05/0002.figures/summary.png)
119
+ ![nontrivial-gcd](https://raw.githubusercontent.com/tueda/polybench-result/refs/heads/main/0.3.1/05/0002.figures/summary.png)
120
120
 
121
- ![nontrivial-factor](https://raw.githubusercontent.com/tueda/polybench-result/refs/heads/main/0.3.0/05/0004.figures/summary.png)
121
+ ![nontrivial-factor](https://raw.githubusercontent.com/tueda/polybench-result/refs/heads/main/0.3.1/05/0004.figures/summary.png)
122
122
 
123
123
  Additional benchmark results are available [here](https://github.com/tueda/polybench-result/tree/main).
124
124
 
@@ -1,12 +1,12 @@
1
1
  plugins {
2
2
  id 'application'
3
- id 'com.diffplug.spotless' version '5.8.2'
4
- id 'com.github.ben-manes.versions' version '0.36.0'
3
+ id 'com.diffplug.spotless' version '7.0.2'
4
+ id 'com.github.ben-manes.versions' version '0.52.0'
5
5
  id 'ru.vyarus.quality' version '4.4.0'
6
6
  }
7
7
 
8
8
  def versions = [
9
- checkstyle: '8.38',
9
+ checkstyle: '10.21.2',
10
10
  rings: '2.5.8',
11
11
  ]
12
12
 
@@ -366,9 +366,9 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
366
366
 
367
367
  [[package]]
368
368
  name = "symbolica"
369
- version = "0.11.0"
369
+ version = "0.15.1"
370
370
  source = "registry+https://github.com/rust-lang/crates.io-index"
371
- checksum = "e9d742dabb0b6b3f5e4a324ec9f836e8bb5ef9e5675e80e78583a51fe4c1d8b8"
371
+ checksum = "ef24412afb257fe810c4084213deba06349d8c581aec63c876c84c3b2b3c4497"
372
372
  dependencies = [
373
373
  "ahash",
374
374
  "append-only-vec",
@@ -5,4 +5,4 @@ authors = ["Takahiro Ueda <t.ueda.od@juntendo.ac.jp>"]
5
5
  edition = "2021"
6
6
 
7
7
  [dependencies]
8
- symbolica = "0.11.0"
8
+ symbolica = "0.15.1"
@@ -3,12 +3,11 @@ use std::fs::File;
3
3
  use std::io::{BufRead, BufReader, LineWriter, Write};
4
4
  use std::sync::Arc;
5
5
  use std::time::Instant;
6
- use symbolica::atom::Atom;
7
6
  use symbolica::domains::integer::Z;
8
7
  use symbolica::poly::factor::Factorize;
9
8
  use symbolica::poly::polynomial::MultivariatePolynomial;
10
9
  use symbolica::poly::Variable;
11
- use symbolica::state::State;
10
+ use symbolica::{atom::AtomCore, parse, symbol};
12
11
 
13
12
  fn main() {
14
13
  let args: Vec<_> = env::args().collect();
@@ -22,12 +21,8 @@ fn main() {
22
21
 
23
22
  let mut output = LineWriter::new(output_file);
24
23
 
25
- let var_map: Arc<Vec<Variable>> = Arc::new(
26
- variables
27
- .iter()
28
- .map(|x| State::get_symbol(x).into())
29
- .collect(),
30
- );
24
+ let var_map: Arc<Vec<Variable>> =
25
+ Arc::new(variables.iter().map(|x| symbol!(x).into()).collect());
31
26
 
32
27
  for line in BufReader::new(input_file).lines() {
33
28
  let line = line.unwrap();
@@ -97,8 +92,8 @@ fn main() {
97
92
  }
98
93
  }
99
94
 
100
- fn get_poly(expr: &str, var_map: &Arc<Vec<Variable>>) -> MultivariatePolynomial<Z> {
101
- Atom::parse(expr)
95
+ fn get_poly(expr: &str, var_map: &Arc<Vec<Variable>>) -> MultivariatePolynomial<Z, u8> {
96
+ parse!(expr)
102
97
  .unwrap()
103
98
  .to_polynomial(&Z, Some(var_map.clone()))
104
99
  }
@@ -38,11 +38,7 @@ class SymbolicaSolver(Solver):
38
38
  args = [variables, str(self.problem_file), str(log_file)]
39
39
  if not self.run(
40
40
  [
41
- *self.cargo_command,
42
- "run",
43
- f"--manifest-path={self._build_dir}/Cargo.toml",
44
- "--release",
45
- "--",
41
+ f"{self._build_dir}/target/release/polybench-symbolica",
46
42
  *args,
47
43
  ]
48
44
  ):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "polybench"
3
- version = "0.3.0"
3
+ version = "0.3.1"
4
4
  description = "Multivariate polynomial arithmetic benchmark tests."
5
5
  license = "MIT"
6
6
  authors = ["Takahiro Ueda <t.ueda.od@juntendo.ac.jp>"]
@@ -30,27 +30,27 @@ typing-extensions = "^4.1.1" # 4.2.0 requires python >= 3.7
30
30
 
31
31
  kiwisolver = [
32
32
  { version = "~1.3.1", python = "~3.6.1" },
33
- { version = "^1.4.5", python = ">=3.7,<3.13" },
33
+ { version = "^1.4.5", python = ">=3.7,<3.14" },
34
34
  ]
35
35
  symengine = [
36
36
  { version = "~0.8.1", python = "~3.6.1" },
37
37
  { version = "~0.10.0", python = ">=3.7,<3.8" },
38
- { version = "^0.11.0", python = ">=3.8,<3.13" },
38
+ { version = "^0.13.0", python = ">=3.8,<3.14" },
39
39
  ]
40
40
  matplotlib = [
41
41
  { version = "~3.3.4", python = "~3.6.1" },
42
42
  { version = "~3.5.3", python = ">=3.7,<3.11" },
43
- { version = "^3.9.0", python = ">=3.11,<3.13" },
43
+ { version = "^3.9.0", python = ">=3.11,<3.14" },
44
44
  ]
45
45
  numpy = [
46
46
  { version = "~1.19.5", python = "~3.6.1" },
47
47
  { version = "~1.21.6", python = ">=3.7,<3.11" },
48
- { version = "^2.0.0", python = ">=3.11,<3.13" },
48
+ { version = "^2.0.0", python = ">=3.11,<3.14" },
49
49
  ]
50
50
  pandas = [
51
51
  { version = "~1.1.5", python = ">=3.6.1,<3.7.1" },
52
52
  { version = "~1.3.5", python = ">=3.7.1,<3.11" },
53
- { version = "^2.2.2", python = ">=3.11,<3.13" },
53
+ { version = "^2.2.2", python = ">=3.11,<3.14" },
54
54
  ]
55
55
 
56
56
  [tool.poetry.dev-dependencies]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes