libflame revision_anchor
Functions
FLA_Apply_Q_UT_inc_lhfc.h File Reference

(r)

Go to the source code of this file.

Functions

FLA_Error FLA_Apply_Q_UT_inc_lhfc_blk_var1 (FLA_Obj A, FLA_Obj TW, FLA_Obj W1, FLA_Obj B, fla_apqutinc_t *cntl)
 

Function Documentation

◆ FLA_Apply_Q_UT_inc_lhfc_blk_var1()

FLA_Error FLA_Apply_Q_UT_inc_lhfc_blk_var1 ( FLA_Obj  A,
FLA_Obj  TW,
FLA_Obj  W1,
FLA_Obj  B,
fla_apqutinc_t cntl 
)
14{
15 FLA_Obj ATL, ATR, A00, A01, A02,
16 ABL, ABR, A10, A11, A12,
17 A20, A21, A22;
18
19 FLA_Obj TTL, WTR, T00, W01, W02,
20 TBL, TBR, T10, T11, W12,
21 T20, T21, T22;
22
23 FLA_Obj BT, B0,
24 BB, B1,
25 B2;
26
27 dim_t b;
28
29 FLA_Part_2x2( A, &ATL, &ATR,
30 &ABL, &ABR, 0, 0, FLA_TL );
31
33 &TBL, &TBR, 0, 0, FLA_TL );
34
35 FLA_Part_2x1( B, &BT,
36 &BB, 0, FLA_TOP );
37
38 while ( FLA_Obj_min_dim( ABR ) > 0 ){
39
41
42 FLA_Repart_2x2_to_3x3( ATL, /**/ ATR, &A00, /**/ &A01, &A02,
43 /* ************* */ /* ******************** */
44 &A10, /**/ &A11, &A12,
45 ABL, /**/ ABR, &A20, /**/ &A21, &A22,
46 b, b, FLA_BR );
47
48 FLA_Repart_2x2_to_3x3( TTL, /**/ WTR, &T00, /**/ &W01, &W02,
49 /* ************* */ /* ******************** */
50 &T10, /**/ &T11, &W12,
51 TBL, /**/ TBR, &T20, /**/ &T21, &T22,
52 b, b, FLA_BR );
53
55 /* ** */ /* ** */
56 &B1,
57 BB, &B2, b, FLA_BOTTOM );
58
59 /*------------------------------------------------------------*/
60
61 /*
62 Apply Q^H to B1 from the left:
63
64 B1 = Q^H * B1
65
66 where Q is formed from A11 and T11. Note that W1 refers
67 to a row-panel of blocks where each block refers to an
68 nb_alg-by-b row-panel of workspace.
69 */
70
72 A11, T11, W1, B1,
73 FLA_Cntl_sub_apqut( cntl ) );
74
75 /*
76 Apply Q^H to B1 and B2 from the left:
77
78 / B1 \ = Q^H * / B1 \
79 \ B2 / \ B2 /
80
81 where Q is formed from A21 and T21.
82 */
83
85 A21, T21, W1, B1,
86 B2,
87 FLA_Cntl_sub_apq2ut( cntl ) );
88
89 /*------------------------------------------------------------*/
90
91 FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, A01, /**/ A02,
92 A10, A11, /**/ A12,
93 /* ************** */ /* ****************** */
94 &ABL, /**/ &ABR, A20, A21, /**/ A22,
95 FLA_TL );
96
97 FLA_Cont_with_3x3_to_2x2( &TTL, /**/ &WTR, T00, W01, /**/ W02,
98 T10, T11, /**/ W12,
99 /* ************** */ /* ****************** */
100 &TBL, /**/ &TBR, T20, T21, /**/ T22,
101 FLA_TL );
102
104 B1,
105 /* ** */ /* ** */
106 &BB, B2, FLA_TOP );
107
108 }
109
110 return FLA_SUCCESS;
111}
FLA_Error FLA_Apply_Q2_UT_internal(FLA_Side side, FLA_Trans trans, FLA_Direct direct, FLA_Store storev, FLA_Obj D, FLA_Obj T, FLA_Obj W, FLA_Obj C, FLA_Obj E, fla_apq2ut_t *cntl)
Definition FLA_Apply_Q2_UT_internal.c:17
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_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
FLA_Error FLA_Cont_with_3x1_to_2x1(FLA_Obj *AT, FLA_Obj A0, FLA_Obj A1, FLA_Obj *AB, FLA_Obj A2, FLA_Side side)
Definition FLA_View.c:428
FLA_Error FLA_Repart_2x1_to_3x1(FLA_Obj AT, FLA_Obj *A0, FLA_Obj *A1, FLA_Obj AB, FLA_Obj *A2, dim_t mb, FLA_Side side)
Definition FLA_View.c:226
FLA_Error FLA_Part_2x1(FLA_Obj A, FLA_Obj *A1, FLA_Obj *A2, dim_t mb, FLA_Side side)
Definition FLA_View.c:76
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
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_Q2_UT_internal(), FLA_Apply_Q_UT_internal(), FLA_Cont_with_3x1_to_2x1(), FLA_Cont_with_3x3_to_2x2(), FLA_Determine_blocksize(), FLA_Obj_min_dim(), FLA_Part_2x1(), FLA_Part_2x2(), FLA_Repart_2x1_to_3x1(), FLA_Repart_2x2_to_3x3(), and i.

Referenced by FLA_Apply_Q_UT_inc_lhfc().