FLA_Gemm_tn_unb_var5.c File Reference

(r)


Functions

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

Function Documentation

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

References FLA_Cont_with_3x1_to_2x1(), FLA_Ger_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_TOP );
00051 
00052   FLA_Part_2x1( B,    &BT, 
00053                       &BB,            0, FLA_TOP );
00054 
00055   while ( FLA_Obj_length( AT ) < FLA_Obj_length( A ) ){
00056 
00057     FLA_Repart_2x1_to_3x1( AT,                &A0, 
00058                         /* ** */            /* *** */
00059                                               &a1t, 
00060                            AB,                &A2,        1, FLA_BOTTOM );
00061 
00062     FLA_Repart_2x1_to_3x1( BT,                &B0, 
00063                         /* ** */            /* *** */
00064                                               &b1t, 
00065                            BB,                &B2,        1, FLA_BOTTOM );
00066 
00067     /*------------------------------------------------------------*/
00068 
00069     /* C = a1t' * b1t + C */
00070     FLA_Ger_external( alpha, a1t, b1t, C );
00071 
00072     /*------------------------------------------------------------*/
00073 
00074     FLA_Cont_with_3x1_to_2x1( &AT,                A0, 
00075                                                   a1t, 
00076                             /* ** */           /* *** */
00077                               &AB,                A2,     FLA_TOP );
00078 
00079     FLA_Cont_with_3x1_to_2x1( &BT,                B0, 
00080                                                   b1t, 
00081                             /* ** */           /* *** */
00082                               &BB,                B2,     FLA_TOP );
00083 
00084   }
00085 
00086   return FLA_SUCCESS;
00087 }


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