-
Notifications
You must be signed in to change notification settings - Fork 248
Cpp PyClustering
The core of pyclustering library is ccore library. The core ccore has been implemented to reach maximum performance using C/C++ language. It does not use <python.h> library for communication between 'ccore' and 'pyclustering' to make it possible to use 'ccore' library separately from pyclustering library in others projects where python is not required.
Sources of the core of pyclustering are located in folder pyclustering/ccore.
The core can be built for Linux using makefile and for Windows using Microsoft Visual Studio 2015 project. Make sure that your compiler support C++14.
Build core ('ccore.so' library) using makefile for Linux (64-bit):
$ cd pyclustering/ccore
$ make ccore_x64
Build core ('ccore.so' library) using makefile for Linux (32-bit):
$ cd pyclustering/ccore
$ make ccore_x86
To clean ccore target:
$ make ccore_x64_clean
$ make ccore_x86_clean
Build core ('ccore.dll' library) using Visual Studio project for Windows:
- Open folder pyclustering/ccore;
- Open MSVS solution ccore.sln;
- Choose ccore project;
- Specify configuration of library (x64 or x86).
- Build ccore library;