Download ScaleDF_rebuttal/python_dedup_pkgs/sympy/testing/matrices.py from VideoUFO/ResearchData_P1: direct link, hf CLI and curl.
- Browser
- Download file 216 Bytes
-
https://huggingface.co/datasets/VideoUFO/ResearchData_P1/resolve/main/ScaleDF_rebuttal/python_dedup_pkgs/sympy/testing/matrices.py
- Command line
-
hf download hf://datasets/VideoUFO/ResearchData_P1/ScaleDF_rebuttal/python_dedup_pkgs/sympy/testing/matrices.py
-
curl -L -o matrices.py https://huggingface.co/datasets/VideoUFO/ResearchData_P1/resolve/main/ScaleDF_rebuttal/python_dedup_pkgs/sympy/testing/matrices.py
216 Bytes
| def allclose(A, B, rtol=1e-05, atol=1e-08): | |
| if len(A) != len(B): | |
| return False | |
| for x, y in zip(A, B): | |
| if abs(x-y) > atol + rtol * max(abs(x), abs(y)): | |
| return False | |
| return True | |