Help: Reading error msg #589
Unanswered
DuckDackRun
asked this question in
Q&A
Replies: 1 comment
-
It's impossible to know without more context. But the error is saying the value you are trying to assign to a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a line, which I call very frequently and at some point, strangely the multiplication doesn't work. Does anyone can explain me the error, it seems as some overflow in the finite field. (memo, weights stores GF elements)
memo[length][rest_set][v] += weights[edge] * memo[length - 1][
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/galois/_domains/_array.py", line 476, in mul
return super().mul(other)
^^^^^^^^^^^^^^^^^^^^^^
/galois/_domains/_ufunc.py", line 689, in array_ufunc
return getattr(field, field._OVERRIDDEN_UFUNCS[ufunc])(ufunc, method, inputs, kwargs, meta)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/galois/_domains/_ufunc.py", line 404, in call
output = self._view_output_as_field(output, self.field, meta["dtype"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^/galois/_domains/_ufunc.py", line 330, in _view_output_as_field
return field(output, dtype=dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/fedored/.local/lib/python3.12/site-packages/galois/_fields/_array.py", line 70, in new
return super().new(cls, x, dtype, copy, order, ndmin)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/fedored/.local/lib/python3.12/site-packages/galois/_domains/_array.py", line 55, in new
x = cls._verify_array_like_types_and_values(x)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/galois/_fields/_array.py", line 129, in _verify_array_like_types_and_values
cls._verify_scalar_value(x)
File "/home/fedored/.local/lib/python3.12/site-packages/galois/_fields/_array.py", line 168, in _verify_scalar_value
raise ValueError(f"{cls.name} scalars must be in
0 <= x < {cls.order}
, not {scalar}.")ValueError: GF(2^63) scalars must be in
0 <= x < 9223372036854775808
, not -2171649381034003836.Beta Was this translation helpful? Give feedback.
All reactions