libflame revision_anchor
Functions
FLA_QR_UT_blk_var3.c File Reference

(r)

Functions

FLA_Error FLA_QR_UT_blk_var3 (FLA_Obj A, FLA_Obj TW, fla_qrut_t *cntl)
 

Function Documentation

◆ FLA_QR_UT_blk_var3()

FLA_Error FLA_QR_UT_blk_var3 ( FLA_Obj  A,
FLA_Obj  TW,
fla_qrut_t cntl 
)
14{
15 FLA_Obj ATL, ATR, A00, A01, A02,
16 ABL, ABR, A10, A11, A12,
17 A20, A21, A22;
18
20 TWBL, TWBR, TW10, T11, W12,
21 TW20, TW21, TW22;
22
24
25 dim_t b;
26
27 FLA_Part_2x2( A, &ATL, &ATR,
28 &ABL, &ABR, 0, 0, FLA_TL );
29
31 &TWBL, &TWBR, 0, 0, FLA_TL );
32
33 while ( FLA_Obj_min_dim( ABR ) > 0 ){
34
36
37 FLA_Repart_2x2_to_3x3( ATL, /**/ ATR, &A00, /**/ &A01, &A02,
38 /* ************* */ /* ******************** */
39 &A10, /**/ &A11, &A12,
40 ABL, /**/ ABR, &A20, /**/ &A21, &A22,
41 b, b, FLA_BR );
42
43 FLA_Repart_2x2_to_3x3( TWTL, /**/ TWTR, &TW00, /**/ &TW01, &TW02,
44 /* ************* */ /* ******************** */
45 &TW10, /**/ &T11, &W12,
46 TWBL, /**/ TWBR, &TW20, /**/ &TW21, &TW22,
47 b, b, FLA_BR );
48
49 /*------------------------------------------------------------*/
50
52 A21, &AB1 );
53
54 // Perform a QR factorization via the UT transform on AB1:
55 //
56 // / A11 \ -> QB1 R11
57 // \ A21 /
58 //
59 // where:
60 // - QB1 is formed from UB1 (which is stored column-wise below the
61 // diagonal of AB1) and T11 (which is stored to the upper triangle
62 // of T11).
63 // - R11 is stored to the upper triangle of AB1.
64
66 FLA_Cntl_sub_qrut( cntl ) );
67
68
69 if ( FLA_Obj_width( A12 ) > 0 )
70 {
72 A22, &AB2 );
73
74 // Apply the Householder transforms associated with UB1 and T11 to
75 // AB2:
76 //
77 // / A12 \ := QB1' / A12 \
78 // \ A22 / \ A22 /
79 //
80 // where QB1 is formed from UB1 and T11.
81
83 AB1, T11, W12, AB2,
84 FLA_Cntl_sub_apqut( cntl ) );
85 }
86
87 /*------------------------------------------------------------*/
88
89 FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, A01, /**/ A02,
90 A10, A11, /**/ A12,
91 /* ************** */ /* ****************** */
92 &ABL, /**/ &ABR, A20, A21, /**/ A22,
93 FLA_TL );
94
96 TW10, T11, /**/ W12,
97 /* ************** */ /* ****************** */
98 &TWBL, /**/ &TWBR, TW20, TW21, /**/ TW22,
99 FLA_TL );
100 }
101
102 return FLA_SUCCESS;
103}
FLA_Error FLA_Apply_Q_UT_internal(FLA_Side side, FLA_Trans trans, FLA_Direct direct, FLA_Store storev, FLA_Obj A, FLA_Obj T, FLA_Obj W, FLA_Obj B, fla_apqut_t *cntl)
Definition FLA_Apply_Q_UT_internal.c:17
FLA_Error FLA_QR_UT_internal(FLA_Obj A, FLA_Obj T, fla_qrut_t *cntl)
Definition FLA_QR_UT_internal.c:17
FLA_Error FLA_Cont_with_3x3_to_2x2(FLA_Obj *ATL, FLA_Obj *ATR, FLA_Obj A00, FLA_Obj A01, FLA_Obj A02, FLA_Obj A10, FLA_Obj A11, FLA_Obj A12, FLA_Obj *ABL, FLA_Obj *ABR, FLA_Obj A20, FLA_Obj A21, FLA_Obj A22, FLA_Quadrant quadrant)
Definition FLA_View.c:304
FLA_Error FLA_Part_2x2(FLA_Obj A, FLA_Obj *A11, FLA_Obj *A12, FLA_Obj *A21, FLA_Obj *A22, dim_t mb, dim_t nb, FLA_Quadrant quadrant)
Definition FLA_View.c:17
dim_t FLA_Obj_width(FLA_Obj obj)
Definition FLA_Query.c:123
FLA_Error FLA_Repart_2x2_to_3x3(FLA_Obj ATL, FLA_Obj ATR, FLA_Obj *A00, FLA_Obj *A01, FLA_Obj *A02, FLA_Obj *A10, FLA_Obj *A11, FLA_Obj *A12, FLA_Obj ABL, FLA_Obj ABR, FLA_Obj *A20, FLA_Obj *A21, FLA_Obj *A22, dim_t mb, dim_t nb, FLA_Quadrant quadrant)
Definition FLA_View.c:142
dim_t FLA_Determine_blocksize(FLA_Obj A_unproc, FLA_Quadrant to_dir, fla_blocksize_t *cntl_blocksizes)
Definition FLA_Blocksize.c:234
FLA_Error FLA_Merge_2x1(FLA_Obj AT, FLA_Obj AB, FLA_Obj *A)
Definition FLA_View.c:541
dim_t FLA_Obj_min_dim(FLA_Obj obj)
Definition FLA_Query.c:153
unsigned long dim_t
Definition FLA_type_defs.h:71
int i
Definition bl1_axmyv2.c:145
Definition FLA_type_defs.h:159

References FLA_Apply_Q_UT_internal(), FLA_Cont_with_3x3_to_2x2(), FLA_Determine_blocksize(), FLA_Merge_2x1(), FLA_Obj_min_dim(), FLA_Obj_width(), FLA_Part_2x2(), FLA_QR_UT_internal(), FLA_Repart_2x2_to_3x3(), and i.

Referenced by FLA_QR_UT_internal().