Functions | |
FLA_Error | FLA_Syrk_un_unb_var2 (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_Dots_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_TOP ); 00051 00052 FLA_Part_2x2( C, &CTL, &CTR, 00053 &CBL, &CBR, 0, 0, FLA_TL ); 00054 00055 while ( FLA_Obj_length( AT ) < FLA_Obj_length( A ) ){ 00056 00057 FLA_Repart_2x1_to_3x1( AT, &A0, 00058 /* ** */ /* *** */ 00059 &a1t, 00060 AB, &A2, 1, FLA_BOTTOM ); 00061 00062 FLA_Repart_2x2_to_3x3( CTL, /**/ CTR, &C00, /**/ &c01, &C02, 00063 /* ************* */ /* ************************** */ 00064 &c10t, /**/ &gamma11, &c12t, 00065 CBL, /**/ CBR, &C20, /**/ &c21, &C22, 00066 1, 1, FLA_BR ); 00067 00068 /*------------------------------------------------------------*/ 00069 00070 /* c01 = c01 + A0 * a1t' */ 00071 FLA_Gemv_external( FLA_NO_TRANSPOSE, alpha, A0, a1t, FLA_ONE, c01 ); 00072 00073 /* gamma11 = gamma11 + a1t * a1t' */ 00074 FLA_Dots_external( alpha, a1t, a1t, FLA_ONE, gamma11 ); 00075 00076 /*------------------------------------------------------------*/ 00077 00078 FLA_Cont_with_3x1_to_2x1( &AT, A0, 00079 a1t, 00080 /* ** */ /* *** */ 00081 &AB, A2, FLA_TOP ); 00082 00083 FLA_Cont_with_3x3_to_2x2( &CTL, /**/ &CTR, C00, c01, /**/ C02, 00084 c10t, gamma11, /**/ c12t, 00085 /* ************** */ /* ************************ */ 00086 &CBL, /**/ &CBR, C20, c21, /**/ C22, 00087 FLA_TL ); 00088 00089 } 00090 00091 return FLA_SUCCESS; 00092 }