FLA_Hemm_lu_unb_var8.c File Reference

(r)


Functions

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

Function Documentation

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

References FLA_Axpys_external(), FLA_Cont_with_3x1_to_2x1(), FLA_Cont_with_3x3_to_2x2(), FLA_Ger_external(), FLA_Gerc_external(), FLA_Obj_length(), FLA_Part_2x1(), FLA_Part_2x2(), FLA_Repart_2x1_to_3x1(), and FLA_Repart_2x2_to_3x3().

00038 {
00039   FLA_Obj ATL,   ATR,      A00,  a01,     A02, 
00040           ABL,   ABR,      a10t, alpha11, a12t,
00041                            A20,  a21,     A22;
00042 
00043   FLA_Obj BT,              B0,
00044           BB,              b1t,
00045                            B2;
00046 
00047   FLA_Obj CT,              C0,
00048           CB,              c1t,
00049                            C2;
00050 
00051 
00052   FLA_Part_2x2( A,    &ATL, &ATR,
00053                       &ABL, &ABR,     0, 0, FLA_BR );
00054 
00055   FLA_Part_2x1( B,    &BT, 
00056                       &BB,            0, FLA_BOTTOM );
00057 
00058   FLA_Part_2x1( C,    &CT, 
00059                       &CB,            0, FLA_BOTTOM );
00060 
00061   while ( FLA_Obj_length( ABR ) < FLA_Obj_length( A ) ){
00062 
00063 
00064     FLA_Repart_2x2_to_3x3( ATL, /**/ ATR,       &A00,  &a01,     /**/ &A02,
00065                                                 &a10t, &alpha11, /**/ &a12t,
00066                         /* ************* */   /* ************************** */
00067                            ABL, /**/ ABR,       &A20,  &a21,     /**/ &A22,
00068                            1, 1, FLA_TL );
00069 
00070     FLA_Repart_2x1_to_3x1( BT,                &B0, 
00071                                               &b1t, 
00072                         /* ** */            /* ** */
00073                            BB,                &B2,        1, FLA_TOP );
00074 
00075     FLA_Repart_2x1_to_3x1( CT,                &C0, 
00076                                               &c1t, 
00077                         /* ** */            /* ** */
00078                            CB,                &C2,        1, FLA_TOP );
00079 
00080     /*------------------------------------------------------------*/
00081 
00082     /* C0 = C0 + a01 * b1t */
00083     FLA_Ger_external( alpha, a01, b1t, C0 );
00084 
00085     /* c1t = c1t + alpha11 * b1t */
00086     FLA_Axpys_external( alpha, alpha11, b1t, beta, c1t );
00087 
00088     /* C2 = C2 + a12t' * b1t */
00089     FLA_Gerc_external( FLA_CONJUGATE, FLA_NO_CONJUGATE, alpha, a12t, b1t, C2 );
00090 
00091     /*------------------------------------------------------------*/
00092 
00093     FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR,       A00,  /**/ a01, A02,
00094                             /* ************** */  /* ************************ */
00095                                                      a10t, /**/ alpha11, a12t,
00096                               &ABL, /**/ &ABR,       A20,  /**/ a21, A22,
00097                               FLA_BR );
00098 
00099     FLA_Cont_with_3x1_to_2x1( &BT,                B0, 
00100                             /* ** */           /* ** */
00101                                                   b1t, 
00102                               &BB,                B2,     FLA_BOTTOM );
00103 
00104     FLA_Cont_with_3x1_to_2x1( &CT,                C0, 
00105                             /* ** */           /* ** */
00106                                                   c1t, 
00107                               &CB,                C2,     FLA_BOTTOM );
00108 
00109   }
00110 
00111   return FLA_SUCCESS;
00112 }


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