Functions | |
FLA_Error | FLA_Gemm_tt_unb_var6 (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_3x1_to_2x1(), FLA_Ger_external(), FLA_Obj_length(), FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), FLA_Repart_2x1_to_3x1(), and FLA_Scal_external().
00038 { 00039 FLA_Obj AT, A0, 00040 AB, a1t, 00041 A2; 00042 00043 FLA_Obj BL, BR, B0, b1, B2; 00044 00045 FLA_Scal_external( beta, C ); 00046 00047 FLA_Part_2x1( A, &AT, 00048 &AB, 0, FLA_BOTTOM ); 00049 00050 FLA_Part_1x2( B, &BL, &BR, 0, FLA_RIGHT ); 00051 00052 while ( FLA_Obj_length( AB ) < FLA_Obj_length( A ) ){ 00053 00054 FLA_Repart_2x1_to_3x1( AT, &A0, 00055 &a1t, 00056 /* ** */ /* *** */ 00057 AB, &A2, 1, FLA_TOP ); 00058 00059 FLA_Repart_1x2_to_1x3( BL, /**/ BR, &B0, &b1, /**/ &B2, 00060 1, FLA_LEFT ); 00061 00062 /*------------------------------------------------------------*/ 00063 00064 /* C = a1t' * b1' + C */ 00065 FLA_Ger_external( alpha, a1t, b1, C ); 00066 00067 /*------------------------------------------------------------*/ 00068 00069 FLA_Cont_with_3x1_to_2x1( &AT, A0, 00070 /* ** */ /* *** */ 00071 a1t, 00072 &AB, A2, FLA_BOTTOM ); 00073 00074 FLA_Cont_with_1x3_to_1x2( &BL, /**/ &BR, B0, /**/ b1, B2, 00075 FLA_RIGHT ); 00076 00077 } 00078 00079 return FLA_SUCCESS; 00080 }