https://github.com/singularitti/bisectpy.jl
Migrating bisect module from Python to Julia
https://github.com/singularitti/bisectpy.jl
algorithm bisection-search julia julia-package python
Last synced: 3 months ago
JSON representation
Migrating bisect module from Python to Julia
- Host: GitHub
- URL: https://github.com/singularitti/bisectpy.jl
- Owner: singularitti
- License: mit
- Created: 2018-08-23T20:25:14.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-08T20:44:16.000Z (about 4 years ago)
- Last Synced: 2025-04-15T09:11:31.484Z (3 months ago)
- Topics: algorithm, bisection-search, julia, julia-package, python
- Language: Julia
- Homepage: https://singularitti.github.io/BisectPy.jl/
- Size: 158 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BisectPy: array bisection algorithm
[](https://singularitti.github.io/BisectPy.jl/stable)
[](https://singularitti.github.io/BisectPy.jl/dev)
[](https://github.com/singularitti/BisectPy.jl/actions)
[](https://travis-ci.com/singularitti/BisectPy.jl)
[](https://ci.appveyor.com/project/singularitti/BisectPy-jl)
[](https://cloud.drone.io/singularitti/BisectPy.jl)
[](https://cirrus-ci.com/github/singularitti/BisectPy.jl)
[](https://codecov.io/gh/singularitti/BisectPy.jl)
[](https://coveralls.io/github/singularitti/BisectPy.jl?branch=master)
[](https://open.vscode.dev/organization/repository)This is a package that migrates Python's [`bisect` module](https://docs.python.org/3.7/library/bisect.html#module-bisect) to Jula.
Note that since Julia's array index starts from `1` but Python starts from `0`, the returned index of either `bisect_left`
or `bisect_right` is always their Python's correspondence plus `1`!Also, the behavior of Python's `a[:i]` where `a` is an array is also different from Julia: Julia array includes the `i`th item
but Python does not!