libflame revision_anchor
Functions
FLA_Accum_T_UT_fc_unb_var1.c File Reference

(r)

Functions

FLA_Error FLA_Accum_T_UT_fc_unb_var1 (FLA_Obj A, FLA_Obj tau, FLA_Obj T)
 

Function Documentation

◆ FLA_Accum_T_UT_fc_unb_var1()

FLA_Error FLA_Accum_T_UT_fc_unb_var1 ( FLA_Obj  A,
FLA_Obj  tau,
FLA_Obj  T 
)
14{
15 FLA_Obj ATL, ATR, A00, a01, A02,
17 A20, a21, A22;
18
20 tauB, tau1,
21 tau2;
22
23 FLA_Obj TTL, TTR, T00, t01, T02,
24 TBL, TBR, t10t, tau11, t12t,
25 T20, t21, T22;
26
27
28 FLA_Part_2x2( A, &ATL, &ATR,
29 &ABL, &ABR, 0, 0, FLA_TL );
30
32 &tauB, 0, FLA_TOP );
33
34 FLA_Part_2x2( T, &TTL, &TTR,
35 &TBL, &TBR, 0, 0, FLA_TL );
36
37 while ( FLA_Obj_length( tauB ) > 0 ) {
38
39 FLA_Repart_2x2_to_3x3( ATL, /**/ ATR, &A00, /**/ &a01, &A02,
40 /* ************* */ /* ************************** */
41 &a10t, /**/ &alpha11, &a12t,
42 ABL, /**/ ABR, &A20, /**/ &a21, &A22,
43 1, 1, FLA_BR );
44
46 /* ** */ /* ** */
47 &tau1,
48 tauB, &tau2, 1, FLA_BOTTOM );
49
50 FLA_Repart_2x2_to_3x3( TTL, /**/ TTR, &T00, /**/ &t01, &T02,
51 /* ************* */ /* ************************ */
52 &t10t, /**/ &tau11, &t12t,
53 TBL, /**/ TBR, &T20, /**/ &t21, &T22,
54 1, 1, FLA_BR );
55
56 /*------------------------------------------------------------*/
57
58 // tau11 = tau1;
60
61 // t01 = a10t' + A20' * a21;
64
65 /*------------------------------------------------------------*/
66
67 FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, a01, /**/ A02,
68 a10t, alpha11, /**/ a12t,
69 /* ************** */ /* ************************ */
70 &ABL, /**/ &ABR, A20, a21, /**/ A22,
71 FLA_TL );
72
74 tau1,
75 /* ** */ /* ** */
76 &tauB, tau2, FLA_TOP );
77
78 FLA_Cont_with_3x3_to_2x2( &TTL, /**/ &TTR, T00, t01, /**/ T02,
79 t10t, tau11, /**/ t12t,
80 /* ************** */ /* ********************** */
81 &TBL, /**/ &TBR, T20, t21, /**/ T22,
82 FLA_TL );
83
84 }
85
86 return FLA_SUCCESS;
87}
FLA_Error FLA_Copyt_external(FLA_Trans trans, FLA_Obj A, FLA_Obj B)
Definition FLA_Copyt_external.c:13
FLA_Error FLA_Copy_external(FLA_Obj A, FLA_Obj B)
Definition FLA_Copy_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
int i
Definition bl1_axmyv2.c:145
Definition FLA_type_defs.h:159

References FLA_Cont_with_3x1_to_2x1(), FLA_Cont_with_3x3_to_2x2(), FLA_Copy_external(), FLA_Copyt_external(), 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 i.