source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/flops_randnorm.m
@
177
Last change on this file since 177 was 37, checked in by , 15 years ago | |
---|---|
File size: 412 bytes |
Line | |
---|---|
1 | function f = flops_randnorm(n, m, S, V) |
2 | % FLOPS_RANDNORM Flops for randnorm. |
3 | % Arguments same as randnorm. |
4 | |
5 | flops_randn = 18; |
6 | if nargin == 1 |
7 | f = n*flops_randn; |
8 | return; |
9 | end |
10 | d = rows(m); |
11 | f = d*n*flops_randn; |
12 | if 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); |
21 | end |
22 | f = f + d*n; |
Note: See TracBrowser
for help on using the repository browser.