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 | 31 |
Tags
- 코틀린 시작하기
- python
- matrix fo a linear transformation
- 빅오 표기법
- 이진 탐색
- matrix trnasformations
- 배열 섞기
- Big Omega
- 일차변환
- linear dependence
- nontrivial solution
- Big Theta
- 빅세타
- 재귀함수
- trivial solution
- homogeneous linear system
- matrix-vector product
- recursive algorithms
- 빅오메가
- nonhomogeneous linear system
- 코틀린 Hello World!
- 랜덤 순서 배열
- solutions of matrix equation
- Big-O 예제
- one-to-one
- NumPy
- Big-Oh notation
- 알고리즘 분석의 실례
- Big-Oh 예제
- itertools
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