mirror of
https://github.com/jlengrand/LAFF.git
synced 2026-03-10 08:31:21 +00:00
51 lines
1.4 KiB
Matlab
Executable File
51 lines
1.4 KiB
Matlab
Executable File
function [ x_out ] = Trmv_ln_unb_var2( L, x )
|
|
|
|
[ LTL, LTR, ...
|
|
LBL, LBR ] = FLA_Part_2x2( L, ...
|
|
0, 0, 'FLA_BR' );
|
|
|
|
[ xT, ...
|
|
xB ] = FLA_Part_2x1( x, ...
|
|
0, 'FLA_BOTTOM' );
|
|
|
|
while ( size( LBR, 1 ) < size( L, 1 ) )
|
|
|
|
[ L00, l01, L02, ...
|
|
l10t, lambda11, l12t, ...
|
|
L20, l21, L22 ] = FLA_Repart_2x2_to_3x3( LTL, LTR, ...
|
|
LBL, LBR, ...
|
|
1, 1, 'FLA_TL' );
|
|
|
|
[ x0, ...
|
|
chi1, ...
|
|
x2 ] = FLA_Repart_2x1_to_3x1( xT, ...
|
|
xB, ...
|
|
1, 'FLA_TOP' );
|
|
|
|
%------------------------------------------------------------%
|
|
|
|
x2 = chi1 * l21 + x2;
|
|
chi1 = lambda11 * chi1;
|
|
|
|
%------------------------------------------------------------%
|
|
|
|
[ LTL, LTR, ...
|
|
LBL, LBR ] = FLA_Cont_with_3x3_to_2x2( L00, l01, L02, ...
|
|
l10t, lambda11, l12t, ...
|
|
L20, l21, L22, ...
|
|
'FLA_BR' );
|
|
|
|
[ xT, ...
|
|
xB ] = FLA_Cont_with_3x1_to_2x1( x0, ...
|
|
chi1, ...
|
|
x2, ...
|
|
'FLA_BOTTOM' );
|
|
|
|
end
|
|
|
|
x_out = [ xT
|
|
xB ];
|
|
|
|
return
|
|
|