source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/flops_mul.m
Last change on this file was 37, checked in by , 15 years ago | |
---|---|
File size: 386 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | function f = flops_mul(n,m,c) |
2 | % FLOPS_MUL Flops for real matrix multiplication. | |
3 | % FLOPS_MUL(a,b) returns the number of flops for a*b. | |
4 | % FLOPS_MUL(n,m,c) returns the number of flops for ones(n,m)*ones(m,c). | |
5 | % This is more accurate than the flopcount returned by matlab. | |
6 | ||
7 | if nargin == 2 | |
8 | a = n; | |
9 | b = m; | |
10 | n = rows(a); | |
11 | m = cols(a); | |
12 | c = cols(b); | |
13 | end | |
14 | f = n*c*(2*m-1); |
Note: See TracBrowser
for help on using the repository browser.