FLA_Gemm_nn_blk_var6.c File Reference

(r)


Functions

FLA_Error FLA_Gemm_nn_blk_var6 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C, fla_gemm_t *cntl)

Function Documentation

FLA_Error FLA_Gemm_nn_blk_var6 ( FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B,
FLA_Obj  beta,
FLA_Obj  C,
fla_gemm_t cntl 
)

References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Determine_blocksize(), FLA_Gemm_internal(), FLA_Obj_width(), FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), and FLA_Repart_2x1_to_3x1().

Referenced by FLA_Gemm_nn().

00038 {
00039   FLA_Obj AL,    AR,       A0,  A1,  A2;
00040 
00041   FLA_Obj BT,              B0,
00042           BB,              B1,
00043                            B2;
00044 
00045   dim_t b;
00046 
00047   FLA_Part_1x2( A,    &AL,  &AR,      0, FLA_RIGHT );
00048 
00049   FLA_Part_2x1( B,    &BT, 
00050                       &BB,            0, FLA_BOTTOM );
00051 
00052   while ( FLA_Obj_width( AR ) < FLA_Obj_width( A ) ){
00053 
00054     b = FLA_Determine_blocksize( AL, FLA_LEFT, FLA_Cntl_blocksize( cntl ) );
00055 
00056     FLA_Repart_1x2_to_1x3( AL,  /**/ AR,        &A0, &A1, /**/ &A2,
00057                            b, FLA_LEFT );
00058 
00059     FLA_Repart_2x1_to_3x1( BT,                &B0, 
00060                                               &B1, 
00061                         /* ** */            /* ** */
00062                            BB,                &B2,        b, FLA_TOP );
00063 
00064     /*------------------------------------------------------------*/
00065 
00066     /* C = alpha * A1 * B1 + C; */
00067     FLA_Gemm_internal( FLA_NO_TRANSPOSE, FLA_NO_TRANSPOSE, 
00068                        alpha, A1, B1, beta, C, 
00069                        FLA_Cntl_sub_gemm( cntl ) );
00070 
00071     /*------------------------------------------------------------*/
00072 
00073     FLA_Cont_with_1x3_to_1x2( &AL,  /**/ &AR,        A0, /**/ A1, A2,
00074                               FLA_RIGHT );
00075 
00076     FLA_Cont_with_3x1_to_2x1( &BT,                B0, 
00077                             /* ** */           /* ** */
00078                                                   B1, 
00079                               &BB,                B2,     FLA_BOTTOM );
00080 
00081   }
00082 
00083   return FLA_SUCCESS;
00084 }


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