FLA_Gemm_nn_unb_var6.c File Reference

(r)


Functions

FLA_Error FLA_Gemm_nn_unb_var6 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C)

Function Documentation

FLA_Error FLA_Gemm_nn_unb_var6 ( FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B,
FLA_Obj  beta,
FLA_Obj  C 
)

References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Ger_external(), FLA_Obj_width(), FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), FLA_Repart_2x1_to_3x1(), and FLA_Scal_external().

00038 {
00039   FLA_Obj AL,    AR,       A0,  a1,  A2;
00040 
00041   FLA_Obj BT,              B0,
00042           BB,              b1t,
00043                            B2;
00044 
00045   FLA_Scal_external( beta, C );
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     FLA_Repart_1x2_to_1x3( AL,  /**/ AR,        &A0, &a1, /**/ &A2,
00055                            1, FLA_LEFT );
00056 
00057     FLA_Repart_2x1_to_3x1( BT,                &B0, 
00058                                               &b1t, 
00059                         /* ** */            /* *** */
00060                            BB,                &B2,        1, FLA_TOP );
00061 
00062     /*------------------------------------------------------------*/
00063 
00064     /* C = a1 * b1t + C */
00065     FLA_Ger_external( alpha, a1, b1t, C );
00066 
00067     /*------------------------------------------------------------*/
00068 
00069     FLA_Cont_with_1x3_to_1x2( &AL,  /**/ &AR,        A0, /**/ a1, A2,
00070                               FLA_RIGHT );
00071 
00072     FLA_Cont_with_3x1_to_2x1( &BT,                B0, 
00073                             /* ** */           /* *** */
00074                                                   b1t, 
00075                               &BB,                B2,     FLA_BOTTOM );
00076 
00077   }
00078 
00079   return FLA_SUCCESS;
00080 }


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