Skip to content

Commit

Permalink
Run pre-commit on all files
Browse files Browse the repository at this point in the history
  • Loading branch information
mhostetter committed Nov 4, 2023
1 parent cc57381 commit 8d18d3c
Show file tree
Hide file tree
Showing 21 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
"editor.rulers": [
120
],
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ In [12]: x
Out[12]: GF([236, 87, 38, 112], order=3^5)

In [13]: GF.repr("poly"); x
Out[13]:
Out[13]:
GF([2α^4 + 2α^3 + 2α^2 + 2, α^4 + 2α,
α^3 + α^2 + 2, α^4 + α^3 + α + 1], order=3^5)

Expand Down
2 changes: 1 addition & 1 deletion docs/_templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
<a href="{{ '../' ~ base_url}}">
<strong>Click here to go to latest.</strong>
</a>
{% endblock %}
{% endblock %}
2 changes: 1 addition & 1 deletion docs/release-notes/v0.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ tocdepth: 2
>>> for d in range(3, 10):
... bch = galois.BCH(5**2 - 1, d=d, field=GF)
... print(repr(bch))
...
...
<BCH Code: [24, 20, 3] over GF(5)>
<BCH Code: [24, 18, 4] over GF(5)>
<BCH Code: [24, 16, 5] over GF(5)>
Expand Down
18 changes: 9 additions & 9 deletions docs/release-notes/v0.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ tocdepth: 2
This speeds up the creation of large finite fields. ([#452](https://github.com/mhostetter/galois/pull/452))
```ipython
In [1]: import galois
# v0.3.1
In [2]: %time galois.factors(2**256 - 1)
# Took forever...
# v0.3.2
In [2]: %time galois.factors(2**256 - 1)
Wall time: 1 ms
Expand All @@ -135,12 +135,12 @@ tocdepth: 2
- Added speed-up when factoring powers of small primes. This speeds up the creation of large finite fields. ([#454](https://github.com/mhostetter/galois/pull/454))
```ipython
In [1]: import galois
# v0.3.1
In [2]: %time galois.factors(2**471)
Wall time: 4.18 s
Out[2]: ([2], [471])
# v0.3.2
In [2]: %time galois.factors(2**471)
Wall time: 2 ms
Expand Down Expand Up @@ -177,13 +177,13 @@ tocdepth: 2
`irreducible_poly()` when `terms="min"` and `method="min"`. ([#462](https://github.com/mhostetter/galois/pull/462))
```ipython
In [1]: import galois
# Manual search
In [2]: %time galois.irreducible_poly(2, 1001)
CPU times: user 6.8 s, sys: 0 ns, total: 6.8 s
Wall time: 6.81 s
Out[2]: Poly(x^1001 + x^5 + x^3 + x + 1, GF(2))
# With the database
In [3]: %time galois.irreducible_poly(2, 1001, terms="min")
CPU times: user 745 µs, sys: 0 ns, total: 745 µs
Expand All @@ -194,15 +194,15 @@ tocdepth: 2
calculations for a given polynomial is only incurred once. ([#470](https://github.com/mhostetter/galois/pull/470))
```ipython
In [1]: import galois
In [2]: f = galois.Poly.Str("x^1001 + x^17 + 1"); f
Out[2]: Poly(x^1001 + x^17 + 1, GF(2))
In [3]: %time f.is_irreducible()
CPU times: user 1.05 s, sys: 3.47 ms, total: 1.05 s
Wall time: 1.06 s
Out[3]: True
In [4]: %time f.is_irreducible()
CPU times: user 57 µs, sys: 30 µs, total: 87 µs
Wall time: 68.2 µs
Expand Down
2 changes: 1 addition & 1 deletion tests/fields/data/GF(109987^4)/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
100525,
3
]
}
}
2 changes: 1 addition & 1 deletion tests/fields/data/GF(2)/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
1,
1
]
}
}
2 changes: 1 addition & 1 deletion tests/fields/data/GF(2147483647)/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
1,
2147483640
]
}
}
2 changes: 1 addition & 1 deletion tests/fields/data/GF(2^100)/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@
0,
1
]
}
}
2 changes: 1 addition & 1 deletion tests/fields/data/GF(2^2)/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
1,
1
]
}
}
2 changes: 1 addition & 1 deletion tests/fields/data/GF(2^3)/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
1,
1
]
}
}
2 changes: 1 addition & 1 deletion tests/fields/data/GF(2^32)/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
0,
1
]
}
}
2 changes: 1 addition & 1 deletion tests/fields/data/GF(2^8)/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
0,
1
]
}
}
2 changes: 1 addition & 1 deletion tests/fields/data/GF(2^8, 283, 19)/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
1,
1
]
}
}
2 changes: 1 addition & 1 deletion tests/fields/data/GF(31)/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
1,
28
]
}
}
2 changes: 1 addition & 1 deletion tests/fields/data/GF(3191)/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
1,
3180
]
}
}
2 changes: 1 addition & 1 deletion tests/fields/data/GF(36893488147419103183)/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
1,
36893488147419103180
]
}
}
2 changes: 1 addition & 1 deletion tests/fields/data/GF(5)/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
1,
3
]
}
}
2 changes: 1 addition & 1 deletion tests/fields/data/GF(7)/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
1,
4
]
}
}
2 changes: 1 addition & 1 deletion tests/fields/data/GF(7^3)/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
0,
4
]
}
}
2 changes: 1 addition & 1 deletion tests/fields/data/GF(7^3, 643, 244)/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
0,
6
]
}
}

0 comments on commit 8d18d3c

Please sign in to comment.