Functions | |
FLA_Error | FLA_Syrk_ut_unb_var6 (FLA_Obj alpha, FLA_Obj A, FLA_Obj beta, FLA_Obj C) |
References FLA_Cont_with_3x1_to_2x1(), FLA_Obj_length(), FLA_Part_2x1(), FLA_Repart_2x1_to_3x1(), FLA_Scalr_external(), and FLA_Syr_external().
00038 { 00039 FLA_Obj AT, A0, 00040 AB, a1t, 00041 A2; 00042 00043 FLA_Scalr_external( FLA_UPPER_TRIANGULAR, beta, C ); 00044 00045 FLA_Part_2x1( A, &AT, 00046 &AB, 0, FLA_BOTTOM ); 00047 00048 while ( FLA_Obj_length( AB ) < FLA_Obj_length( A ) ){ 00049 00050 FLA_Repart_2x1_to_3x1( AT, &A0, 00051 &a1t, 00052 /* ** */ /* *** */ 00053 AB, &A2, 1, FLA_TOP ); 00054 00055 /*------------------------------------------------------------*/ 00056 00057 /* C := C + a1t' * a1t */ 00058 FLA_Syr_external( FLA_UPPER_TRIANGULAR, alpha, a1t, C ); 00059 00060 /*------------------------------------------------------------*/ 00061 00062 FLA_Cont_with_3x1_to_2x1( &AT, A0, 00063 /* ** */ /* *** */ 00064 a1t, 00065 &AB, A2, FLA_BOTTOM ); 00066 00067 } 00068 00069 return FLA_SUCCESS; 00070 }