Functions | |
FLA_Error | FLA_Hemm_rl_unb_var10 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C) |
References FLA_Cont_with_3x1_to_2x1(), FLA_Hemvc_external(), FLA_Obj_length(), FLA_Part_2x1(), and FLA_Repart_2x1_to_3x1().
00038 { 00039 FLA_Obj BT, B0, 00040 BB, b1t, 00041 B2; 00042 00043 FLA_Obj CT, C0, 00044 CB, c1t, 00045 C2; 00046 00047 00048 FLA_Part_2x1( B, &BT, 00049 &BB, 0, FLA_BOTTOM ); 00050 00051 FLA_Part_2x1( C, &CT, 00052 &CB, 0, FLA_BOTTOM ); 00053 00054 while ( FLA_Obj_length( BB ) < FLA_Obj_length( B ) ){ 00055 00056 00057 FLA_Repart_2x1_to_3x1( BT, &B0, 00058 &b1t, 00059 /* ** */ /* ** */ 00060 BB, &B2, 1, FLA_TOP ); 00061 00062 FLA_Repart_2x1_to_3x1( CT, &C0, 00063 &c1t, 00064 /* ** */ /* ** */ 00065 CB, &C2, 1, FLA_TOP ); 00066 00067 /*------------------------------------------------------------*/ 00068 00069 /* c1t = c1t + b1t * A */ 00070 /* c1t' = c1t' + A' * b1t' */ 00071 FLA_Hemvc_external( FLA_LOWER_TRIANGULAR, FLA_CONJUGATE, alpha, A, b1t, beta, c1t ); 00072 00073 /*------------------------------------------------------------*/ 00074 00075 FLA_Cont_with_3x1_to_2x1( &BT, B0, 00076 /* ** */ /* ** */ 00077 b1t, 00078 &BB, B2, FLA_BOTTOM ); 00079 00080 FLA_Cont_with_3x1_to_2x1( &CT, C0, 00081 /* ** */ /* ** */ 00082 c1t, 00083 &CB, C2, FLA_BOTTOM ); 00084 00085 } 00086 00087 return FLA_SUCCESS; 00088 }