Functions | |
FLA_Error | FLA_Apply_Q_UT_lhc_blk_var2 (FLA_Obj A, FLA_Obj T, FLA_Obj W, FLA_Obj B, fla_apqut_t *cntl) |
FLA_Error FLA_Apply_Q_UT_lhc_blk_var2 | ( | FLA_Obj | A, | |
FLA_Obj | T, | |||
FLA_Obj | W, | |||
FLA_Obj | B, | |||
fla_apqut_t * | cntl | |||
) |
References FLA_Apply_Q_UT_internal(), FLA_Cont_with_1x3_to_1x2(), FLA_Determine_blocksize(), FLA_Obj_width(), FLA_Part_1x2(), and FLA_Repart_1x2_to_1x3().
Referenced by FLA_Apply_Q_UT_lhc().
00036 { 00037 FLA_Obj BL, BR, B0, B1, B2; 00038 00039 FLA_Obj WL, WR, W0, W1, W2; 00040 00041 dim_t b; 00042 00043 FLA_Part_1x2( B, &BL, &BR, 0, FLA_LEFT ); 00044 00045 FLA_Part_1x2( W, &WL, &WR, 0, FLA_LEFT ); 00046 00047 while ( FLA_Obj_width( BL ) < FLA_Obj_width( B ) ){ 00048 00049 b = FLA_Determine_blocksize( BR, FLA_RIGHT, FLA_Cntl_blocksize( cntl ) ); 00050 00051 FLA_Repart_1x2_to_1x3( BL, /**/ BR, &B0, /**/ &B1, &B2, 00052 b, FLA_RIGHT ); 00053 00054 FLA_Repart_1x2_to_1x3( WL, /**/ WR, &W0, /**/ &W1, &W2, 00055 b, FLA_RIGHT ); 00056 00057 /*------------------------------------------------------------*/ 00058 00059 // B1 = Q^H * B1; 00060 FLA_Apply_Q_UT_internal( FLA_LEFT, FLA_CONJ_TRANSPOSE, FLA_COLUMNWISE, 00061 A, T, W1, B1, 00062 FLA_Cntl_sub_apqut( cntl ) ); 00063 00064 /*------------------------------------------------------------*/ 00065 00066 FLA_Cont_with_1x3_to_1x2( &BL, /**/ &BR, B0, B1, /**/ B2, 00067 FLA_LEFT ); 00068 00069 FLA_Cont_with_1x3_to_1x2( &WL, /**/ &WR, W0, W1, /**/ W2, 00070 FLA_LEFT ); 00071 } 00072 00073 return FLA_SUCCESS; 00074 }