이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
MATLAB의 부동소수점 사양
single형, half형 등의 부동소수점 데이터형 생성 및 사용
단정밀도 숫자는 32비트만 사용하므로 배정밀도 숫자보다 필요한 메모리가 적으면서도 부동소수점 연산방식의 다양한 이점을 제공합니다. 반정밀도 데이터형은 16비트의 메모리만 차지하지만, 부동소수점 표현에서 반정밀도 데이터형은 동일한 크기의 정수 데이터형이나 고정소수점 데이터형보다 더 넓은 동적 범위를 처리할 수 있습니다. CustomFloat
객체를 사용하여, 지정된 워드 길이와 가수 길이를 갖는 부동소수점 숫자 데이터형을 정의할 수 있습니다.
클래스
Simulink.NumericType | Specify floating-point, integer, or fixed-point data type |
target.FloatingPointDataType | Describe floating point data type implemented by compiler for target hardware |
함수
패키지
target | Manage target hardware and build tool information |
도움말 항목
- Floating-Point Numbers
Representation and manipulation of floating-point numbers.
- What is Half Precision?
Introduction to the half-precision data type in MATLAB® and Simulink®.
- Half Precision Code Generation Support
C/C++ and GPU code generation support for functions that support half-precision inputs.
- Generate Native Half-Precision C Code Using MATLAB Coder
Generate C code for embedded hardware targets that natively supports half precision floating-point data types.