|
1 | | -#!/usr/bin/env python |
2 | 1 | # -*- coding: utf-8 -*- |
3 | 2 | """ |
4 | 3 | ffi.py |
5 | 4 |
|
6 | 5 | Created by Stephan Hügel on 2016-08-3 |
7 | 6 |
|
8 | 7 | This file is part of simplification. |
9 | | -
|
10 | | -The MIT License (MIT) |
11 | | -
|
12 | | -Copyright (c) 2016 Stephan Hügel |
13 | | -
|
14 | | -Permission is hereby granted, free of charge, to any person obtaining a copy |
15 | | -of this software and associated documentation files (the "Software"), to deal |
16 | | -in the Software without restriction, including without limitation the rights |
17 | | -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
18 | | -copies of the Software, and to permit persons to whom the Software is |
19 | | -furnished to do so, subject to the following conditions: |
20 | | -
|
21 | | -The above copyright notice and this permission notice shall be included in |
22 | | -all copies or substantial portions of the Software. |
23 | | -
|
24 | | -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
25 | | -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
26 | | -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
27 | | -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
28 | | -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
29 | | -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
30 | | -THE SOFTWARE. |
31 | | -
|
32 | 8 | """ |
33 | 9 |
|
34 | 10 | import os |
| 11 | +from ctypes import POINTER, Structure, c_double, c_size_t, c_void_p, cast, cdll |
35 | 12 | from sys import platform, version_info |
36 | | -from ctypes import Structure, POINTER, c_void_p, c_size_t, c_double, cast, cdll |
37 | 13 |
|
38 | 14 | numpy_installed = True |
39 | 15 | try: |
|
0 commit comments