问题一:一个长度为N根据IEE–754(不太清楚这是条件还是什么)浮点型算法(单精度)编码的向量,
发布网友
发布时间:2022-05-16 20:27
我来回答
共1个回答
热心网友
时间:2024-03-01 17:38
these questions are easy to answer...
3. According to the IEE-754 floating-point number standard, a single-precision floating-point number occupies 32 bits (4 bytes) for its storage purpose and thus, the bytes that the amount N of them needed are 4N.
4. A double-precision floating-point number occupies 64 bits (8 bytes) and hence, having 2 of them doubles the space occupation (128 bits, or 16 bytes) since a structure allocates memory spaces for its fields continuously if no memory alignment occurs.