Functions | |
FLA_Error | FLA_Herk_un_unb_var3 (FLA_Obj alpha, FLA_Obj A, FLA_Obj beta, FLA_Obj C) |
References FLA_Cont_with_3x1_to_2x1(), FLA_Cont_with_3x3_to_2x2(), FLA_Dotcs_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 FLA_Scalr_external().
00038 { 00039 FLA_Obj AT, A0, 00040 AB, a1t, 00041 A2; 00042 00043 FLA_Obj CTL, CTR, C00, c01, C02, 00044 CBL, CBR, c10t, gamma11, c12t, 00045 C20, c21, C22; 00046 00047 FLA_Scalr_external( FLA_UPPER_TRIANGULAR, beta, C ); 00048 00049 FLA_Part_2x1( A, &AT, 00050 &AB, 0, FLA_BOTTOM ); 00051 00052 FLA_Part_2x2( C, &CTL, &CTR, 00053 &CBL, &CBR, 0, 0, FLA_BR ); 00054 00055 while ( FLA_Obj_length( AB ) < FLA_Obj_length( A ) ){ 00056 00057 FLA_Repart_2x1_to_3x1( AT, &A0, 00058 &a1t, 00059 /* ** */ /* *** */ 00060 AB, &A2, 1, FLA_TOP ); 00061 00062 FLA_Repart_2x2_to_3x3( CTL, /**/ CTR, &C00, &c01, /**/ &C02, 00063 &c10t, &gamma11, /**/ &c12t, 00064 /* ************* */ /* ************************** */ 00065 CBL, /**/ CBR, &C20, &c21, /**/ &C22, 00066 1, 1, FLA_TL ); 00067 00068 /*------------------------------------------------------------*/ 00069 00070 /* c12t = c12t + A2' * a1t' */ 00071 FLA_Gemv_external( FLA_CONJ_NO_TRANSPOSE, alpha, A2, a1t, FLA_ONE, c12t ); 00072 00073 /* gamma11 = gamma11 + a1t * a1t' */ 00074 FLA_Dotcs_external( FLA_CONJUGATE, alpha, a1t, a1t, FLA_ONE, gamma11 ); 00075 00076 /*------------------------------------------------------------*/ 00077 00078 FLA_Cont_with_3x1_to_2x1( &AT, A0, 00079 /* ** */ /* *** */ 00080 a1t, 00081 &AB, A2, FLA_BOTTOM ); 00082 00083 FLA_Cont_with_3x3_to_2x2( &CTL, /**/ &CTR, C00, /**/ c01, C02, 00084 /* ************** */ /* ************************ */ 00085 c10t, /**/ gamma11, c12t, 00086 &CBL, /**/ &CBR, C20, /**/ c21, C22, 00087 FLA_BR ); 00088 00089 } 00090 00091 return FLA_SUCCESS; 00092 }