|
libflame
revision_anchor
|
Functions | |
| FLA_Error | FLA_Apply_Q_UT_inc_lhfc_blk_var1 (FLA_Obj A, FLA_Obj TW, FLA_Obj W1, FLA_Obj B, fla_apqutinc_t *cntl) |
| FLA_Error FLA_Apply_Q_UT_inc_lhfc_blk_var1 | ( | FLA_Obj | A, |
| FLA_Obj | TW, | ||
| FLA_Obj | W1, | ||
| FLA_Obj | B, | ||
| fla_apqutinc_t * | cntl | ||
| ) |
References FLA_Apply_Q2_UT_internal(), FLA_Apply_Q_UT_internal(), FLA_Cont_with_3x1_to_2x1(), FLA_Cont_with_3x3_to_2x2(), FLA_Determine_blocksize(), FLA_Obj_min_dim(), FLA_Part_2x1(), FLA_Part_2x2(), FLA_Repart_2x1_to_3x1(), and FLA_Repart_2x2_to_3x3().
Referenced by FLA_Apply_Q_UT_inc_lhfc().
{
FLA_Obj ATL, ATR, A00, A01, A02,
ABL, ABR, A10, A11, A12,
A20, A21, A22;
FLA_Obj TTL, WTR, T00, W01, W02,
TBL, TBR, T10, T11, W12,
T20, T21, T22;
FLA_Obj BT, B0,
BB, B1,
B2;
dim_t b;
FLA_Part_2x2( A, &ATL, &ATR,
&ABL, &ABR, 0, 0, FLA_TL );
FLA_Part_2x2( TW, &TTL, &WTR,
&TBL, &TBR, 0, 0, FLA_TL );
FLA_Part_2x1( B, &BT,
&BB, 0, FLA_TOP );
while ( FLA_Obj_min_dim( ABR ) > 0 ){
b = FLA_Determine_blocksize( ABR, FLA_BR, FLA_Cntl_blocksize( cntl ) );
FLA_Repart_2x2_to_3x3( ATL, /**/ ATR, &A00, /**/ &A01, &A02,
/* ************* */ /* ******************** */
&A10, /**/ &A11, &A12,
ABL, /**/ ABR, &A20, /**/ &A21, &A22,
b, b, FLA_BR );
FLA_Repart_2x2_to_3x3( TTL, /**/ WTR, &T00, /**/ &W01, &W02,
/* ************* */ /* ******************** */
&T10, /**/ &T11, &W12,
TBL, /**/ TBR, &T20, /**/ &T21, &T22,
b, b, FLA_BR );
FLA_Repart_2x1_to_3x1( BT, &B0,
/* ** */ /* ** */
&B1,
BB, &B2, b, FLA_BOTTOM );
/*------------------------------------------------------------*/
/*
Apply Q^H to B1 from the left:
B1 = Q^H * B1
where Q is formed from A11 and T11. Note that W1 refers
to a row-panel of blocks where each block refers to an
nb_alg-by-b row-panel of workspace.
*/
FLA_Apply_Q_UT_internal( FLA_LEFT, FLA_CONJ_TRANSPOSE, FLA_FORWARD, FLA_COLUMNWISE,
A11, T11, W1, B1,
FLA_Cntl_sub_apqut( cntl ) );
/*
Apply Q^H to B1 and B2 from the left:
/ B1 \ = Q^H * / B1 \
\ B2 / \ B2 /
where Q is formed from A21 and T21.
*/
FLA_Apply_Q2_UT_internal( FLA_LEFT, FLA_CONJ_TRANSPOSE, FLA_FORWARD, FLA_COLUMNWISE,
A21, T21, W1, B1,
B2,
FLA_Cntl_sub_apq2ut( cntl ) );
/*------------------------------------------------------------*/
FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, A01, /**/ A02,
A10, A11, /**/ A12,
/* ************** */ /* ****************** */
&ABL, /**/ &ABR, A20, A21, /**/ A22,
FLA_TL );
FLA_Cont_with_3x3_to_2x2( &TTL, /**/ &WTR, T00, W01, /**/ W02,
T10, T11, /**/ W12,
/* ************** */ /* ****************** */
&TBL, /**/ &TBR, T20, T21, /**/ T22,
FLA_TL );
FLA_Cont_with_3x1_to_2x1( &BT, B0,
B1,
/* ** */ /* ** */
&BB, B2, FLA_TOP );
}
return FLA_SUCCESS;
}
1.7.6.1