일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- judge
- Converting
- GitLab
- TORCH
- Package
- Paper
- Mac
- pytorch
- DB
- Python
- pandas
- CUDA
- KAKAO
- git
- list
- Linux
- Container
- Database
- numpy
- AI
- PostgreSQL
- docker
- LLM
- Windows
- format
- enV
- file
- evaluation
- Flask
- Laravel
Archives
- Today
- Total
Daily Develope
[Python] Numpy 넘파이 함수 정리 본문
연산
ㅇ 곱셈
- multiply
: a배열과 b배열의 합성곱 (a * b 와 동일)
numpy.multiply(a, b)
- dot
: a배열과 b배열의 스칼라곱
numpy.dot(a, b)
ㅇ absolute
: 복소수(a+ib)의 값을 가지는 배열 ary에 대해 절대값(root(a^2 + b^2))의 값을 가지는 배열로 반환
numpy.absolute(ary)
소수점 제어
ㅇ 올림
numpy.ceil(value)
ㅇ 내림
numpy.floor(value)
ㅇ 반올림
numpy.round(value, point)
ㅇ 버림
numpy.trunc(value)
배열
ㅇ 생성
- arrange
: [start, end] 구간 내 step 간격의 값을 가지는 배열 생성 (default, step = 1)
numpy.arrange(start, end, step)
- linspace
: [start, stop] 구간 포함 num개의 값이 선형을 그리는 배열 생성 (default, num = 50)
numpy.linspace(start, stop, num)
- zeros
: shape의 차원을 가지고 각 값이 0인 배열 생성
numpy.zeros(shape)
ㅇ 추가
- append
: a 배열에 b 배열 추가
numpy.append(a, b)
'Develope > Python' 카테고리의 다른 글
[Python] Kakao API 사용예시 (0) | 2022.04.11 |
---|---|
[Python] 폴더 및 파일 탐색 (0) | 2022.04.06 |
[Python] MFCC 구현 (0) | 2022.04.04 |
[Python] config 환경설정 관리 및 사용 (0) | 2022.03.31 |
[Python] PCM 음성파일 파형 출력 (with pyplot) (0) | 2022.02.15 |
Comments