【文件属性】:
文件名称:gpu_mandelbrot:使用Python在GPU上设置交互式Mandelbrot
文件大小:15.65MB
文件格式:ZIP
更新时间:2021-03-29 03:47:32
gpu cuda fractal python3 matplotlib
快速Mandelbrot集浏览器
特征
使用numba CUDA JIT在GPU和CPU上加速
使用Matplotlib进行交互式探索
使用鼠标滚轮或左/右键单击以放大/缩小
使用按钮和滑块更改调色板和迭代次数
保存静止图像和动画图像
平滑的着色,通过过采样消除锯齿
可自定义的调色板
精度:缩小到float64精度(约16个有效数字)
所有这些都在100%Python代码中 :snake:
快速开始
from mandelbrot import Mandelbrot
mand = Mandelbrot ( gpu = True ) # set gpu to False if not available
探索布景
# Explore the set using interactive Matplotlib GUI
mand . explore ()
绘制图像
# Draw an image and s
【文件预览】:
gpu_mandelbrot-master
----img()
--------mandelbrot.png(455KB)
--------mandelbrot.gif(18.73MB)
----readme.md(2KB)
----mandelbrot.py(14KB)
----LICENSE(1KB)