mirror of
https://github.com/jlengrand/LAFF.git
synced 2026-03-10 08:31:21 +00:00
33 lines
1000 B
Matlab
Executable File
33 lines
1000 B
Matlab
Executable File
function [ A_out ] = Symmetrize_from_lower_triangle_unb_var2( A )
|
|
|
|
[ ATL, ATR, ...
|
|
ABL, ABR ] = FLA_Part_2x2( A, ...
|
|
0, 0, 'FLA_TL' );
|
|
|
|
while ( size( ATL, 1 ) < size( A, 1 ) )
|
|
|
|
[ A00, a01, A02, ...
|
|
a10t, alpha11, a12t, ...
|
|
A20, a21, A22 ] = FLA_Repart_2x2_to_3x3( ATL, ATR, ...
|
|
ABL, ABR, ...
|
|
1, 1, 'FLA_BR' );
|
|
|
|
%------------------------------------------------------------%
|
|
|
|
a12t = laff_copy( a21, a12t );
|
|
|
|
%------------------------------------------------------------%
|
|
|
|
[ ATL, ATR, ...
|
|
ABL, ABR ] = FLA_Cont_with_3x3_to_2x2( A00, a01, A02, ...
|
|
a10t, alpha11, a12t, ...
|
|
A20, a21, A22, ...
|
|
'FLA_TL' );
|
|
|
|
end
|
|
|
|
A_out = [ ATL, ATR
|
|
ABL, ABR ];
|
|
|
|
return
|