Skip to main content

Newton Basins implementation in C++ (pybind11)

Project description

# Newton Basins C++ Implementation (pybind11)

A Python/C++ (pybind11) package to generate newton basins images.


## Installation

### From PyPI
```
pip install nb-cpp
```

### From source code

```
pip install git+https://github.com/gmagno/nb-cpp.git
```

or

```
git clone git@github.com:gmagno/nb-cpp.git
cd nb-cpp/
make install
```

## Example Usage

Just run:

```python
import matplotlib as mpl # don't forget to `pip install matplotlib` first
import matplotlib.pyplot as plt
import nb_cpp
hsv = nb_cpp.compute(
imw=32, imh=32, # for more details, run: help(nb_py.compute)
)
rgb = mpl.colors.hsv_to_rgb(hsv)
plt.figure()
plt.imshow(rgb)
plt.show()
```


## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nb_cpp-0.0.8.tar.gz (1.3 kB view details)

Uploaded Source

Built Distributions

nb_cpp-0.0.8-cp37-cp37m-manylinux1_x86_64.whl (100.1 kB view details)

Uploaded CPython 3.7m

nb_cpp-0.0.8-cp37-cp37m-manylinux1_i686.whl (80.1 kB view details)

Uploaded CPython 3.7m

nb_cpp-0.0.8-cp36-cp36m-manylinux1_x86_64.whl (99.7 kB view details)

Uploaded CPython 3.6m

nb_cpp-0.0.8-cp36-cp36m-manylinux1_i686.whl (80.2 kB view details)

Uploaded CPython 3.6m

nb_cpp-0.0.8-cp35-cp35m-manylinux1_x86_64.whl (99.6 kB view details)

Uploaded CPython 3.5m

nb_cpp-0.0.8-cp35-cp35m-manylinux1_i686.whl (80.2 kB view details)

Uploaded CPython 3.5m

nb_cpp-0.0.8-cp34-cp34m-manylinux1_x86_64.whl (100.0 kB view details)

Uploaded CPython 3.4m

nb_cpp-0.0.8-cp34-cp34m-manylinux1_i686.whl (80.2 kB view details)

Uploaded CPython 3.4m

File details

Details for the file nb_cpp-0.0.8.tar.gz.

File metadata

  • Download URL: nb_cpp-0.0.8.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for nb_cpp-0.0.8.tar.gz
Algorithm Hash digest
SHA256 a50faa3df07767ecbc47e79b0b9a9fd1c0b7c9f26e0051b1e70f2da8e1f839cc
MD5 901fc4918764156a96c9c2378b5b15ea
BLAKE2b-256 e49d8d81e2d7c2dba0d8f0300f1d467562a17ec6f17e196d8f65de9d2527797a

See more details on using hashes here.

File details

Details for the file nb_cpp-0.0.8-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: nb_cpp-0.0.8-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 100.1 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for nb_cpp-0.0.8-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cebbf3cd66f8c9de2378d920c572611ebee9c1aa40f30d3e214ae2edb52140de
MD5 6c233f9a555a6db827ece273251614b6
BLAKE2b-256 c28a9b3e0c1eda735a1414d37313241564fdda3afa1a92b4dbc249f8785dbbba

See more details on using hashes here.

File details

Details for the file nb_cpp-0.0.8-cp37-cp37m-manylinux1_i686.whl.

File metadata

  • Download URL: nb_cpp-0.0.8-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 80.1 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for nb_cpp-0.0.8-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 96849763dcf414849efcf5e843c190dc0ed5172acac5c13c354866f9269f88bd
MD5 93e6b04c91ed1402a3a40484a2b63c2c
BLAKE2b-256 9c5fa167ed2dfeb659780c3e8a28a7aec1983ebb6a50e68a7b8aa25a48c1b939

See more details on using hashes here.

File details

Details for the file nb_cpp-0.0.8-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: nb_cpp-0.0.8-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 99.7 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for nb_cpp-0.0.8-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fa788212eb236de42af4c71a6d1a1fc8f3b1c3c7bdc7aa3b68291e2f0e113be6
MD5 06d5798e8ba828222f96904ae4d058b9
BLAKE2b-256 c9bb9a233a4912dc8c30281645180e07761d3b7ba4c973d3bce9c867eafae123

See more details on using hashes here.

File details

Details for the file nb_cpp-0.0.8-cp36-cp36m-manylinux1_i686.whl.

File metadata

  • Download URL: nb_cpp-0.0.8-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 80.2 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for nb_cpp-0.0.8-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 b91efd1edbe36f7c16e6022113c01df0cd11ceb2716a410f91984d5789f7d50c
MD5 5e2b54078a644a677d142b0c71ba5467
BLAKE2b-256 3b76b053fcaac401ba48509111fccdbaead99463312a0fa4ee3c80464737fc99

See more details on using hashes here.

File details

Details for the file nb_cpp-0.0.8-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: nb_cpp-0.0.8-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 99.6 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for nb_cpp-0.0.8-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 58db53d627df7dd2e2f4794f276cf0e863b3456413d67c6f33d850f3eb26730f
MD5 446e3801efe8486e1cfb6f0a2b969c2d
BLAKE2b-256 d49bd48776f4d3dcbda1bccc86f6d3f60aa8800fd711bc362d533bc4077d4aa1

See more details on using hashes here.

File details

Details for the file nb_cpp-0.0.8-cp35-cp35m-manylinux1_i686.whl.

File metadata

  • Download URL: nb_cpp-0.0.8-cp35-cp35m-manylinux1_i686.whl
  • Upload date:
  • Size: 80.2 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for nb_cpp-0.0.8-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 2f2c50b44c72cfa1f54934096c84d7e6aedc7436ea51f872175f0b7686a5ea2b
MD5 a01deee2861d31ba09d53df75c38d7fe
BLAKE2b-256 be83b5778581169ab7fe0ab37083abe15c31aaef9baa2afd4c7f0bc05651076d

See more details on using hashes here.

File details

Details for the file nb_cpp-0.0.8-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

  • Download URL: nb_cpp-0.0.8-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 100.0 kB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for nb_cpp-0.0.8-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 734173aff25269199c908030fa7dfd5c54ebcdede99fc626e2d836727a4f3c59
MD5 45061e8bfc4d48e6bb48aa73a340a827
BLAKE2b-256 95f3eacf19939eb08106268602a8332ae52899c0e4ab93130853a3a8823dd618

See more details on using hashes here.

File details

Details for the file nb_cpp-0.0.8-cp34-cp34m-manylinux1_i686.whl.

File metadata

  • Download URL: nb_cpp-0.0.8-cp34-cp34m-manylinux1_i686.whl
  • Upload date:
  • Size: 80.2 kB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for nb_cpp-0.0.8-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 58b87a0c3c871049a4a3607eb711027078e4a7d2463f228bbdda15465b582317
MD5 6425c1146e234bf9ffe7dc0c0cfcd2be
BLAKE2b-256 1a455c0c89d6b3a1a12f85a968be41f289c2b374e6784c8bfdc92e201fc868b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page