repo.or.cz
/
wrf-fire-matlab.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
gitinore *.txt files
[wrf-fire-matlab.git]
/
detection
/
solve_saddle_test.m
blob
9ec1a7a69510b748af5368655b36e28aecab6a4e
1
% set up test problem
2
m=10;n=1;
3
A = rand(m);
4
C = zeros(m,n); C(1:n,:)=eye(n);
5
V = 0;
6
C = rand(m,n);
7
delta=rand(m,1);delta(1:n,1)=0;
8
lambda=rand(n,1);
9
H=rand(m,1);
10
F = A*delta + C*lambda - A*H;
11
V = C'*delta;
12
delta2 = solve_saddle(C,H,F,V,@(X)A\X);
13
err=big(delta-delta2)