Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 10 days 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-07-08T20:44:16.000Z (over 3 years ago)
- Last Synced: 2024-09-10T00:14:05.606Z (2 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: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BisectPy: array bisection algorithm
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://singularitti.github.io/BisectPy.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://singularitti.github.io/BisectPy.jl/dev)
[![Build Status](https://github.com/singularitti/BisectPy.jl/workflows/CI/badge.svg)](https://github.com/singularitti/BisectPy.jl/actions)
[![Build Status](https://travis-ci.com/singularitti/BisectPy.jl.svg?branch=master)](https://travis-ci.com/singularitti/BisectPy.jl)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/singularitti/BisectPy.jl?svg=true)](https://ci.appveyor.com/project/singularitti/BisectPy-jl)
[![Build Status](https://cloud.drone.io/api/badges/singularitti/BisectPy.jl/status.svg)](https://cloud.drone.io/singularitti/BisectPy.jl)
[![Build Status](https://api.cirrus-ci.com/github/singularitti/BisectPy.jl.svg)](https://cirrus-ci.com/github/singularitti/BisectPy.jl)
[![Coverage](https://codecov.io/gh/singularitti/BisectPy.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/singularitti/BisectPy.jl)
[![Coverage](https://coveralls.io/repos/github/singularitti/BisectPy.jl/badge.svg?branch=master)](https://coveralls.io/github/singularitti/BisectPy.jl?branch=master)
[![Open in Visual Studio Code](https://open.vscode.dev/badges/open-in-vscode.svg)](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!