FLA_Syr2k_ut_unb_var3.c File Reference

(r)


Functions

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

Function Documentation

FLA_Error FLA_Syr2k_ut_unb_var3 ( 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_3x3_to_2x2(), FLA_Dot2s_external(), FLA_Gemv_external(), FLA_Obj_width(), FLA_ONE, FLA_Part_1x2(), FLA_Part_2x2(), FLA_Repart_1x2_to_1x3(), and FLA_Repart_2x2_to_3x3().

00036 {
00037   FLA_Obj AL,    AR,       A0,  a1t,  A2;
00038 
00039   FLA_Obj BL,    BR,       B0,  b1t,  B2;
00040 
00041   FLA_Obj CTL,   CTR,      C00,  c01,     C02, 
00042           CBL,   CBR,      c10t, gamma11, c12t,
00043                            C20,  c21,     C22;
00044 
00045 
00046   FLA_Part_1x2( A,    &AL,  &AR,      0, FLA_LEFT );
00047 
00048   FLA_Part_1x2( B,    &BL,  &BR,      0, FLA_LEFT );
00049 
00050   FLA_Part_2x2( C,    &CTL, &CTR,
00051                       &CBL, &CBR,     0, 0, FLA_TL );
00052 
00053   while ( FLA_Obj_width( AL ) < FLA_Obj_width( A ) ){
00054 
00055 
00056     FLA_Repart_1x2_to_1x3( AL,  /**/ AR,        &A0, /**/ &a1t, &A2,
00057                            1, FLA_RIGHT );
00058 
00059     FLA_Repart_1x2_to_1x3( BL,  /**/ BR,        &B0, /**/ &b1t, &B2,
00060                            1, FLA_RIGHT );
00061 
00062     FLA_Repart_2x2_to_3x3( CTL, /**/ CTR,       &C00,  /**/ &c01,     &C02,
00063                         /* ************* */   /* ************************** */
00064                                                 &c10t, /**/ &gamma11, &c12t,
00065                            CBL, /**/ CBR,       &C20,  /**/ &c21,     &C22,
00066                            1, 1, FLA_BR );
00067 
00068     /*------------------------------------------------------------*/
00069 
00070     /* c01 = c01 + A0' * b1t */
00071     FLA_Gemv_external( FLA_TRANSPOSE, alpha, A0, b1t, beta, c01 );    
00072 
00073     /* c12t = c12t + b1t' * A2 */
00074     FLA_Gemv_external( FLA_TRANSPOSE, alpha, A2, b1t, FLA_ONE, c12t );
00075 
00076     /* gamma11 = gamma11 + a1t' * b1t + b1t' * a1t */
00077     FLA_Dot2s_external( alpha, a1t, b1t, beta, gamma11 );
00078 
00079     /*------------------------------------------------------------*/
00080 
00081     FLA_Cont_with_1x3_to_1x2( &AL,  /**/ &AR,        A0, a1t, /**/ A2,
00082                               FLA_LEFT );
00083 
00084     FLA_Cont_with_1x3_to_1x2( &BL,  /**/ &BR,        B0, b1t, /**/ B2,
00085                               FLA_LEFT );
00086 
00087     FLA_Cont_with_3x3_to_2x2( &CTL, /**/ &CTR,       C00,  c01,     /**/ C02,
00088                                                      c10t, gamma11, /**/ c12t,
00089                             /* ************** */  /* ************************ */
00090                               &CBL, /**/ &CBR,       C20,  c21,     /**/ C22,
00091                               FLA_TL );
00092 
00093   }
00094 
00095   return FLA_SUCCESS;
00096 }


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