libflame revision_anchor
Functions
FLA_Apply_Q_UT_inc_lnfc_blk_var1.c File Reference

(r)

Functions

FLA_Error FLA_Apply_Q_UT_inc_lnfc_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_lnfc_blk_var1()

FLA_Error FLA_Apply_Q_UT_inc_lnfc_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;
29
30 // If m > n, then we have to initialize our partitionings carefully so
31 // that we begin in the proper location in A and B (since we traverse
32 // matrix A from BR to TL).
33 if ( FLA_Obj_length( A ) > FLA_Obj_width( A ) )
34 {
36 n_BR = 0;
37 }
38 else
39 {
40 m_BR = 0;
41 n_BR = 0;
42 }
43
44 FLA_Part_2x2( A, &ATL, &ATR,
45 &ABL, &ABR, m_BR, n_BR, FLA_BR );
46
48 &TBL, &TBR, m_BR, n_BR, FLA_BR );
49
50 FLA_Part_2x1( B, &BT,
51 &BB, m_BR, FLA_BOTTOM );
52
53 while ( FLA_Obj_min_dim( ATL ) > 0 ){
54
56
57 FLA_Repart_2x2_to_3x3( ATL, /**/ ATR, &A00, &A01, /**/ &A02,
58 &A10, &A11, /**/ &A12,
59 /* ************* */ /* ******************** */
60 ABL, /**/ ABR, &A20, &A21, /**/ &A22,
61 b, b, FLA_TL );
62
63 FLA_Repart_2x2_to_3x3( TTL, /**/ WTR, &T00, &W01, /**/ &W02,
64 &T10, &T11, /**/ &W12,
65 /* ************* */ /* ******************** */
66 TBL, /**/ TBR, &T20, &T21, /**/ &T22,
67 b, b, FLA_TL );
68
70 &B1,
71 /* ** */ /* ** */
72 BB, &B2, b, FLA_TOP );
73
74 /*------------------------------------------------------------*/
75
76 /*
77 Apply Q^H to B1 and B2 from the left:
78
79 / B1 \ = Q^H * / B1 \
80 \ B2 / \ B2 /
81
82 where Q is formed from A21 and T21.
83 */
84
86 A21, T21, W1, B1,
87 B2,
88 FLA_Cntl_sub_apq2ut( cntl ) );
89
90 /*
91 Apply Q^H to B1 from the left:
92
93 B1 = Q^H * B1
94
95 where Q is formed from A11 and T11. Note that W1 refers
96 to a row-panel of blocks where each block refers to an
97 nb_alg-by-b row-panel of workspace.
98 */
99
101 A11, T11, W1, B1,
102 FLA_Cntl_sub_apqut( cntl ) );
103
104 /*------------------------------------------------------------*/
105
106 FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, /**/ A01, A02,
107 /* ************** */ /* ****************** */
108 A10, /**/ A11, A12,
109 &ABL, /**/ &ABR, A20, /**/ A21, A22,
110 FLA_BR );
111
112 FLA_Cont_with_3x3_to_2x2( &TTL, /**/ &WTR, T00, /**/ W01, W02,
113 /* ************** */ /* ****************** */
114 T10, /**/ T11, W12,
115 &TBL, /**/ &TBR, T20, /**/ T21, T22,
116 FLA_BR );
117
119 /* ** */ /* ** */
120 B1,
121 &BB, B2, FLA_BOTTOM );
122
123 }
124
125 return FLA_SUCCESS;
126}
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
dim_t FLA_Obj_width(FLA_Obj obj)
Definition FLA_Query.c:123
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
dim_t FLA_Obj_length(FLA_Obj obj)
Definition FLA_Query.c:116
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_length(), FLA_Obj_min_dim(), FLA_Obj_width(), 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_lnfc().