source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/flops_mul.m @ 86

Last change on this file since 86 was 37, checked in by (none), 15 years ago

Added original make3d

File size: 386 bytes
Line 
1function 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
7if nargin == 2
8  a = n;
9  b = m;
10  n = rows(a);
11  m = cols(a);
12  c = cols(b);
13end
14f = n*c*(2*m-1);
Note: See TracBrowser for help on using the repository browser.