chop

버전 1.0.4 (14.6 KB) 작성자: Nick Higham
Round matrix elements to lower precision in MATLAB
다운로드 수: 307
업데이트 날짜: 2022/6/14

chop is a MATLAB function for rounding the elements of a matrix to a lower precision arithmetic with one of several forms of rounding. Its intended use is for simulating arithmetic of different precisions (less than double) with various rounding modes. The input to chop should be single precision or double precision and the output will have the same type: the lower precision numbers are stored within a higher precision type.

The arithmetic formats supported are

'b', 'bfloat16' - bfloat16,
'h', 'half', 'fp16' - IEEE half precision (the default),
's', 'single', 'fp32' - IEEE single precision,
'd', 'double', 'fp64' - IEEE double precision,
'c', 'custom' - custom format.

인용 양식

Nicholas J. Higham and Srikara Pranesh (2019). chop (https://www.github.com/higham/chop), GitHub. Retrieved March 22, 2019.

MATLAB 릴리스 호환 정보
개발 환경: R2018b
R2016a 이상 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음

버전 게시됨 릴리스 정보
1.0.4

Minor fixes and documentation improvements.

1.0.3

Deleted old citation.

1.0.2

Changed citation.

1.0.1

Added co-author.

1.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.