FLA_Trmm_run_unb_var1.c File Reference

(r)


Functions

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

Function Documentation

FLA_Error FLA_Trmm_run_unb_var1 ( 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_Gemv_external(), FLA_Obj_length(), FLA_ONE, FLA_Part_1x2(), FLA_Part_2x2(), FLA_Repart_1x2_to_1x3(), 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 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_BR );
00049 
00050   FLA_Part_1x2( B,    &BL,  &BR,      0, FLA_RIGHT );
00051 
00052   while ( FLA_Obj_length( ABR ) < FLA_Obj_length( A ) ){
00053 
00054     FLA_Repart_2x2_to_3x3( ATL, /**/ ATR,       &A00,  &a01,     /**/ &A02,
00055                                                 &a10t, &alpha11, /**/ &a12t,
00056                         /* ************* */   /* ************************** */
00057                            ABL, /**/ ABR,       &A20,  &a21,     /**/ &A22,
00058                            1, 1, FLA_TL );
00059 
00060     FLA_Repart_1x2_to_1x3( BL,  /**/ BR,        &B0, &b1, /**/ &B2,
00061                            1, FLA_LEFT );
00062 
00063     /*------------------------------------------------------------*/
00064 
00065     /* b1 = b1 * alpha11; */
00066     if ( diagA != FLA_UNIT_DIAG )
00067       FLA_Scal_external( alpha11, b1 );
00068 
00069     /* b1 = b1 + B0 * a01; */
00070     FLA_Gemv_external( FLA_NO_TRANSPOSE, FLA_ONE, B0, a01, FLA_ONE, b1 );
00071 
00072     /*------------------------------------------------------------*/
00073 
00074     FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR,       A00,  /**/ a01,     A02,
00075                             /* ************** */  /* ************************ */
00076                                                      a10t, /**/ alpha11, a12t,
00077                               &ABL, /**/ &ABR,       A20,  /**/ a21,     A22,
00078                               FLA_BR );
00079 
00080     FLA_Cont_with_1x3_to_1x2( &BL,  /**/ &BR,        B0, /**/ b1, B2,
00081                               FLA_RIGHT );
00082 
00083   }
00084 
00085   return FLA_SUCCESS;
00086 }


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