Download tasks/swe-next-732a97bd7982a757ea2d/tests/source/docs/mathutils.rst from FineEnvs/repo2rlenv-swe-next: direct link, hf CLI and curl.
- Browser
- Download file 783 Bytes
-
https://huggingface.co/datasets/FineEnvs/repo2rlenv-swe-next/resolve/a6b1edf56ccadb722f34c40dde05944517fc7efe/tasks/swe-next-732a97bd7982a757ea2d/tests/source/docs/mathutils.rst
- Command line
-
hf download hf://datasets/FineEnvs/repo2rlenv-swe-next@a6b1edf56ccadb722f34c40dde05944517fc7efe/tasks/swe-next-732a97bd7982a757ea2d/tests/source/docs/mathutils.rst
-
curl -L -o mathutils.rst https://huggingface.co/datasets/FineEnvs/repo2rlenv-swe-next/resolve/a6b1edf56ccadb722f34c40dde05944517fc7efe/tasks/swe-next-732a97bd7982a757ea2d/tests/source/docs/mathutils.rst
783 Bytes
| ``mathutils`` - Mathematical functions | |
| ====================================== | |
| .. automodule:: boltons.mathutils | |
| .. autoclass:: boltons.mathutils.Bits | |
| :members: | |
| :undoc-members: | |
| Alternative Rounding Functions | |
| ------------------------------ | |
| .. autofunction:: boltons.mathutils.clamp | |
| .. autofunction:: boltons.mathutils.ceil | |
| .. autofunction:: boltons.mathutils.floor | |
| Note: :func:`ceil` and :func:`floor` functions are based on `this example`_ using from the | |
| module in the standard library. Refer to this `StackOverflow Answer`_ for further information regarding | |
| the performance impact of this approach. | |
| .. _this example: https://docs.python.org/3/library/bisect.html#searching-sorted-lists | |
| .. _StackOverflow Answer: http://stackoverflow.com/a/12141511/811740 | |