フィルターのクリア

flops on matlab 7

3 ビュー (過去 30 日間)
Ana Royce
Ana Royce 2016 年 8 月 28 日
回答済み: Walter Roberson 2016 年 8 月 28 日
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?

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 8 月 28 日
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.

カテゴリ

Help Center および File ExchangeLinear Programming and Mixed-Integer Linear Programming についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by