Functions | |
FLA_Error | FLA_Gemm_hh_unb_var4 (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_Gemvc_external(), FLA_Obj_length(), FLA_ONE, FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), FLA_Repart_2x1_to_3x1(), and FLA_Scal_external().
00038 { 00039 FLA_Obj BT, B0, 00040 BB, b1t, 00041 B2; 00042 00043 FLA_Obj CL, CR, C0, c1, C2; 00044 00045 FLA_Scal_external( beta, C ); 00046 00047 FLA_Part_2x1( B, &BT, 00048 &BB, 0, FLA_BOTTOM ); 00049 00050 FLA_Part_1x2( C, &CL, &CR, 0, FLA_RIGHT ); 00051 00052 while ( FLA_Obj_length( BB ) < FLA_Obj_length( B ) ){ 00053 00054 FLA_Repart_2x1_to_3x1( BT, &B0, 00055 &b1t, 00056 /* ** */ /* *** */ 00057 BB, &B2, 1, FLA_TOP ); 00058 00059 FLA_Repart_1x2_to_1x3( CL, /**/ CR, &C0, &c1, /**/ &C2, 00060 1, FLA_LEFT ); 00061 00062 /*------------------------------------------------------------*/ 00063 00064 /* c1 = A' * b1t' + c1 */ 00065 FLA_Gemvc_external( FLA_CONJ_TRANSPOSE, FLA_CONJUGATE, alpha, A, b1t, FLA_ONE, c1 ); 00066 00067 /*------------------------------------------------------------*/ 00068 00069 FLA_Cont_with_3x1_to_2x1( &BT, B0, 00070 /* ** */ /* *** */ 00071 b1t, 00072 &BB, B2, FLA_BOTTOM ); 00073 00074 FLA_Cont_with_1x3_to_1x2( &CL, /**/ &CR, C0, /**/ c1, C2, 00075 FLA_RIGHT ); 00076 00077 } 00078 00079 return FLA_SUCCESS; 00080 }