libflame revision_anchor
FLA_Symm_lu_unb_var3.c File Reference

(r)

Functions

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

Function Documentation

◆ FLA_Symm_lu_unb_var3()

FLA_Error FLA_Symm_lu_unb_var3 ( 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 + alpha11 * b1t */
61 FLA_Axpys_external( alpha, alpha11, b1t, FLA_ONE, c1t );
62
63 /* c1t = c1t + a12t * B2 */
64 /* c1t' = c1t' + B2' * a12t' */
65 FLA_Gemv_external( FLA_TRANSPOSE, alpha, B2, a12t, FLA_ONE, c1t );
66
67 /* C2 = C2 + a12t' * b1t */
68 FLA_Ger_external( alpha, a12t, b1t, C2 );
69
70 /*------------------------------------------------------------*/
71
72 FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, a01, /**/ A02,
73 a10t, alpha11, /**/ a12t,
74 /* ************** */ /* ************************ */
75 &ABL, /**/ &ABR, A20, a21, /**/ A22,
76 FLA_TL );
77
79 b1t,
80 /* ** */ /* ** */
81 &BB, B2, FLA_TOP );
82
84 c1t,
85 /* ** */ /* ** */
86 &CB, C2, FLA_TOP );
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_Ger_external(FLA_Obj alpha, FLA_Obj x, FLA_Obj y, FLA_Obj A)
Definition FLA_Ger_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_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_Symm_lu().