FLA_Gemm_nh_unb_var1.c File Reference

(r)


Functions

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

Function Documentation

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

References FLA_Cont_with_3x1_to_2x1(), FLA_Gemv_external(), FLA_Obj_length(), FLA_ONE, 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 CT,              C0,
00044           CB,              c1t,
00045                            C2;
00046 
00047   FLA_Scal_external( beta, C );
00048 
00049   FLA_Part_2x1( A,    &AT, 
00050                       &AB,            0, FLA_TOP );
00051 
00052   FLA_Part_2x1( C,    &CT, 
00053                       &CB,            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( CT,                &C0, 
00063                         /* ** */            /* *** */
00064                                               &c1t, 
00065                            CB,                &C2,        1, FLA_BOTTOM );
00066 
00067     /*------------------------------------------------------------*/
00068 
00069     /* c1t  = a1t * B' + c1t  */
00070     /* c1t' = B * a1t' + c1t' */
00071     FLA_Gemv_external( FLA_CONJ_NO_TRANSPOSE, alpha, B, a1t, FLA_ONE, c1t );
00072 
00073     /*------------------------------------------------------------*/
00074 
00075     FLA_Cont_with_3x1_to_2x1( &AT,                A0, 
00076                                                   a1t, 
00077                             /* ** */           /* *** */
00078                               &AB,                A2,     FLA_TOP );
00079 
00080     FLA_Cont_with_3x1_to_2x1( &CT,                C0, 
00081                                                   c1t, 
00082                             /* ** */           /* *** */
00083                               &CB,                C2,     FLA_TOP );
00084 
00085   }
00086 
00087   return FLA_SUCCESS;
00088 }


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