mirror of
https://github.com/jlengrand/LAFF.git
synced 2026-03-10 08:31:21 +00:00
41 lines
1.1 KiB
Matlab
Executable File
41 lines
1.1 KiB
Matlab
Executable File
function [ y_out ] = mvmult_n_unb_var2( A, x, y )
|
|
|
|
[ AL, AR ] = FLA_Part_1x2( A, ...
|
|
0, 'FLA_LEFT' );
|
|
|
|
[ xT, ...
|
|
xB ] = FLA_Part_2x1( x, ...
|
|
0, 'FLA_TOP' );
|
|
|
|
while ( size( AL, 2 ) < size( A, 2 ) )
|
|
|
|
[ A0, a1, A2 ]= FLA_Repart_1x2_to_1x3( AL, AR, ...
|
|
1, 'FLA_RIGHT' );
|
|
|
|
[ x0, ...
|
|
chi1, ...
|
|
x2 ] = FLA_Repart_2x1_to_3x1( xT, ...
|
|
xB, ...
|
|
1, 'FLA_BOTTOM' );
|
|
|
|
%------------------------------------------------------------%
|
|
|
|
y = laff_axpy( chi1, a1, y );
|
|
|
|
%------------------------------------------------------------%
|
|
|
|
[ AL, AR ] = FLA_Cont_with_1x3_to_1x2( A0, a1, A2, ...
|
|
'FLA_LEFT' );
|
|
|
|
[ xT, ...
|
|
xB ] = FLA_Cont_with_3x1_to_2x1( x0, ...
|
|
chi1, ...
|
|
x2, ...
|
|
'FLA_TOP' );
|
|
|
|
end
|
|
|
|
y_out = y;
|
|
|
|
return
|