FLA_Gemm_nt_unb_var5.c File Reference

(r)


Functions

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

Function Documentation

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

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

00038 {
00039   FLA_Obj AL,    AR,       A0,  a1,  A2;
00040 
00041   FLA_Obj BL,    BR,       B0,  b1,  B2;
00042 
00043   FLA_Scal_external( beta, C );
00044 
00045   FLA_Part_1x2( A,    &AL,  &AR,      0, FLA_LEFT );
00046 
00047   FLA_Part_1x2( B,    &BL,  &BR,      0, FLA_LEFT );
00048 
00049   while ( FLA_Obj_width( AL ) < FLA_Obj_width( A ) ){
00050 
00051     FLA_Repart_1x2_to_1x3( AL,  /**/ AR,        &A0, /**/ &a1, &A2,
00052                            1, FLA_RIGHT );
00053 
00054     FLA_Repart_1x2_to_1x3( BL,  /**/ BR,        &B0, /**/ &b1, &B2,
00055                            1, FLA_RIGHT );
00056 
00057     /*------------------------------------------------------------*/
00058 
00059     /* C = a1 * b1' + C */
00060     FLA_Ger_external( alpha, a1, b1, C );
00061 
00062     /*------------------------------------------------------------*/
00063 
00064     FLA_Cont_with_1x3_to_1x2( &AL,  /**/ &AR,        A0, a1, /**/ A2,
00065                               FLA_LEFT );
00066 
00067     FLA_Cont_with_1x3_to_1x2( &BL,  /**/ &BR,        B0, b1, /**/ B2,
00068                               FLA_LEFT );
00069 
00070   }
00071 
00072   return FLA_SUCCESS;
00073 }


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