Functions | |
FLA_Error | FLA_Trmm_lut_unb_var2 (FLA_Diag diagA, FLA_Obj alpha, FLA_Obj A, FLA_Obj B) |
References FLA_Cont_with_3x1_to_2x1(), FLA_Cont_with_3x3_to_2x2(), FLA_Ger_external(), FLA_Obj_length(), FLA_ONE, FLA_Part_2x1(), FLA_Part_2x2(), FLA_Repart_2x1_to_3x1(), FLA_Repart_2x2_to_3x3(), and FLA_Scal_external().
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_Scal_external( alpha, B ); 00048 00049 FLA_Part_2x2( A, &ATL, &ATR, 00050 &ABL, &ABR, 0, 0, FLA_BR ); 00051 00052 FLA_Part_2x1( B, &BT, 00053 &BB, 0, FLA_BOTTOM ); 00054 00055 while ( FLA_Obj_length( ABR ) < FLA_Obj_length( A ) ){ 00056 00057 FLA_Repart_2x2_to_3x3( ATL, /**/ ATR, &A00, &a01, /**/ &A02, 00058 &a10t, &alpha11, /**/ &a12t, 00059 /* ************* */ /* ************************** */ 00060 ABL, /**/ ABR, &A20, &a21, /**/ &A22, 00061 1, 1, FLA_TL ); 00062 00063 FLA_Repart_2x1_to_3x1( BT, &B0, 00064 &b1t, 00065 /* ** */ /* *** */ 00066 BB, &B2, 1, FLA_TOP ); 00067 00068 /*------------------------------------------------------------*/ 00069 00070 /* B2 = B2 + a12t' * b1t; */ 00071 FLA_Ger_external( FLA_ONE, a12t, b1t, B2 ); 00072 00073 /* b1t = alpha11 * b1t; */ 00074 if ( diagA != FLA_UNIT_DIAG ) 00075 FLA_Scal_external( alpha11, b1t ); 00076 00077 /*------------------------------------------------------------*/ 00078 00079 FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, /**/ a01, A02, 00080 /* ************** */ /* ************************ */ 00081 a10t, /**/ alpha11, a12t, 00082 &ABL, /**/ &ABR, A20, /**/ a21, A22, 00083 FLA_BR ); 00084 00085 FLA_Cont_with_3x1_to_2x1( &BT, B0, 00086 /* ** */ /* *** */ 00087 b1t, 00088 &BB, B2, FLA_BOTTOM ); 00089 00090 } 00091 00092 return FLA_SUCCESS; 00093 }