코딩Coding/Mojo★Python파이썬
-
C/C++ dll로 만든 함수를 python에서 사용(feat. C types)-dgkim5360코딩Coding/Mojo★Python파이썬 2022. 1. 15. 13:00
https://dgkim5360.tistory.com/entry/cc-dll-fucntion-call-via-python-ctypes C/C++ dll로 만든 함수를 Python에서 사용 (feat. ctypes) Python의 기본 모듈 중 하나인 ctypes를 이용해서 C언어로 컴파일된 dll안에 넣은 함수를 실행하는 방법을 기록한다. 우리가 사용하고자 하는 C 함수의 인풋과 아웃풋 형식만 잘 맞춰주어야 한다는 dgkim5360.tistory.com https://docs.python.org/2/library/ctypes.html 15.17. ctypes — A foreign function library for Python — Python 2.7.18 documentation 15.17. ctype..
-
Python]NumPy 예시코딩Coding/Mojo★Python파이썬 2022. 1. 14. 17:13
https://numpy.org/doc/stable/user/quickstart.html NumPy quickstart — NumPy v1.22 Manual NumPy provides familiar mathematical functions such as sin, cos, and exp. In NumPy, these are called “universal functions” (ufunc). Within NumPy, these functions operate elementwise on an array, producing an array as output. See also all, any, apply_al numpy.org