Functions | |
FLA_Error | FLA_Hemm_lu_unb_var5 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C) |
References FLA_Axpys_external(), FLA_Cont_with_3x1_to_2x1(), FLA_Cont_with_3x3_to_2x2(), FLA_Gemv_external(), FLA_Gerc_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 ATL, ATR, A00, a01, A02, 00040 ABL, ABR, a10t, alpha11, a12t, 00041 A20, a21, A22; 00042 00043 FLA_Obj BT, B0, 00044 BB, b1t, 00045 B2; 00046 00047 FLA_Obj CT, C0, 00048 CB, c1t, 00049 C2; 00050 00051 00052 FLA_Part_2x2( A, &ATL, &ATR, 00053 &ABL, &ABR, 0, 0, FLA_BR ); 00054 00055 FLA_Part_2x1( B, &BT, 00056 &BB, 0, FLA_BOTTOM ); 00057 00058 FLA_Part_2x1( C, &CT, 00059 &CB, 0, FLA_BOTTOM ); 00060 00061 while ( FLA_Obj_length( ABR ) < FLA_Obj_length( A ) ){ 00062 00063 00064 FLA_Repart_2x2_to_3x3( ATL, /**/ ATR, &A00, &a01, /**/ &A02, 00065 &a10t, &alpha11, /**/ &a12t, 00066 /* ************* */ /* ************************** */ 00067 ABL, /**/ ABR, &A20, &a21, /**/ &A22, 00068 1, 1, FLA_TL ); 00069 00070 FLA_Repart_2x1_to_3x1( BT, &B0, 00071 &b1t, 00072 /* ** */ /* ** */ 00073 BB, &B2, 1, FLA_TOP ); 00074 00075 FLA_Repart_2x1_to_3x1( CT, &C0, 00076 &c1t, 00077 /* ** */ /* ** */ 00078 CB, &C2, 1, FLA_TOP ); 00079 00080 /*------------------------------------------------------------*/ 00081 00082 /* c1t = c1t + alpha11 * b1t */ 00083 FLA_Axpys_external( alpha, alpha11, b1t, beta, c1t ); 00084 00085 /* c1t = c1t + a12t * B2 */ 00086 /* c1t' = c1t' + B2' * a12t' */ 00087 FLA_Gemv_external( FLA_TRANSPOSE, alpha, B2, a12t, FLA_ONE, c1t ); 00088 00089 /* C2 = C2 + a12t' * b1t */ 00090 FLA_Gerc_external( FLA_CONJUGATE, FLA_NO_CONJUGATE, alpha, a12t, b1t, C2 ); 00091 00092 /*------------------------------------------------------------*/ 00093 00094 FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, /**/ a01, A02, 00095 /* ************** */ /* ************************ */ 00096 a10t, /**/ alpha11, a12t, 00097 &ABL, /**/ &ABR, A20, /**/ a21, A22, 00098 FLA_BR ); 00099 00100 FLA_Cont_with_3x1_to_2x1( &BT, B0, 00101 /* ** */ /* ** */ 00102 b1t, 00103 &BB, B2, FLA_BOTTOM ); 00104 00105 FLA_Cont_with_3x1_to_2x1( &CT, C0, 00106 /* ** */ /* ** */ 00107 c1t, 00108 &CB, C2, FLA_BOTTOM ); 00109 00110 } 00111 00112 return FLA_SUCCESS; 00113 }