분류 전체보기
-
[python] timeit 모듈을 사용한 numpy 배열 제곱 비교아무거나적어~ 2023. 7. 29. 17:21
제곱만 하는 경우에는 np.power 는 사용하지 말자(느림) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 import numpy as np X = np.arange(100).reshape((10, 10)) def a(N): return np.power(N, 2) def b(N): return X*X def c(N): return X**2 def d(N): return np.square(X) if __name__ == '__main__': import timeit print(timeit.timeit("a(X)", number=1000, globals=globals())) print(timeit.timeit("b(X)", number=1000, globa..
-
vscode c++20아무거나적어~ 2023. 7. 16. 22:33
[C언어 강좌] Hello, C! 2023/05/07 : 게시글 구조 깨짐 전면 수정 🎬 준비 뜬금없는 소리지만... 기타와 피아노 등 악기를 연주하려면 무엇이 필요할까요? 악보, 튜닝기 등 다양한 준비물이 필요합니다. 맞습니다. 우리가 y-s2.tistory.com Downloads - MinGW-w64 Downloads The heart of the Mingw-w64 project is headers and support libraries to run the output of GCC on Windows. Since Mingw-w64 is neither the home of GCC nor of binutils, several sets of installation packages which combine..
-
-