Counting the Floating Point Operations (FLOPS)

バージョン 1.0.0.0 (576 KB) 作成者: Hang Qian
Scan and parse each line of MATLAB codes, and infer FLOPS based on matrix sizes
ダウンロード: 4.5K
更新 2015/4/23

ライセンスの表示

The program counts FLOPS of a MATLAB file, either as a script or function. By scanning and parsing each line of the MATLAB codes, we infer the floating point operations based on matrix sizes. Arithmetic operations, matrix decompositions, elementary functions and common statistics functions are counted. The program supports user-defined new rules, which can override our predetermined rules by a spreadsheet. For details of software usage, refer to the enclosed PDF documentation ‘User Guide for FLOPS’.
Usage:

Step 1: Prepare your MATLAB codes in a script or function, say fileName.m.

Step 2: Save all the variables in a MAT file. For example:
save MATfileName.mat

Step 3: Profile the MATLAB codes.
profile on
(run your MATLAB codes here, say filename(A,B,C,D))
profileStruct = profile('info');

Step 4: Count FLOPS by calling the function
FLOPS(fileName,MATfileName,profileStruct);

The parsing and counting results will be displayed on the screen and sent to output arguments.

引用

Hang Qian (2024). Counting the Floating Point Operations (FLOPS) (https://www.mathworks.com/matlabcentral/fileexchange/50608-counting-the-floating-point-operations-flops), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2014a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersCreating and Concatenating Matrices についてさらに検索
タグ タグを追加
謝辞

ヒントを与えたファイル: flopTool, Activity Recognition with Reduced Basis Decomposition

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0