Skip to content

HaoZeke/f2py_derived_nep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This repository contains self contained examples along with the draft NEP for Fortran Derived Types. Changes to the text of the draft file:doc/nep_draft.rst should ideally be accompanied by examples (and instructions to run them).

For details on the NEP process consult the NumPy documentation.

Contributing

All contributions are welcome.

  • Concrete implementations –> Pull Requests
  • Thoughts / comments / ideas –> as review comments or issues
  • Edge cases / examples –> examples folder

Writing bindings

For each example, bindings should utilize the FortranObject files (a copy of which are provided within this repository).

FAQ

Why a repo?

Large parts of this NEP involve Fortran-C-CPython binding strategies, but implementations within NumPy will require F2PY changes. This does not make for very intuitive PRs and so the design is discussed here before examples are implemented within F2PY.

Essentially, each decision can be split into:

  1. Testing / discussing the C code
  2. Generating the C code with F2PY

This repository is meant to facilitate 1. while PRs to numpy/numpy must implement both.

About

Derived type examples and design

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages