FLA_Gemm_nn_unb_var2.c File Reference

(r)


Functions

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

Function Documentation

FLA_Error FLA_Gemm_nn_unb_var2 ( 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_BOTTOM );
00051 
00052   FLA_Part_2x1( C,    &CT, 
00053                       &CB,            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( CT,                &C0, 
00063                                               &c1t, 
00064                         /* ** */            /* *** */
00065                            CB,                &C2,        1, FLA_TOP );
00066 
00067     /*------------------------------------------------------------*/
00068 
00069     /* c1t  = a1t * B + c1t    */
00070     /* c1t' = B' * a1t' + c1t' */
00071     FLA_Gemv_external( FLA_TRANSPOSE, alpha, B, a1t, FLA_ONE, c1t );
00072 
00073     /*------------------------------------------------------------*/
00074 
00075     FLA_Cont_with_3x1_to_2x1( &AT,                A0, 
00076                             /* ** */           /* *** */
00077                                                   a1t, 
00078                               &AB,                A2,     FLA_BOTTOM );
00079 
00080     FLA_Cont_with_3x1_to_2x1( &CT,                C0, 
00081                             /* ** */           /* *** */
00082                                                   c1t, 
00083                               &CB,                C2,     FLA_BOTTOM );
00084 
00085   }
00086 
00087   return FLA_SUCCESS;
00088 }


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