Functions | |
FLA_Error | FLA_Syr2k_un_unb_var10 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C) |
References FLA_Cont_with_1x3_to_1x2(), FLA_Obj_width(), FLA_Part_1x2(), FLA_Repart_1x2_to_1x3(), FLA_Scalr_external(), and FLA_Syr2_external().
00038 { 00039 FLA_Obj AL, AR, A0, a1t, A2; 00040 00041 FLA_Obj BL, BR, B0, b1t, B2; 00042 00043 FLA_Scalr_external( FLA_UPPER_TRIANGULAR, beta, C ); 00044 00045 FLA_Part_1x2( A, &AL, &AR, 0, FLA_RIGHT ); 00046 00047 FLA_Part_1x2( B, &BL, &BR, 0, FLA_RIGHT ); 00048 00049 while ( FLA_Obj_width( AR ) < FLA_Obj_width( A ) ){ 00050 00051 00052 FLA_Repart_1x2_to_1x3( AL, /**/ AR, &A0, &a1t, /**/ &A2, 00053 1, FLA_LEFT ); 00054 00055 FLA_Repart_1x2_to_1x3( BL, /**/ BR, &B0, &b1t, /**/ &B2, 00056 1, FLA_LEFT ); 00057 00058 /*------------------------------------------------------------*/ 00059 00060 /* C = C + a1t * b1t' + b1t * a1t' */ 00061 FLA_Syr2_external( FLA_UPPER_TRIANGULAR, alpha, a1t, b1t, C ); 00062 00063 /*------------------------------------------------------------*/ 00064 00065 FLA_Cont_with_1x3_to_1x2( &AL, /**/ &AR, A0, /**/ a1t, A2, 00066 FLA_RIGHT ); 00067 00068 FLA_Cont_with_1x3_to_1x2( &BL, /**/ &BR, B0, /**/ b1t, B2, 00069 FLA_RIGHT ); 00070 00071 } 00072 00073 return FLA_SUCCESS; 00074 }