Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- matrix-vector product
- 코틀린 시작하기
- homogeneous linear system
- Big Omega
- 재귀함수
- matrix trnasformations
- trivial solution
- python
- Big-Oh notation
- 빅세타
- matrix fo a linear transformation
- 배열 섞기
- itertools
- nontrivial solution
- 알고리즘 분석의 실례
- 일차변환
- 빅오메가
- linear dependence
- Big-O 예제
- 랜덤 순서 배열
- 코틀린 Hello World!
- Big-Oh 예제
- one-to-one
- Big Theta
- 이진 탐색
- 빅오 표기법
- nonhomogeneous linear system
- recursive algorithms
- NumPy
- solutions of matrix equation
Archives
- Today
- Total
목록numpy.amax (1)
코딩 연습
(파이썬) numpy.amax
numpy 모듈의 amax 함수는 array 의 최댓값을 반환하는 함수이다. 다음 예를 보자. >>> import numpy as np >>> a = np.range(4) >>> a array([0, 1, 2, 3]) >>> np.amax(a) 3 위 예에서 볼 수 있듯이 np.amax(a) 는 array [0, 1, 2, 3] 의 요소 중 가장 큰 값이 3을 반환하는 거을 알 수 있다.amax 함수는 행렬 (matrix) 에서 행이나 열 각각에 대한 최댓값을 반환해 주기도 한다. >>> a = np.arange(4).reshape((2, 2)) >>> a array([[0, 1], [2, 3]]) >>> np.amax(a, axis=0) array([2, 3]) >>> np.amax(a, axis=1)..
Python
2017. 3. 25. 05:16