Assignment 7 Task 1 a

Assignment 7 Task 1 a

by Hassan Rady -
Number of replies: 2

Dear PTFS team,


To calculate the flops/s, how many flops should I consider the sqrt to be?


Kind regards

Hassan Rady

In reply to Hassan Rady

Re: Assignment 7 Task 1 a

by Georg Hager -
You can assume it's one flopĀ  as it's implemented as a machine instruction. It is unknown how exactly this function is implemented in the hardware.
In general, in such cases you can make reasonable assumptions if you describe them properly so that your line of though can be reproduced.