source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/flops_randnorm.m @ 37

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

Added original make3d

File size: 412 bytes
Line 
1function f = flops_randnorm(n, m, S, V)
2% FLOPS_RANDNORM     Flops for randnorm.
3% Arguments same as randnorm.
4
5flops_randn = 18;
6if nargin == 1
7  f = n*flops_randn;
8  return;
9end
10d = rows(m);
11f = d*n*flops_randn;
12if nargin > 2
13  if nargin == 4
14    if d == 1
15      f = f + flops_sqrt*cols(S);
16    else
17      f = f + flops_chol(d);
18    end
19  end
20  f = f + flops_mul(d,d,n);
21end
22f = f + d*n;
Note: See TracBrowser for help on using the repository browser.