Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.01 KB

CONTRIBUTING.md

File metadata and controls

40 lines (26 loc) · 1.01 KB

Contributing

To do

See here.

Documentation

The documentation is rendered with MkDocs. Run the following commands to run the documentation locally.

pip install mkdocs mkdocs-material pygments python-markdown-math
cd /path/to/xgp
mkdocs serve

Performance

go test -bench . --cpuprofile=cpu.prof
go tool pprof --pdf xgp.test cpu.prof > profile.pdf

Magic numbers

Most of the behavior of xgp can be determined by the user. However for various reasons some fields/numbers have to be hard-coded. When this is done the habit I took is to annotate the line of code with a // MAGIC comment. In some cases this is due to bad design and should be fixed.

Steps for adding a new parameter

Steps

  1. Add to the GP's fields if needed
  2. Add to the New method
  3. Add to each language package
  4. Add to the documentation

Guidelines

  • Order parameters alphabetically
  • Respect language-specific conventions for naming