Functions | |
FLA_Error | FLA_Her2k_un_unb_var3 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C) |
References FLA_Cont_with_3x1_to_2x1(), FLA_Cont_with_3x3_to_2x2(), FLA_Dot2cs_external(), FLA_Gemv_external(), FLA_Gemvc_external(), FLA_Obj_length(), FLA_ONE, FLA_Part_2x1(), FLA_Part_2x2(), FLA_Repart_2x1_to_3x1(), and FLA_Repart_2x2_to_3x3().
00036 { 00037 FLA_Obj AT, A0, 00038 AB, a1t, 00039 A2; 00040 00041 FLA_Obj BT, B0, 00042 BB, b1t, 00043 B2; 00044 00045 FLA_Obj CTL, CTR, C00, c01, C02, 00046 CBL, CBR, c10t, gamma11, c12t, 00047 C20, c21, C22; 00048 00049 00050 FLA_Part_2x1( A, &AT, 00051 &AB, 0, FLA_TOP ); 00052 00053 FLA_Part_2x1( B, &BT, 00054 &BB, 0, FLA_TOP ); 00055 00056 FLA_Part_2x2( C, &CTL, &CTR, 00057 &CBL, &CBR, 0, 0, FLA_TL ); 00058 00059 while ( FLA_Obj_length( AT ) < FLA_Obj_length( A ) ){ 00060 00061 00062 FLA_Repart_2x1_to_3x1( AT, &A0, 00063 /* ** */ /* ** */ 00064 &a1t, 00065 AB, &A2, 1, FLA_BOTTOM ); 00066 00067 FLA_Repart_2x1_to_3x1( BT, &B0, 00068 /* ** */ /* ** */ 00069 &b1t, 00070 BB, &B2, 1, FLA_BOTTOM ); 00071 00072 FLA_Repart_2x2_to_3x3( CTL, /**/ CTR, &C00, /**/ &c01, &C02, 00073 /* ************* */ /* ************************** */ 00074 &c10t, /**/ &gamma11, &c12t, 00075 CBL, /**/ CBR, &C20, /**/ &c21, &C22, 00076 1, 1, FLA_BR ); 00077 00078 /*------------------------------------------------------------*/ 00079 00080 /* c01 = c01 + A0 * b1t' */ 00081 FLA_Gemvc_external( FLA_NO_TRANSPOSE, FLA_CONJUGATE, alpha, A0, b1t, beta, c01 ); 00082 00083 /* c12t = c12t + b1t * A2' */ 00084 FLA_Gemv_external( FLA_CONJ_NO_TRANSPOSE, alpha, A2, b1t, FLA_ONE, c12t ); 00085 00086 /* gamma11 = gamma11 + a1t * b1t' + b1t * a1t' */ 00087 FLA_Dot2cs_external( FLA_CONJUGATE, alpha, a1t, b1t, beta, gamma11 ); 00088 00089 /*------------------------------------------------------------*/ 00090 00091 FLA_Cont_with_3x1_to_2x1( &AT, A0, 00092 a1t, 00093 /* ** */ /* ** */ 00094 &AB, A2, FLA_TOP ); 00095 00096 FLA_Cont_with_3x1_to_2x1( &BT, B0, 00097 b1t, 00098 /* ** */ /* ** */ 00099 &BB, B2, FLA_TOP ); 00100 00101 FLA_Cont_with_3x3_to_2x2( &CTL, /**/ &CTR, C00, c01, /**/ C02, 00102 c10t, gamma11, /**/ c12t, 00103 /* ************** */ /* ************************ */ 00104 &CBL, /**/ &CBR, C20, c21, /**/ C22, 00105 FLA_TL ); 00106 00107 } 00108 00109 return FLA_SUCCESS; 00110 }