rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
riccati_low_rank_factor_errors.m
Go to the documentation of this file.
1 function errs = riccati_low_rank_factor_errors(V, Z, z0)
2 % Calculate the projection error for all columns in the low rank factor in
3 % Z for the given basis V.
4 %
5 % Andreas Schmidt, 2015
6 errs = zeros(size(Z,2),1);
7 
8 parfor i=1:size(Z,2)
9  z = Z(:,i);
10  if ~isempty(V)
11  z = z - V*(V'*z);
12  end
13 
14  errs(i) = norm(z)/z0;
15 end
function errs = riccati_low_rank_factor_errors(V, Z, z0)
Calculate the projection error for all columns in the low rank factor in Z for the given basis V...