source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/test_logsumexp.m
@
177
Last change on this file since 177 was 37, checked in by , 15 years ago | |
---|---|
File size: 235 bytes |
Line | |
---|---|
1 | x = [-Inf; -Inf]; |
2 | if(logsumexp(x) ~= -Inf) |
3 | error('logsumexp([-Inf; -Inf]) should be -Inf'); |
4 | end |
5 | %logsumexpv(x) |
6 | |
7 | x = rand(1000,1); |
8 | tic; for iter = 1:1000 logsumexp(x); end; toc |
9 | %tic; for iter = 1:1000 logsumexpv(x); end; toc |
Note: See TracBrowser
for help on using the repository browser.