Debian Codegraph @

src/lapack/dec/q/qrutinc/front/matlab/FLA_QR_UT_blk_var1.m

raw
1 %
2 %
3 % Copyright (C) 2014, The University of Texas at Austin
4 %
5 % This file is part of libflame and is available under the 3-Clause
6 % BSD license, which can be found in the LICENSE file at the top-level
7 % directory, or at http://opensource.org/licenses/BSD-3-Clause
8 %
9 %
10 A21 ], T1T );
11
12 [ A11, ...
13 A21 ] = FLA_Part_2x1( U1, b, 'FLA_TOP' );
14
15 if ( size( A12, 2 ) > 0 )
16
17 [ W12T, ...
18 W12B ] = FLA_Part_2x1( T2, b, 'FLA_TOP' );
19
20 U11 = trilu( A11 );
21 U21 = A21;
22
23 W12T = inv( triu( T1T ) )' * ( U11' * A12 + U21' * A22 );
24
25 A12 = A12 - U11 * W12T;
26 A22 = A22 - U21 * W12T;
27
28 end
29
30 T1 = [ T1T
31 T2B ];
32
33 %------------------------------------------------------------%
34
35 [ ATL, ATR, ...
36 ABL, ABR ] = FLA_Cont_with_3x3_to_2x2( A00, A01, A02, ...
37 A10, A11, A12, ...
38 A20, A21, A22, ...
39 'FLA_TL' );
40
41 [ TL, TR ] = FLA_Cont_with_1x3_to_1x2( T0, T1, T2, ...
42 'FLA_LEFT' );
43
44 end
45
46 A_out = [ ATL, ATR
47 ABL, ABR ];
48
49 T_out = [ TL, TR ];
50
51 return