FLA_Trmm_ruh_unb_var2.c File Reference

(r)


Functions

FLA_Error FLA_Trmm_ruh_unb_var2 (FLA_Diag diagA, FLA_Obj alpha, FLA_Obj A, FLA_Obj B)

Function Documentation

FLA_Error FLA_Trmm_ruh_unb_var2 ( FLA_Diag  diagA,
FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B 
)

References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x3_to_2x2(), FLA_Gerc_external(), FLA_Obj_length(), FLA_ONE, FLA_Part_1x2(), FLA_Part_2x2(), FLA_Repart_1x2_to_1x3(), FLA_Repart_2x2_to_3x3(), FLA_Scal_external(), and FLA_Scalc_external().

00038 {
00039   FLA_Obj ATL,   ATR,      A00,  a01,     A02, 
00040           ABL,   ABR,      a10t, alpha11, a12t,
00041                            A20,  a21,     A22;
00042 
00043   FLA_Obj BL,    BR,       B0,  b1,  B2;
00044 
00045   FLA_Scal_external( alpha, B );
00046 
00047   FLA_Part_2x2( A,    &ATL, &ATR,
00048                       &ABL, &ABR,     0, 0, FLA_TL );
00049 
00050   FLA_Part_1x2( B,    &BL,  &BR,      0, FLA_LEFT );
00051 
00052   while ( FLA_Obj_length( ATL ) < FLA_Obj_length( A ) ){
00053 
00054     FLA_Repart_2x2_to_3x3( ATL, /**/ ATR,       &A00,  /**/ &a01,     &A02,
00055                         /* ************* */   /* ************************** */
00056                                                 &a10t, /**/ &alpha11, &a12t,
00057                            ABL, /**/ ABR,       &A20,  /**/ &a21,     &A22,
00058                            1, 1, FLA_BR );
00059 
00060     FLA_Repart_1x2_to_1x3( BL,  /**/ BR,        &B0, /**/ &b1, &B2,
00061                            1, FLA_RIGHT );
00062 
00063     /*------------------------------------------------------------*/
00064 
00065     /* B0  = B0 + b1 * a01'; */
00066     FLA_Gerc_external( FLA_NO_CONJUGATE, FLA_CONJUGATE, FLA_ONE, b1, a01, B0 );
00067 
00068     /* b1 = b1 * alpha11; */
00069     if ( diagA != FLA_UNIT_DIAG )
00070       FLA_Scalc_external( FLA_CONJUGATE, alpha11, b1 );
00071 
00072     /*------------------------------------------------------------*/
00073 
00074     FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR,       A00,  a01,     /**/ A02,
00075                                                      a10t, alpha11, /**/ a12t,
00076                             /* ************** */  /* ************************ */
00077                               &ABL, /**/ &ABR,       A20,  a21,     /**/ A22,
00078                               FLA_TL );
00079 
00080     FLA_Cont_with_1x3_to_1x2( &BL,  /**/ &BR,        B0, b1, /**/ B2,
00081                               FLA_LEFT );
00082 
00083   }
00084 
00085   return FLA_SUCCESS;
00086 }


Generated on Mon Jul 6 05:45:56 2009 for libflame by  doxygen 1.5.9