FLA_Gemm_hh_unb_var5.c File Reference

(r)


Functions

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

Function Documentation

FLA_Error FLA_Gemm_hh_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_Cont_with_3x1_to_2x1(), FLA_Gerc_external(), FLA_Obj_length(), FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), FLA_Repart_2x1_to_3x1(), and FLA_Scal_external().

00038 {
00039   FLA_Obj AT,              A0,
00040           AB,              a1t,
00041                            A2;
00042 
00043   FLA_Obj BL,    BR,       B0,  b1,  B2;
00044 
00045   FLA_Scal_external( beta, C );
00046 
00047   FLA_Part_2x1( A,    &AT, 
00048                       &AB,            0, FLA_TOP );
00049 
00050   FLA_Part_1x2( B,    &BL,  &BR,      0, FLA_LEFT );
00051 
00052   while ( FLA_Obj_length( AT ) < FLA_Obj_length( A ) ){
00053 
00054     FLA_Repart_2x1_to_3x1( AT,                &A0, 
00055                         /* ** */            /* *** */
00056                                               &a1t, 
00057                            AB,                &A2,        1, FLA_BOTTOM );
00058 
00059     FLA_Repart_1x2_to_1x3( BL,  /**/ BR,        &B0, /**/ &b1, &B2,
00060                            1, FLA_RIGHT );
00061 
00062     /*------------------------------------------------------------*/
00063 
00064     /* C = a1t' * b1' + C */
00065     FLA_Gerc_external( FLA_CONJUGATE, FLA_CONJUGATE, alpha, a1t, b1, C );
00066 
00067     /*------------------------------------------------------------*/
00068 
00069     FLA_Cont_with_3x1_to_2x1( &AT,                A0, 
00070                                                   a1t, 
00071                             /* ** */           /* *** */
00072                               &AB,                A2,     FLA_TOP );
00073 
00074     FLA_Cont_with_1x3_to_1x2( &BL,  /**/ &BR,        B0, b1, /**/ B2,
00075                               FLA_LEFT );
00076 
00077   }
00078 
00079   return FLA_SUCCESS;
00080 }


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