FLA_Hemm_lu_blk_var10.c File Reference

(r)


Functions

FLA_Error FLA_Hemm_lu_blk_var10 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C, fla_hemm_t *cntl)

Function Documentation

FLA_Error FLA_Hemm_lu_blk_var10 ( FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B,
FLA_Obj  beta,
FLA_Obj  C,
fla_hemm_t cntl 
)

References FLA_Cont_with_1x3_to_1x2(), FLA_Determine_blocksize(), FLA_Hemm_internal(), FLA_Obj_width(), FLA_Part_1x2(), and FLA_Repart_1x2_to_1x3().

Referenced by FLA_Hemm_lu().

00038 {
00039   FLA_Obj BL,    BR,       B0,  B1,  B2;
00040 
00041   FLA_Obj CL,    CR,       C0,  C1,  C2;
00042 
00043   dim_t b;
00044 
00045   FLA_Part_1x2( B,    &BL,  &BR,      0, FLA_RIGHT );
00046 
00047   FLA_Part_1x2( C,    &CL,  &CR,      0, FLA_RIGHT );
00048 
00049   while ( FLA_Obj_width( BR ) < FLA_Obj_width( B ) ){
00050 
00051     b = FLA_Determine_blocksize( BL, FLA_LEFT, FLA_Cntl_blocksize( cntl ) );
00052 
00053     FLA_Repart_1x2_to_1x3( BL,  /**/ BR,        &B0, &B1, /**/ &B2,
00054                            b, FLA_LEFT );
00055 
00056     FLA_Repart_1x2_to_1x3( CL,  /**/ CR,        &C0, &C1, /**/ &C2,
00057                            b, FLA_LEFT );
00058 
00059     /*------------------------------------------------------------*/
00060 
00061     /* C1 = C1 + A * B1 */
00062     FLA_Hemm_internal( FLA_LEFT, FLA_UPPER_TRIANGULAR, 
00063                        alpha, A, B1, beta, C1,
00064                        FLA_Cntl_sub_hemm( cntl ) );
00065 
00066     /*------------------------------------------------------------*/
00067 
00068     FLA_Cont_with_1x3_to_1x2( &BL,  /**/ &BR,        B0, /**/ B1, B2,
00069                               FLA_RIGHT );
00070 
00071     FLA_Cont_with_1x3_to_1x2( &CL,  /**/ &CR,        C0, /**/ C1, C2,
00072                               FLA_RIGHT );
00073 
00074   }
00075 
00076   return FLA_SUCCESS;
00077 }


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