Functions | |
FLA_Error | FLA_Her2k_lh_unb_var2 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C) |
References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x3_to_2x2(), FLA_Dot2cs_external(), FLA_Gemv_external(), FLA_Gemvc_external(), FLA_Obj_width(), FLA_ONE, FLA_Part_1x2(), FLA_Part_2x2(), FLA_Repart_1x2_to_1x3(), and FLA_Repart_2x2_to_3x3().
00038 { 00039 FLA_Obj AL, AR, A0, a1t, A2; 00040 00041 FLA_Obj BL, BR, B0, b1t, B2; 00042 00043 FLA_Obj CTL, CTR, C00, c01, C02, 00044 CBL, CBR, c10t, gamma11, c12t, 00045 C20, c21, C22; 00046 00047 00048 FLA_Part_1x2( A, &AL, &AR, 0, FLA_LEFT ); 00049 00050 FLA_Part_1x2( B, &BL, &BR, 0, FLA_LEFT ); 00051 00052 FLA_Part_2x2( C, &CTL, &CTR, 00053 &CBL, &CBR, 0, 0, FLA_TL ); 00054 00055 while ( FLA_Obj_width( AL ) < FLA_Obj_width( A ) ){ 00056 00057 00058 FLA_Repart_1x2_to_1x3( AL, /**/ AR, &A0, /**/ &a1t, &A2, 00059 1, FLA_RIGHT ); 00060 00061 FLA_Repart_1x2_to_1x3( BL, /**/ BR, &B0, /**/ &b1t, &B2, 00062 1, FLA_RIGHT ); 00063 00064 FLA_Repart_2x2_to_3x3( CTL, /**/ CTR, &C00, /**/ &c01, &C02, 00065 /* ************* */ /* ************************** */ 00066 &c10t, /**/ &gamma11, &c12t, 00067 CBL, /**/ CBR, &C20, /**/ &c21, &C22, 00068 1, 1, FLA_BR ); 00069 00070 /*------------------------------------------------------------*/ 00071 00072 /* c10t = c10t + b1t' * A0 */ 00073 FLA_Gemvc_external( FLA_TRANSPOSE, FLA_CONJUGATE, alpha, A0, b1t, beta, c10t ); 00074 00075 /* c21 = c21 + A2' * b1t */ 00076 FLA_Gemv_external( FLA_CONJ_TRANSPOSE, alpha, A2, b1t, FLA_ONE, c21 ); 00077 00078 /* gamma11 = gamma11 + a1t' * b1t + b1t' * a1t */ 00079 FLA_Dot2cs_external( FLA_CONJUGATE, alpha, a1t, b1t, beta, gamma11 ); 00080 00081 /*------------------------------------------------------------*/ 00082 00083 FLA_Cont_with_1x3_to_1x2( &AL, /**/ &AR, A0, a1t, /**/ A2, 00084 FLA_LEFT ); 00085 00086 FLA_Cont_with_1x3_to_1x2( &BL, /**/ &BR, B0, b1t, /**/ B2, 00087 FLA_LEFT ); 00088 00089 FLA_Cont_with_3x3_to_2x2( &CTL, /**/ &CTR, C00, c01, /**/ C02, 00090 c10t, gamma11, /**/ c12t, 00091 /* ************** */ /* ************************ */ 00092 &CBL, /**/ &CBR, C20, c21, /**/ C22, 00093 FLA_TL ); 00094 00095 } 00096 00097 return FLA_SUCCESS; 00098 }