chop

Version 1.0.4 (14,6 KB) von Nick Higham
Round matrix elements to lower precision in MATLAB
307 Downloads
Aktualisiert 14. Jun 2022

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.

Zitieren als

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

Kompatibilität der MATLAB-Version
Erstellt mit R2018b
Kompatibel mit R2016a und späteren Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Logical finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

Versionen, die den GitHub-Standardzweig verwenden, können nicht heruntergeladen werden

Version Veröffentlicht Versionshinweise
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

Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.
Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.