libflame  revision_anchor
Functions
FLA_Hemm_lu_unb_var7.c File Reference

(r)

Functions

FLA_Error FLA_Hemm_lu_unb_var7 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C)
 

Function Documentation

◆ FLA_Hemm_lu_unb_var7()

FLA_Error FLA_Hemm_lu_unb_var7 ( FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B,
FLA_Obj  beta,
FLA_Obj  C 
)
16 {
17  FLA_Obj ATL, ATR, A00, a01, A02,
18  ABL, ABR, a10t, alpha11, a12t,
19  A20, a21, A22;
20 
21  FLA_Obj BT, B0,
22  BB, b1t,
23  B2;
24 
25  FLA_Obj CT, C0,
26  CB, c1t,
27  C2;
28 
29  FLA_Scal_external( beta, C );
30 
31  FLA_Part_2x2( A, &ATL, &ATR,
32  &ABL, &ABR, 0, 0, FLA_BR );
33 
34  FLA_Part_2x1( B, &BT,
35  &BB, 0, FLA_BOTTOM );
36 
37  FLA_Part_2x1( C, &CT,
38  &CB, 0, FLA_BOTTOM );
39 
40  while ( FLA_Obj_length( ABR ) < FLA_Obj_length( A ) ){
41 
42  FLA_Repart_2x2_to_3x3( ATL, /**/ ATR, &A00, &a01, /**/ &A02,
43  &a10t, &alpha11, /**/ &a12t,
44  /* ************* */ /* ************************** */
45  ABL, /**/ ABR, &A20, &a21, /**/ &A22,
46  1, 1, FLA_TL );
47 
48  FLA_Repart_2x1_to_3x1( BT, &B0,
49  &b1t,
50  /* ** */ /* ** */
51  BB, &B2, 1, FLA_TOP );
52 
53  FLA_Repart_2x1_to_3x1( CT, &C0,
54  &c1t,
55  /* ** */ /* ** */
56  CB, &C2, 1, FLA_TOP );
57 
58  /*------------------------------------------------------------*/
59 
60  /* C0 = C0 + a01 * b1t */
61  FLA_Ger_external( alpha, a01, b1t, C0 );
62 
63  /* c1t = c1t + a01' * B0 */
64  /* c1t' = c1t' + B0' * a01 */
65  FLA_Gemvc_external( FLA_TRANSPOSE, FLA_CONJUGATE, alpha, B0, a01, FLA_ONE, c1t );
66 
67  /* c1t = c1t + alpha11 * b1t */
68  FLA_Axpys_external( alpha, alpha11, b1t, FLA_ONE, c1t );
69 
70  /*------------------------------------------------------------*/
71 
72  FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, /**/ a01, A02,
73  /* ************** */ /* ************************ */
74  a10t, /**/ alpha11, a12t,
75  &ABL, /**/ &ABR, A20, /**/ a21, A22,
76  FLA_BR );
77 
78  FLA_Cont_with_3x1_to_2x1( &BT, B0,
79  /* ** */ /* ** */
80  b1t,
81  &BB, B2, FLA_BOTTOM );
82 
83  FLA_Cont_with_3x1_to_2x1( &CT, C0,
84  /* ** */ /* ** */
85  c1t,
86  &CB, C2, FLA_BOTTOM );
87 
88  }
89 
90  return FLA_SUCCESS;
91 }
FLA_Error FLA_Axpys_external(FLA_Obj alpha0, FLA_Obj alpha1, FLA_Obj A, FLA_Obj beta, FLA_Obj B)
Definition: FLA_Axpys_external.c:13
FLA_Error FLA_Scal_external(FLA_Obj alpha, FLA_Obj A)
Definition: FLA_Scal_external.c:13
FLA_Error FLA_Gemvc_external(FLA_Trans transa, FLA_Conj conjx, FLA_Obj alpha, FLA_Obj A, FLA_Obj x, FLA_Obj beta, FLA_Obj y)
Definition: FLA_Gemvc_external.c:13
FLA_Error FLA_Ger_external(FLA_Obj alpha, FLA_Obj x, FLA_Obj y, FLA_Obj A)
Definition: FLA_Ger_external.c:13
FLA_Obj FLA_ONE
Definition: FLA_Init.c:18
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
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
Definition: FLA_type_defs.h:159

References FLA_Axpys_external(), FLA_Cont_with_3x1_to_2x1(), FLA_Cont_with_3x3_to_2x2(), FLA_Gemvc_external(), FLA_Ger_external(), FLA_Obj_length(), FLA_ONE, FLA_Part_2x1(), FLA_Part_2x2(), FLA_Repart_2x1_to_3x1(), FLA_Repart_2x2_to_3x3(), and FLA_Scal_external().

Referenced by FLA_Hemm_lu().