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 |
Tags
- 알고리즘 분석의 실례
- matrix trnasformations
- recursive algorithms
- homogeneous linear system
- 빅오메가
- 빅세타
- 배열 섞기
- matrix-vector product
- 이진 탐색
- 랜덤 순서 배열
- Big Omega
- Big-Oh 예제
- one-to-one
- linear dependence
- 코틀린 시작하기
- 코틀린 Hello World!
- matrix fo a linear transformation
- NumPy
- solutions of matrix equation
- Big-Oh notation
- 일차변환
- trivial solution
- Big Theta
- python
- 재귀함수
- nonhomogeneous linear system
- itertools
- Big-O 예제
- nontrivial solution
- 빅오 표기법
Archives
- Today
- Total
목록reduce (1)
코딩 연습
(파이썬) functools 모듈의 reduce 함수
functools 모듈의 reduce 함수는 다음과 같다. def reduce(function, iterable, initializer=None): it = iter(iterable) if initializer is None: value = next(it) else: value = initializer for element in it: value = function(value, element) return value reduce 함수는 매개 변수로 function, iterable[, initializer] 를 갖는다. function 과 iterable 은 반드시 전달되어야 하고, initializer 는 선택적이라고 보면 된다. 위 코드를 보면 알겠지만 reduce 함수는 다음과 같이 iterable..
Python
2017. 3. 23. 00:51