orbital_evolution.c_interface_util module

Utilities for creating the interface to the shared C/C++ libraries.

orbital_evolution.c_interface_util.ndpointer_or_null(*args, **kwargs)[source]

Allow None (->NULL) to be passed for c-style array function arguments.

Modified from: http://stackoverflow.com/questions/32120178/how-can-i-pass-null-to-an-external-library-using-ctypes-with-an-argument-decla