Functions | |
FLA_Error | FLA_Syr2k_ln_unb_var1 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C) |
References FLA_Cont_with_3x1_to_2x1(), FLA_Cont_with_3x3_to_2x2(), FLA_Dot2s_external(), FLA_Gemv_external(), FLA_Obj_length(), FLA_ONE, FLA_Part_2x1(), FLA_Part_2x2(), FLA_Repart_2x1_to_3x1(), and FLA_Repart_2x2_to_3x3().
00038 { 00039 FLA_Obj AT, A0, 00040 AB, a1t, 00041 A2; 00042 00043 FLA_Obj BT, B0, 00044 BB, b1t, 00045 B2; 00046 00047 FLA_Obj CTL, CTR, C00, c01, C02, 00048 CBL, CBR, c10t, gamma11, c12t, 00049 C20, c21, C22; 00050 00051 00052 FLA_Part_2x1( A, &AT, 00053 &AB, 0, FLA_TOP ); 00054 00055 FLA_Part_2x1( B, &BT, 00056 &BB, 0, FLA_TOP ); 00057 00058 FLA_Part_2x2( C, &CTL, &CTR, 00059 &CBL, &CBR, 0, 0, FLA_TL ); 00060 00061 while ( FLA_Obj_length( AT ) < FLA_Obj_length( A ) ){ 00062 00063 00064 FLA_Repart_2x1_to_3x1( AT, &A0, 00065 /* ** */ /* ** */ 00066 &a1t, 00067 AB, &A2, 1, FLA_BOTTOM ); 00068 00069 FLA_Repart_2x1_to_3x1( BT, &B0, 00070 /* ** */ /* ** */ 00071 &b1t, 00072 BB, &B2, 1, FLA_BOTTOM ); 00073 00074 FLA_Repart_2x2_to_3x3( CTL, /**/ CTR, &C00, /**/ &c01, &C02, 00075 /* ************* */ /* ************************** */ 00076 &c10t, /**/ &gamma11, &c12t, 00077 CBL, /**/ CBR, &C20, /**/ &c21, &C22, 00078 1, 1, FLA_BR ); 00079 00080 /*------------------------------------------------------------*/ 00081 00082 /* c10t = c10t + a1t * B0' */ 00083 FLA_Gemv_external( FLA_NO_TRANSPOSE, alpha, B0, a1t, beta, c10t ); 00084 00085 /* c10t = c10t + b1t * A0' */ 00086 FLA_Gemv_external( FLA_NO_TRANSPOSE, alpha, A0, b1t, FLA_ONE, c10t ); 00087 00088 /* gamma11 = gamma11 + a1t * b1t' + b1t * a1t' */ 00089 FLA_Dot2s_external( alpha, a1t, b1t, beta, gamma11 ); 00090 00091 /*------------------------------------------------------------*/ 00092 00093 FLA_Cont_with_3x1_to_2x1( &AT, A0, 00094 a1t, 00095 /* ** */ /* ** */ 00096 &AB, A2, FLA_TOP ); 00097 00098 FLA_Cont_with_3x1_to_2x1( &BT, B0, 00099 b1t, 00100 /* ** */ /* ** */ 00101 &BB, B2, FLA_TOP ); 00102 00103 FLA_Cont_with_3x3_to_2x2( &CTL, /**/ &CTR, C00, c01, /**/ C02, 00104 c10t, gamma11, /**/ c12t, 00105 /* ************** */ /* ************************ */ 00106 &CBL, /**/ &CBR, C20, c21, /**/ C22, 00107 FLA_TL ); 00108 00109 } 00110 00111 return FLA_SUCCESS; 00112 }