Functions | |
FLA_Error | FLA_Hemm_lu_unb_var6 (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_Gemvc_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 + a01' * B0 */ 00083 /* c1t' = c1t' + B0' * a01 */ 00084 FLA_Gemvc_external( FLA_TRANSPOSE, FLA_CONJUGATE, alpha, B0, a01, FLA_ONE, c1t ); 00085 00086 /* c1t = c1t + alpha11 * b1t */ 00087 FLA_Axpys_external( alpha, alpha11, b1t, beta, c1t ); 00088 00089 /* c1t = c1t + a12t * B2 */ 00090 /* c1t' = c1t' + B2' * a12t' */ 00091 FLA_Gemv_external( FLA_TRANSPOSE, alpha, B2, a12t, FLA_ONE, c1t ); 00092 00093 /*------------------------------------------------------------*/ 00094 00095 FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, /**/ a01, A02, 00096 /* ************** */ /* ************************ */ 00097 a10t, /**/ alpha11, a12t, 00098 &ABL, /**/ &ABR, A20, /**/ a21, A22, 00099 FLA_BR ); 00100 00101 FLA_Cont_with_3x1_to_2x1( &BT, B0, 00102 /* ** */ /* ** */ 00103 b1t, 00104 &BB, B2, FLA_BOTTOM ); 00105 00106 FLA_Cont_with_3x1_to_2x1( &CT, C0, 00107 /* ** */ /* ** */ 00108 c1t, 00109 &CB, C2, FLA_BOTTOM ); 00110 00111 } 00112 00113 return FLA_SUCCESS; 00114 }