libflame revision_anchor
Functions
FLA_Eig_gest_iu_unb_var3.c File Reference

(r)

Functions

FLA_Error FLA_Eig_gest_iu_unb_var3 (FLA_Obj A, FLA_Obj Y, FLA_Obj B)
 

Function Documentation

◆ FLA_Eig_gest_iu_unb_var3()

FLA_Error FLA_Eig_gest_iu_unb_var3 ( FLA_Obj  A,
FLA_Obj  Y,
FLA_Obj  B 
)
14{
15 FLA_Obj ATL, ATR, A00, a01, A02,
17 A20, a21, A22;
18
19 FLA_Obj BTL, BTR, B00, b01, B02,
21 B20, b21, B22;
22
24 YBL, YBR, y10t, psi11, y12t,
25 Y20, y21, Y22;
26
27 FLA_Part_2x2( A, &ATL, &ATR,
28 &ABL, &ABR, 0, 0, FLA_TL );
29
30 FLA_Part_2x2( B, &BTL, &BTR,
31 &BBL, &BBR, 0, 0, FLA_TL );
32
33 FLA_Part_2x2( Y, &YTL, &YTR,
34 &YBL, &YBR, 0, 0, FLA_TL );
35
36 while ( FLA_Obj_length( ATL ) < FLA_Obj_length( A ) ){
37
38 FLA_Repart_2x2_to_3x3( ATL, /**/ ATR, &A00, /**/ &a01, &A02,
39 /* ************* */ /* ************************** */
40 &a10t, /**/ &alpha11, &a12t,
41 ABL, /**/ ABR, &A20, /**/ &a21, &A22,
42 1, 1, FLA_BR );
43
44 FLA_Repart_2x2_to_3x3( BTL, /**/ BTR, &B00, /**/ &b01, &B02,
45 /* ************* */ /* ************************* */
46 &b10t, /**/ &beta11, &b12t,
47 BBL, /**/ BBR, &B20, /**/ &b21, &B22,
48 1, 1, FLA_BR );
49
50 FLA_Repart_2x2_to_3x3( YTL, /**/ YTR, &Y00, /**/ &y01, &Y02,
51 /* ************* */ /* ************************ */
52 &y10t, /**/ &psi11, &y12t,
53 YBL, /**/ YBR, &Y20, /**/ &y21, &Y22,
54 1, 1, FLA_BR );
55
56 /*------------------------------------------------------------*/
57
58 // a01 = a01 - 1/2 * y01;
60
61 // alpha11 = alpha11 - a01' * b01 - b01' * a01;
63
64 // alpha11 = inv(beta11) * alpha11 * inv(conj(beta11));
65 // = inv(beta11) * alpha11 * inv(beta11);
68
69 // a12t = a12t - b01' * A02;
70 // a12t^T = a12t^T - A02^T * conj(b01);
73
74 // a12t = inv(conj(beta11)) * a12t;
75 // a12t = inv(beta11) * a12t;
77
78 // a01 = a01 - 1/2 * y01;
80
81 // a01 = a01 * inv(beta11);
83
84 // Y02 = Y02 + a01 * b12t;
86
87 // y12t = alpha11 * b12t;
90
91 // y12t = y12t + a01' * B02;
92 // y12t^T = y12t^T + B02^T * conj(a01);
95
96 /*------------------------------------------------------------*/
97
98 FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, a01, /**/ A02,
99 a10t, alpha11, /**/ a12t,
100 /* ************** */ /* ************************ */
101 &ABL, /**/ &ABR, A20, a21, /**/ A22,
102 FLA_TL );
103
104 FLA_Cont_with_3x3_to_2x2( &BTL, /**/ &BTR, B00, b01, /**/ B02,
105 b10t, beta11, /**/ b12t,
106 /* ************** */ /* *********************** */
107 &BBL, /**/ &BBR, B20, b21, /**/ B22,
108 FLA_TL );
109
110 FLA_Cont_with_3x3_to_2x2( &YTL, /**/ &YTR, Y00, y01, /**/ Y02,
111 y10t, psi11, /**/ y12t,
112 /* ************** */ /* ********************** */
113 &YBL, /**/ &YBR, Y20, y21, /**/ Y22,
114 FLA_TL );
115 }
116
117 return FLA_SUCCESS;
118}
FLA_Error FLA_Inv_scal_external(FLA_Obj alpha, FLA_Obj A)
Definition FLA_Inv_scal_external.c:13
FLA_Error FLA_Scal_external(FLA_Obj alpha, FLA_Obj A)
Definition FLA_Scal_external.c:13
FLA_Error FLA_Axpy_external(FLA_Obj alpha, FLA_Obj A, FLA_Obj B)
Definition FLA_Axpy_external.c:13
FLA_Error FLA_Dot2cs_external(FLA_Conj conj, FLA_Obj alpha, FLA_Obj x, FLA_Obj y, FLA_Obj beta, FLA_Obj rho)
Definition FLA_Dot2cs_external.c:13
FLA_Error FLA_Copy_external(FLA_Obj A, FLA_Obj B)
Definition FLA_Copy_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_MINUS_ONE_HALF
Definition FLA_Init.c:21
FLA_Obj FLA_MINUS_ONE
Definition FLA_Init.c:22
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
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_Axpy_external(), FLA_Cont_with_3x3_to_2x2(), FLA_Copy_external(), FLA_Dot2cs_external(), FLA_Gemvc_external(), FLA_Ger_external(), FLA_Inv_scal_external(), FLA_MINUS_ONE, FLA_MINUS_ONE_HALF, FLA_Obj_length(), FLA_ONE, FLA_Part_2x2(), FLA_Repart_2x2_to_3x3(), FLA_Scal_external(), and i.

Referenced by FLA_Eig_gest_iu().