Code Monkey home page Code Monkey logo

fmm_tutorial's People

Contributors

gforsyth avatar ncclementi avatar tingyu66 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fmm_tutorial's Issues

fix docstrings

Most of the docstrings have their descriptions running on in a single line.
There should be newlines inserted so that they're readable.

In general, actually, max column width should be 79 characters in line with PEP8

Add a LICENSE file

and a copyright notice.

MIT License is good, and for a copyright notice, probably

Content under Creative Commons Attribution license CC-BY 4.0, code under MIT license (c) 2015 T. Wang, N. Clementi

Zenodo DOI?

Hi there,

I'm a PhD student in the group of Hans Fangohr, and I used this material to learn the concepts behind the Barnes-Hut method/FMM. I'd like to cite the repository in a paper that I'm writing - is there any chance the authors could put the repository onto Zenodo so I can cite the DOI?

Also wanted to say thanks; I found the material very instructive.

All the best,
Ryan

Deprecated dependencies and commands in 2022

Hi there!

In 2022, there're some dependencies and commands are deprecated for Python 3.9 or later, here are some updates:

In treenode_helper.py you should change:
line 5: from numba import autjit -> from numba import jit
line 73 self.leaf = numpy.zeros(n_crit, dtype=numpy.int) -> self.leaf = numpy.zeros(n_crit, dtype=int)
line 75 self.child = numpy.zeros(8, dtype=numpy.int) -> self.child = numpy.zeros(8, dtype=int)
line 79 self.multipole = numpy.zeros(10, dtype=numpy.float) -> self.multipole = numpy.zeros(10, dtype=float)

In 04_tree_construction.ipyn you should change in class cell():
self.leaf = numpy.zeros(n_crit, dtype=numpy.int) -> self.leaf = numpy.zeros(n_crit, dtype=int)
self.child = numpy.zeros(8, dtype=numpy.int) -> self.child = numpy.zeros(8, dtype=int)
self.multipole = numpy.zeros(10, dtype=numpy.float) -> self.multipole = numpy.zeros(10, dtype=float)

In 06_treecode.ipynb you should change every clock() to time()

I hope it will be helpful for future readers

Some equations get truncated in nbviewer

When I open the notebook with nbviewer in Chrome, some equations are truncated. For example, in lesson 2, the Taylor series expansion in 3D is:

img_20160425_150540

In nbviewer, it becomes:

img_20160425_150554

Half of the z-term of the first-order derivative is truncated.

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.