mirror of
https://github.com/ROCm/jax.git
synced 2025-04-15 19:36:06 +00:00
[x64] make polynomial_test compatible with strict dtype promotion
This commit is contained in:
parent
5236140b9f
commit
15a19969de
@ -97,7 +97,7 @@ def roots(p, *, strip_zeros=True):
|
||||
else:
|
||||
roots = _roots_no_zeros(p)
|
||||
# combine roots and zero roots
|
||||
roots = hstack((roots, zeros(trailing_zeros, p.dtype)))
|
||||
roots = hstack((roots, zeros(trailing_zeros, roots.dtype)))
|
||||
return roots
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user