flops on matlab 7
2 views (last 30 days)
Show older comments
I copied flops.m file into matlab\toolbox\optim\optim\flops.m then went to matlab command window typed : which flops ...system prompts which flops 'flops' not found.
any reason? where should i store this file?
0 Comments
Answers (1)
Walter Roberson
on 28 Aug 2016
At the very least you need to
rehash toolbox
However, if you are copying flops from an old version of MATLAB then flops.m is very likely just the documentation for a built-in operation.
There has not been any meaningful way to experimentally measure Floating Point Operations Per Second (FlOPs) since 1993 when out-of-order execution and multiple arithmetic units were introduced in MIPS (tm) CPUs. Some would push the date further back to 1990 when IBM introduced fused multiplication and addition. flops never were particularly meaningful for performance measurements, as they deem a multiplication to be the same cost as an addition, which has never been the case. (Oddly enough, there have been a number of systems in which a floating point multiplication was faster than an integer addition -- because a lot of work was put into making floating point fast but integer work is a relatively small proportion of computation so it was not as important to speed up.)
If you are asked to calculation algorithmic complexity, you cannot do that by taking instruction measurements in any relatively modern system.
0 Comments
See Also
Categories
Find more on General Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!