Click here to Skip to main content
15,901,853 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Distribution of floating-point operations in scientific computing PinPopular
CPallini24-Jan-17 22:01
mveCPallini24-Jan-17 22:01 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
dan!sh 24-Jan-17 22:06
professional dan!sh 24-Jan-17 22:06 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
OriginalGriff24-Jan-17 22:10
mveOriginalGriff24-Jan-17 22:10 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
DaveAuld24-Jan-17 22:09
professionalDaveAuld24-Jan-17 22:09 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
OriginalGriff24-Jan-17 22:10
mveOriginalGriff24-Jan-17 22:10 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
DaveAuld24-Jan-17 22:13
professionalDaveAuld24-Jan-17 22:13 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Daniel Pfeffer24-Jan-17 23:02
professionalDaniel Pfeffer24-Jan-17 23:02 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
JRickey26-Jan-17 5:47
professionalJRickey26-Jan-17 5:47 
If the less common operations are dramatically slower than the common ones, it still may be worth it to optimize them. Take a look at the speed comparisons at Integer and Floating-Point Arithmetic Speed vs Precision[^].

Consider the Core i7-4770 floating point graph for 32-bit operations, indicating multiplication takes about 3 times as long as addition. If addition occurs 75% of the time and multiplication 25%, you will spend the same time on each.

The decision might be influenced by which operation would be easier to optimize and which would produce the greater gain once optimized. (I see Jochen Arndt gave similar advice. This puts some numbers to it for you.)
GeneralRe: Distribution of floating-point operations in scientific computing Pin
obermd26-Jan-17 13:25
obermd26-Jan-17 13:25 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Kornfeld Eliyahu Peter24-Jan-17 22:13
professionalKornfeld Eliyahu Peter24-Jan-17 22:13 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Daniel Pfeffer24-Jan-17 23:10
professionalDaniel Pfeffer24-Jan-17 23:10 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Jochen Arndt24-Jan-17 22:24
professionalJochen Arndt24-Jan-17 22:24 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Chris C-B24-Jan-17 23:57
Chris C-B24-Jan-17 23:57 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Jochen Arndt25-Jan-17 0:08
professionalJochen Arndt25-Jan-17 0:08 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Chris C-B25-Jan-17 0:20
Chris C-B25-Jan-17 0:20 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
DaveAuld25-Jan-17 1:11
professionalDaveAuld25-Jan-17 1:11 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Chris C-B25-Jan-17 1:55
Chris C-B25-Jan-17 1:55 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Rage25-Jan-17 0:33
professionalRage25-Jan-17 0:33 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Daniel Pfeffer25-Jan-17 1:09
professionalDaniel Pfeffer25-Jan-17 1:09 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Jochen Arndt25-Jan-17 1:29
professionalJochen Arndt25-Jan-17 1:29 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Daniel Pfeffer25-Jan-17 1:59
professionalDaniel Pfeffer25-Jan-17 1:59 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Jochen Arndt25-Jan-17 2:16
professionalJochen Arndt25-Jan-17 2:16 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Daniel Pfeffer25-Jan-17 2:50
professionalDaniel Pfeffer25-Jan-17 2:50 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
patbob25-Jan-17 6:48
patbob25-Jan-17 6:48 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
englebart26-Jan-17 2:27
professionalenglebart26-Jan-17 2:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.