|
libflame
revision_anchor
|
Functions | |
| FLA_Error | FLA_Hess_UT_recover_tau_submatrix (FLA_Obj T, FLA_Obj t) |
| FLA_Error | FLA_Hess_UT_recover_tau (FLA_Obj T, FLA_Obj t) |
| FLA_Error FLA_Hess_UT_recover_tau | ( | FLA_Obj | T, |
| FLA_Obj | t | ||
| ) |
References FLA_Check_error_level(), FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Hess_UT_recover_tau_check(), FLA_Hess_UT_recover_tau_submatrix(), FLA_Obj_length(), FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), and FLA_Repart_2x1_to_3x1().
{
FLA_Obj TL, TR, T0, T1, T2;
FLA_Obj tT, t0,
tB, t1,
t2;
dim_t b_alg, b;
if ( FLA_Check_error_level() >= FLA_MIN_ERROR_CHECKING )
FLA_Hess_UT_recover_tau_check( T, t );
b_alg = FLA_Obj_length( T );
FLA_Part_1x2( T, &TL, &TR, 0, FLA_LEFT );
FLA_Part_2x1( t, &tT,
&tB, 0, FLA_TOP );
while ( FLA_Obj_length( tT ) < FLA_Obj_length( t ) ){
b = min( FLA_Obj_length( tB ), b_alg );
FLA_Repart_1x2_to_1x3( TL, /**/ TR, &T0, /**/ &T1, &T2,
b, FLA_RIGHT );
FLA_Repart_2x1_to_3x1( tT, &t0,
/* ** */ /* ** */
&t1,
tB, &t2, b, FLA_BOTTOM );
/*------------------------------------------------------------*/
FLA_Hess_UT_recover_tau_submatrix( T1, t1 );
/*------------------------------------------------------------*/
FLA_Cont_with_1x3_to_1x2( &TL, /**/ &TR, T0, T1, /**/ T2,
FLA_LEFT );
FLA_Cont_with_3x1_to_2x1( &tT, t0,
t1,
/* ** */ /* ** */
&tB, t2, FLA_TOP );
}
return FLA_SUCCESS;
}
References FLA_Cont_with_3x1_to_2x1(), FLA_Cont_with_3x3_to_2x2(), FLA_Copy_external(), FLA_Obj_min_dim(), FLA_Part_2x1(), FLA_Part_2x2(), FLA_Repart_2x1_to_3x1(), and FLA_Repart_2x2_to_3x3().
Referenced by FLA_Hess_UT_recover_tau().
{
FLA_Obj TTL, TTR, T00, t01, T02,
TBL, TBR, t10t, tau11, t12t,
T20, t21, T22;
FLA_Obj tT, t0,
tB, tau1,
t2;
FLA_Part_2x2( T, &TTL, &TTR,
&TBL, &TBR, 0, 0, FLA_TL );
FLA_Part_2x1( t, &tT,
&tB, 0, FLA_TOP );
while ( FLA_Obj_min_dim( TBR ) > 0 ){
FLA_Repart_2x2_to_3x3( TTL, /**/ TTR, &T00, /**/ &t01, &T02,
/* ************* */ /* ************************ */
&t10t, /**/ &tau11, &t12t,
TBL, /**/ TBR, &T20, /**/ &t21, &T22,
1, 1, FLA_BR );
FLA_Repart_2x1_to_3x1( tT, &t0,
/* ** */ /* ** */
&tau1,
tB, &t2, 1, FLA_BOTTOM );
/*------------------------------------------------------------*/
// tau1 = tau11;
FLA_Copy_external( tau11, tau1 );
/*------------------------------------------------------------*/
FLA_Cont_with_3x3_to_2x2( &TTL, /**/ &TTR, T00, t01, /**/ T02,
t10t, tau11, /**/ t12t,
/* ************** */ /* ********************** */
&TBL, /**/ &TBR, T20, t21, /**/ T22,
FLA_TL );
FLA_Cont_with_3x1_to_2x1( &tT, t0,
tau1,
/* ** */ /* ** */
&tB, t2, FLA_TOP );
}
return FLA_SUCCESS;
}
1.7.6.1