libflame  revision_anchor
Functions
FLA_Apply_CAQ_UT_inc_lhfc_blk_var1.c File Reference

(r)

Functions

FLA_Error FLA_Apply_CAQ_UT_inc_lhfc_blk_var1 (FLA_Obj A, FLA_Obj TW, FLA_Obj W, FLA_Obj B, fla_apcaqutinc_t *cntl)
 

Function Documentation

◆ FLA_Apply_CAQ_UT_inc_lhfc_blk_var1()

FLA_Error FLA_Apply_CAQ_UT_inc_lhfc_blk_var1 ( FLA_Obj  A,
FLA_Obj  TW,
FLA_Obj  W,
FLA_Obj  B,
fla_apcaqutinc_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 
32  FLA_Part_2x2( TW, &TTL, &WTR,
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 
40  b = FLA_Determine_blocksize( ABR, FLA_BR, FLA_Cntl_blocksize( cntl ) );
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 
54  FLA_Repart_2x1_to_3x1( BT, &B0,
55  /* ** */ /* ** */
56  &B1,
57  BB, &B2, b, FLA_BOTTOM );
58 
59  /*------------------------------------------------------------*/
60 
61  /*
62  Apply Q^H to B1 and B2 from the left:
63 
64  / B1 \ = Q^H * / B1 \
65  \ B2 / \ B2 /
66 
67  where Q is formed from A21 and T21.
68  */
69 
70  FLA_Apply_CAQ2_UT_internal( FLA_LEFT, FLA_CONJ_TRANSPOSE, FLA_FORWARD, FLA_COLUMNWISE,
71  A21, T21, W, B1,
72  B2,
73  FLA_Cntl_sub_apcaq2ut( cntl ) );
74 
75  /*------------------------------------------------------------*/
76 
77  FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, A01, /**/ A02,
78  A10, A11, /**/ A12,
79  /* ************** */ /* ****************** */
80  &ABL, /**/ &ABR, A20, A21, /**/ A22,
81  FLA_TL );
82 
83  FLA_Cont_with_3x3_to_2x2( &TTL, /**/ &WTR, T00, W01, /**/ W02,
84  T10, T11, /**/ W12,
85  /* ************** */ /* ****************** */
86  &TBL, /**/ &TBR, T20, T21, /**/ T22,
87  FLA_TL );
88 
89  FLA_Cont_with_3x1_to_2x1( &BT, B0,
90  B1,
91  /* ** */ /* ** */
92  &BB, B2, FLA_TOP );
93 
94  }
95 
96  return FLA_SUCCESS;
97 }
FLA_Error FLA_Apply_CAQ2_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_apcaq2ut_t *cntl)
Definition: FLA_Apply_CAQ2_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
Definition: FLA_type_defs.h:159

References FLA_Apply_CAQ2_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(), and FLA_Repart_2x2_to_3x3().

Referenced by FLA_Apply_CAQ_UT_inc_lhfc().