Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating a high accuracy results in TypeError #25

Closed
diehlpk opened this issue Jun 3, 2020 · 0 comments
Closed

Generating a high accuracy results in TypeError #25

diehlpk opened this issue Jun 3, 2020 · 0 comments

Comments

@diehlpk
Copy link
Contributor

diehlpk commented Jun 3, 2020

GCC 10.1.1 20200507 (Red Hat 10.1.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import findiff
>>> coefs = findiff.coefficients(deriv=1, acc=15)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/diehlpk/.local/lib/python3.8/site-packages/findiff/coefs.py", line 42, in coefficients
    ret["forward"] = _calc_coef(0, num_coef - 1, deriv)
  File "/home/diehlpk/.local/lib/python3.8/site-packages/findiff/coefs.py", line 58, in _calc_coef
    "coefficients": np.linalg.solve(matrix, rhs),
  File "<__array_function__ internals>", line 5, in solve
  File "/home/diehlpk/.local/lib/python3.8/site-packages/numpy/linalg/linalg.py", line 399, in solve
    r = gufunc(a, b, signature=signature, extobj=extobj)
TypeError: No loop matching the specified signature and casting was found for ufunc solve1
@maroba maroba closed this as completed in 7ec4cd8 Jul 10, 2020
maroba added a commit that referenced this issue Jul 10, 2020
Add dtype to matrix and vector (closes #25)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant