FLA_Syr2k_un_unb_var8.c File Reference

(r)


Functions

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

Function Documentation

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

References FLA_Cont_with_3x1_to_2x1(), FLA_Cont_with_3x3_to_2x2(), FLA_Dot2s_external(), FLA_Gemv_external(), FLA_Obj_length(), FLA_ONE, FLA_Part_2x1(), FLA_Part_2x2(), FLA_Repart_2x1_to_3x1(), and FLA_Repart_2x2_to_3x3().

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_Obj CTL,   CTR,      C00,  c01,     C02, 
00048           CBL,   CBR,      c10t, gamma11, c12t,
00049                            C20,  c21,     C22;
00050 
00051 
00052   FLA_Part_2x1( A,    &AT, 
00053                       &AB,            0, FLA_BOTTOM );
00054 
00055   FLA_Part_2x1( B,    &BT, 
00056                       &BB,            0, FLA_BOTTOM );
00057 
00058   FLA_Part_2x2( C,    &CTL, &CTR,
00059                       &CBL, &CBR,     0, 0, FLA_BR );
00060 
00061   while ( FLA_Obj_length( AB ) < FLA_Obj_length( A ) ){
00062 
00063 
00064     FLA_Repart_2x1_to_3x1( AT,                &A0, 
00065                                               &a1t, 
00066                         /* ** */            /* ** */
00067                            AB,                &A2,        1, FLA_TOP );
00068 
00069     FLA_Repart_2x1_to_3x1( BT,                &B0, 
00070                                               &b1t, 
00071                         /* ** */            /* ** */
00072                            BB,                &B2,        1, FLA_TOP );
00073 
00074     FLA_Repart_2x2_to_3x3( CTL, /**/ CTR,       &C00,  &c01,     /**/ &C02,
00075                                                 &c10t, &gamma11, /**/ &c12t,
00076                         /* ************* */   /* ************************** */
00077                            CBL, /**/ CBR,       &C20,  &c21,     /**/ &C22,
00078                            1, 1, FLA_TL );
00079 
00080     /*------------------------------------------------------------*/
00081 
00082     /* c12t = c12t + a1t * B2' */
00083     FLA_Gemv_external( FLA_NO_TRANSPOSE, alpha, B2, a1t, beta, c12t );
00084 
00085     /* c12t = c12t + b1t * A2' */
00086     FLA_Gemv_external( FLA_NO_TRANSPOSE, alpha, A2, b1t, FLA_ONE, c12t );
00087 
00088     /* gamma11 = gamma11 + a1t * b1t' + b1t * a1t' */
00089     FLA_Dot2s_external( alpha, a1t, b1t, beta, gamma11 );
00090 
00091     /*------------------------------------------------------------*/
00092 
00093     FLA_Cont_with_3x1_to_2x1( &AT,                A0, 
00094                             /* ** */           /* ** */
00095                                                   a1t, 
00096                               &AB,                A2,     FLA_BOTTOM );
00097 
00098     FLA_Cont_with_3x1_to_2x1( &BT,                B0, 
00099                             /* ** */           /* ** */
00100                                                   b1t, 
00101                               &BB,                B2,     FLA_BOTTOM );
00102 
00103     FLA_Cont_with_3x3_to_2x2( &CTL, /**/ &CTR,       C00,  /**/ c01,     C02,
00104                             /* ************** */  /* ************************ */
00105                                                      c10t, /**/ gamma11, c12t,
00106                               &CBL, /**/ &CBR,       C20,  /**/ c21,     C22,
00107                               FLA_BR );
00108 
00109   }
00110 
00111   return FLA_SUCCESS;
00112 }


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