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