Skip to content
Newton Basins implementation in C++ with bindings (pybind11)
Python C++ Shell Makefile CMake
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
eigen @ 939c22c
example
nb_cpp
pybind11 @ 085a294
test
travis
.gitignore
.gitmodules
.travis.yml
CMakeLists.txt
MANIFEST.in
Makefile
README.md
requirements-dev.txt
requirements-test.txt
setup.py

README.md

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:

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 file for details

You can’t perform that action at this time.