Skip to content

Commit

Permalink
Rename _overrides.py to _helper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mhostetter committed Aug 19, 2022
1 parent a20bcfc commit d2c458a
Show file tree
Hide file tree
Showing 21 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion galois/_codes/_bch.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

from .._domains._function import Function
from .._fields import Field, FieldArray, GF2
from .._helper import set_module
from .._lfsr import berlekamp_massey_jit
from .._overrides import set_module
from .._polys import Poly, matlab_primitive_poly
from .._polys._dense import roots_jit, divmod_jit
from .._prime import factors
Expand Down
2 changes: 1 addition & 1 deletion galois/_codes/_cyclic.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import numpy as np

from .._fields import FieldArray
from .._overrides import set_module
from .._helper import set_module
from .._polys import Poly

__all__ = ["poly_to_generator_matrix", "roots_to_parity_check_matrix"]
Expand Down
2 changes: 1 addition & 1 deletion galois/_codes/_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import numpy as np

from .._fields import FieldArray
from .._overrides import set_module
from .._helper import set_module

__all__ = ["generator_to_parity_check_matrix", "parity_check_to_generator_matrix"]

Expand Down
2 changes: 1 addition & 1 deletion galois/_codes/_reed_solomon.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

from .._domains._function import Function
from .._fields import Field, FieldArray
from .._helper import set_module
from .._lfsr import berlekamp_massey_jit
from .._overrides import set_module
from .._polys import Poly, matlab_primitive_poly
from .._polys._dense import divmod_jit, roots_jit, evaluate_elementwise_jit
from .._prime import factors
Expand Down
2 changes: 1 addition & 1 deletion galois/_domains/_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import numpy as np

from .._overrides import set_module, SPHINX_BUILD
from .._helper import set_module, SPHINX_BUILD

from ._function import FunctionMixin
from ._linalg import LinalgFunctionMixin
Expand Down
2 changes: 1 addition & 1 deletion galois/_fields/_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import numpy as np

from .._domains import Array, _linalg
from .._overrides import set_module, extend_docstring, SPHINX_BUILD
from .._helper import set_module, extend_docstring, SPHINX_BUILD
from .._polys import Poly
from .._polys._conversions import integer_to_poly, str_to_integer, poly_to_str
from .._prime import divisors
Expand Down
2 changes: 1 addition & 1 deletion galois/_fields/_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from typing import Union, Optional, Type
from typing_extensions import Literal

from .._helper import set_module
from .._modular import primitive_root, is_primitive_root
from .._overrides import set_module
from .._polys import Poly, conway_poly
from .._prime import factors
from ..typing import PolyLike
Expand Down
2 changes: 1 addition & 1 deletion galois/_fields/_gf2.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from .._domains._lookup import add_ufunc, negative_ufunc, subtract_ufunc, multiply_ufunc, reciprocal_ufunc, divide_ufunc, power_ufunc, log_ufunc, sqrt_ufunc
from .._domains._ufunc import UFuncMixin
from .._overrides import set_module
from .._helper import set_module

from ._array import FieldArray

Expand Down
2 changes: 1 addition & 1 deletion galois/_fields/_primitive_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from typing import List
from typing_extensions import Literal

from .._helper import set_module
from .._modular import totatives
from .._overrides import set_module
from .._polys import Poly
from .._prime import factors
from ..typing import PolyLike
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion galois/_lfsr.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from ._domains._function import Function
from ._fields import FieldArray
from ._overrides import set_module
from ._helper import set_module
from ._polys import Poly
from .typing import ArrayLike

Expand Down
2 changes: 1 addition & 1 deletion galois/_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import numpy as np

from ._overrides import set_module
from ._helper import set_module

__all__ = ["isqrt", "iroot", "ilog"]

Expand Down
2 changes: 1 addition & 1 deletion galois/_modular.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

import numpy as np

from ._helper import set_module
from ._math import lcm
from ._overrides import set_module
from ._prime import factors

__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion galois/_ntt.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import numpy as np

from ._fields import Field, FieldArray
from ._overrides import set_module
from ._helper import set_module
from ._prime import is_prime
from .typing import ArrayLike

Expand Down
2 changes: 1 addition & 1 deletion galois/_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing import Dict, Generator, Any
from typing_extensions import Literal

from ._overrides import set_module
from ._helper import set_module

__all__ = ["set_printoptions", "get_printoptions", "printoptions"]

Expand Down
2 changes: 1 addition & 1 deletion galois/_polymorphic.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

import numpy as np

from ._helper import set_module
from ._math import gcd as int_gcd
from ._math import egcd as int_egcd
from ._math import lcm as int_lcm
from ._math import prod as int_prod
from ._overrides import set_module
from ._polys import Poly
from ._polys._functions import gcd as poly_gcd
from ._polys._functions import egcd as poly_egcd
Expand Down
2 changes: 1 addition & 1 deletion galois/_polys/_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import numpy as np

from .._domains import Array
from .._overrides import set_module
from .._helper import set_module

from ._poly import Poly

Expand Down
2 changes: 1 addition & 1 deletion galois/_polys/_irreducible.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import numpy as np

from .._domains import _factory
from .._overrides import set_module
from .._helper import set_module
from .._prime import is_prime_power

from ._poly import Poly
Expand Down
2 changes: 1 addition & 1 deletion galois/_polys/_poly.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import numpy as np

from .._domains import Array, _factory
from .._overrides import set_module
from .._helper import set_module
from .._prime import factors
from ..typing import ElementLike, ArrayLike, PolyLike

Expand Down
2 changes: 1 addition & 1 deletion galois/_polys/_primitive.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from .._domains import _factory
from .._databases import ConwayPolyDatabase
from .._overrides import set_module
from .._helper import set_module
from .._prime import is_prime, is_prime_power

from ._poly import Poly
Expand Down
2 changes: 1 addition & 1 deletion galois/_prime.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

import numpy as np

from ._helper import set_module
from ._math import prod, isqrt, iroot, ilog
from ._overrides import set_module

__all__ = [
"primes", "kth_prime", "prev_prime", "next_prime", "random_prime", "mersenne_exponents", "mersenne_primes",
Expand Down

0 comments on commit d2c458a

Please sign in to comment.