libflame  revision_anchor
Functions
FLA_Apply_CAQ2_UT_lhfc_blk_var2.c File Reference

(r)

Functions

FLA_Error FLA_Apply_CAQ2_UT_lhfc_blk_var2 (FLA_Obj D, FLA_Obj T, FLA_Obj W1, FLA_Obj C, FLA_Obj E, fla_apcaq2ut_t *cntl)
 

Function Documentation

◆ FLA_Apply_CAQ2_UT_lhfc_blk_var2()

FLA_Error FLA_Apply_CAQ2_UT_lhfc_blk_var2 ( FLA_Obj  D,
FLA_Obj  T,
FLA_Obj  W1,
FLA_Obj  C,
FLA_Obj  E,
fla_apcaq2ut_t cntl 
)
15 {
16  FLA_Obj DT, D0,
17  DB, D1,
18  D2;
19 
20  FLA_Obj TT, T0,
21  TB, T1,
22  T2;
23 
24  FLA_Obj ET, E0,
25  EB, E1,
26  E2;
27 
28  dim_t b;
29 
30  FLA_Part_2x1( D, &DT,
31  &DB, 0, FLA_TOP );
32 
33  FLA_Part_2x1( T, &TT,
34  &TB, 0, FLA_TOP );
35 
36  FLA_Part_2x1( E, &ET,
37  &EB, 0, FLA_TOP );
38 
39  while ( FLA_Obj_length( DT ) < FLA_Obj_length( D ) ){
40 
41  b = FLA_Determine_blocksize( DB, FLA_BOTTOM, FLA_Cntl_blocksize( cntl ) );
42 
43  FLA_Repart_2x1_to_3x1( DT, &D0,
44  /* ** */ /* ** */
45  &D1,
46  DB, &D2, b, FLA_BOTTOM );
47 
48  FLA_Repart_2x1_to_3x1( TT, &T0,
49  /* ** */ /* ** */
50  &T1,
51  TB, &T2, b, FLA_BOTTOM );
52 
53  FLA_Repart_2x1_to_3x1( ET, &E0,
54  /* ** */ /* ** */
55  &E1,
56  EB, &E2, b, FLA_BOTTOM );
57 
58  /*------------------------------------------------------------*/
59 
60  // / C \ = Q' / C \
61  // \ E1 / \ E1 /
62  //
63  // where Q is formed from D1 and T1.
64 
65  FLA_Apply_CAQ2_UT_internal( FLA_LEFT, FLA_CONJ_TRANSPOSE, FLA_FORWARD, FLA_COLUMNWISE,
66  D1, T1, W1, C,
67  E1, FLA_Cntl_sub_apcaq2ut( cntl ) );
68 
69  /*------------------------------------------------------------*/
70 
71  FLA_Cont_with_3x1_to_2x1( &DT, D0,
72  D1,
73  /* ** */ /* ** */
74  &DB, D2, FLA_TOP );
75 
76  FLA_Cont_with_3x1_to_2x1( &TT, T0,
77  T1,
78  /* ** */ /* ** */
79  &TB, T2, FLA_TOP );
80 
81  FLA_Cont_with_3x1_to_2x1( &ET, E0,
82  E1,
83  /* ** */ /* ** */
84  &EB, E2, FLA_TOP );
85  }
86 
87  return FLA_SUCCESS;
88 }
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_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
dim_t FLA_Obj_length(FLA_Obj obj)
Definition: FLA_Query.c:116
dim_t FLA_Determine_blocksize(FLA_Obj A_unproc, FLA_Quadrant to_dir, fla_blocksize_t *cntl_blocksizes)
Definition: FLA_Blocksize.c:234
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_Determine_blocksize(), FLA_Obj_length(), FLA_Part_2x1(), and FLA_Repart_2x1_to_3x1().

Referenced by FLA_Apply_CAQ2_UT_lhfc().