FLA_Gemm_hn_unb_var6.c File Reference

(r)


Functions

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

Function Documentation

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

References FLA_Cont_with_3x1_to_2x1(), FLA_Gerc_external(), FLA_Obj_length(), FLA_Part_2x1(), FLA_Repart_2x1_to_3x1(), and FLA_Scal_external().

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


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