rbmatlab
1.13.10
Main Page
Related Pages
Modules
Packages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Groups
Pages
rbasis
problem_types
struct
ellipt_compliant
RBcheck.m
Go to the documentation of this file.
1
function
res =
RBcheck
(RB,G,NOS)
2
%
function
res =
RBcheck
(RB)
3
% => Ergebnis RB
' * G * RB = eye;
4
% check result
5
6
7
8
check=[];
9
check=RB'
*G*RB; %should be eye(NOS);
10
%trace_check=trace(check); %should be NOS
11
%matrix_check=sum(sum(check)); %should be NOS
12
err = max(max(abs(check - eye(NOS))));
13
14
if
err < 1e-6
15
%disp('RB passed');
16
res=1;
17
else
18
%disp(
'RB problem'
);
19
res=0;
20
end
Generated on Mon Oct 14 2013 08:51:38 for rbmatlab by
1.8.2-20120930