libflame  revision_anchor
Functions
FLA_Symm_ll_unb_var2.c File Reference

(r)

Functions

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

Function Documentation

◆ FLA_Symm_ll_unb_var2()

FLA_Error FLA_Symm_ll_unb_var2 ( 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_TL );
33 
34  FLA_Part_2x1( B, &BT,
35  &BB, 0, FLA_TOP );
36 
37  FLA_Part_2x1( C, &CT,
38  &CB, 0, FLA_TOP );
39 
40  while ( FLA_Obj_length( ATL ) < FLA_Obj_length( A ) ){
41 
42  FLA_Repart_2x2_to_3x3( ATL, /**/ ATR, &A00, /**/ &a01, &A02,
43  /* ************* */ /* ************************** */
44  &a10t, /**/ &alpha11, &a12t,
45  ABL, /**/ ABR, &A20, /**/ &a21, &A22,
46  1, 1, FLA_BR );
47 
48  FLA_Repart_2x1_to_3x1( BT, &B0,
49  /* ** */ /* ** */
50  &b1t,
51  BB, &B2, 1, FLA_BOTTOM );
52 
53  FLA_Repart_2x1_to_3x1( CT, &C0,
54  /* ** */ /* ** */
55  &c1t,
56  CB, &C2, 1, FLA_BOTTOM );
57 
58  /*------------------------------------------------------------*/
59 
60  /* c1t = c1t + a10t * B0 */
61  /* c1t' = c1t' + B0' * a10t' */
62  FLA_Gemv_external( FLA_TRANSPOSE, alpha, B0, a10t, FLA_ONE, c1t );
63 
64  /* c1t = c1t + a21' * B2 */
65  /* c1t' = c1t' + B2' * a21 */
66  FLA_Gemv_external( FLA_TRANSPOSE, alpha, B2, a21, FLA_ONE, c1t );
67 
68  /* c1t = c1t + alpha11 * b1t */
69  FLA_Axpys_external( alpha, alpha11, b1t, FLA_ONE, c1t );
70 
71  /*------------------------------------------------------------*/
72 
73  FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, a01, /**/ A02,
74  a10t, alpha11, /**/ a12t,
75  /* ************** */ /* ************************ */
76  &ABL, /**/ &ABR, A20, a21, /**/ A22,
77  FLA_TL );
78 
79  FLA_Cont_with_3x1_to_2x1( &BT, B0,
80  b1t,
81  /* ** */ /* ** */
82  &BB, B2, FLA_TOP );
83 
84  FLA_Cont_with_3x1_to_2x1( &CT, C0,
85  c1t,
86  /* ** */ /* ** */
87  &CB, C2, FLA_TOP );
88 
89  }
90 
91  return FLA_SUCCESS;
92 }
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_Gemv_external(FLA_Trans transa, FLA_Obj alpha, FLA_Obj A, FLA_Obj x, FLA_Obj beta, FLA_Obj y)
Definition: FLA_Gemv_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_Gemv_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_Symm_ll().