Code Monkey home page Code Monkey logo

mandelbrot's Introduction

Mandelbrot Set

Code style: black pre-commit Join the chat at https://matrix.to/#/#Data-Parallel-Python_community:gitter.im

Mandelbrot set demo implemented using NumPy, Numba, DPNP, and Numba-DPEx.

What it is

The Mandelbrot set is the set of complex numbers $c$ for which the function $f_{c}(z)=z^{2}+c$ does not diverge to infinity when iterated from $z=0$, i.e., for which the sequence $f_{c}(0)$, $f_{c}(f_{c}(0))$, etc., remains bounded in absolute value.

Images of the Mandelbrot set exhibit an elaborate and infinitely complicated boundary that reveals progressively ever-finer recursive detail at increasing magnifications

For further details please visit respective Wikipedia article.

How to run demo

Running from installed conda package

Install the demo as follows: conda install -c pycoddiy/label/dev mandelbrot-demo

From command line type: mandelbrot [command line options]

  • --variant [numba, numpy, dpnp, numba-dpex] (default numpy) - implementation variant
  • --frames-count - stop rendering after a specified amount of frames. Default 0 meaning that the demo does not stop until user action, e.g. close window
  • --gui (default) or --no-gui - render the evolution of the grid or do the computation only and print performance statistics in the end.
  • --task-size - window size WIDTH, HEIGHT. Example: 1024,800

Running from GitHub sources

Clone repository to a local project directory:

git clone https://github.com/samaid/Mandelbrot.git
cd ./Mandelbrot

From the command line type: python mandelbrot_demo.py [command line options]

  • --variant [numba, numpy, dpnp, numba-dpex] (default numpy) - implementation variant
  • --frames-count - stop rendering after a specified amount of frames. Default 0 meaning that the demo does not stop until user action, e.g. close window
  • --gui (default) or --no-gui - render the evolution of the grid or do the computation only and print performance statistics in the end.
  • --task-size - window size WIDTH, HEIGHT. Example: 1024,800

mandelbrot's People

Contributors

samaid avatar alexanderkalistratov avatar

Stargazers

 avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.