C++ implementation of Space-filling curve ...
- based on: [John Skilling] [link]
- [insert algo/psuedo code]
- explanation for wrapper usage
MS Visual Studio (2013 and above) settings:
-
Go to
Project > Hilbert Properties... > Configuration Properties
. With All Configurations:- Chose VC++ Directories setting. Append
$(PYTHONPATH)\include
to Include Directories for the Python header file<Python.h>
and append$(PYTHONPATH)\libs
to Library Directories for the linker library filepythonXX.lib
orpythonXX_d.lib
. - Choose General settings and in Project Defaults, change Configuration Type to 'Dynamic Library (.dll)'.
- Under General settings, change Target Extension to '.pyd'.
Only for Debug Configuration: - Under General settings, change Target Name to
$(ProjectName)_d
.
- Chose VC++ Directories setting. Append
-
Chose either Release or Debug under Solution Configurations. Note that for Debug mode, you need to have Python debug binaries downloaded first (requires VS 2015 or later).
- With Release configuration, Build Visual Studio project.
From CMD, rundir Hilbert\Release
to locateHilbert.pyd
file.
Example commands intest.py
.cd Hilbert\Hilbert python test.py
- For Debug mode, steps are similar as above.
Hilbert_d.pyd
file will be created underHilbert\Debug
and you may use thepythonXX_d.exe
interpreter instead. - [how to call/use wrapper]
Main project files:
Hilbert\Hilbert
|
|- Header Files
| |
| |- hilbert.h
|
|- Python Scripts
| |
| |- test.py
|
|- Source Files
|
|- hilbert.cpp
|- capi.cpp
[file contents gist] Uses the Python-C API
NOTE: README in progress.