Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

subroutine faster than function? (ifort 10.1.021)

$
0
0

Are there benefits using a function instead of a subroutine if both subprograms can be implemented?

For simple test-problems subroutines seem slightly faster than functions, whether using the pure statement or not. Is this a rule of thumb or misleading?

Best regards,
Eduard


Viewing all articles
Browse latest Browse all 5691

Trending Articles