FLA_Symm_lu_unb_var1.c File Reference

(r)


Functions

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

Function Documentation

FLA_Error FLA_Symm_lu_unb_var1 ( 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_Gemv_external(), FLA_Ger_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 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_TL );
00054 
00055   FLA_Part_2x1( B,    &BT, 
00056                       &BB,            0, FLA_TOP );
00057 
00058   FLA_Part_2x1( C,    &CT, 
00059                       &CB,            0, FLA_TOP );
00060 
00061   while ( FLA_Obj_length( ATL ) < FLA_Obj_length( A ) ){
00062 
00063 
00064     FLA_Repart_2x2_to_3x3( ATL, /**/ ATR,       &A00,  /**/ &a01,     &A02,
00065                         /* ************* */   /* ************************** */
00066                                                 &a10t, /**/ &alpha11, &a12t,
00067                            ABL, /**/ ABR,       &A20,  /**/ &a21,     &A22,
00068                            1, 1, FLA_BR );
00069 
00070     FLA_Repart_2x1_to_3x1( BT,                &B0, 
00071                         /* ** */            /* ** */
00072                                               &b1t, 
00073                            BB,                &B2,        1, FLA_BOTTOM );
00074 
00075     FLA_Repart_2x1_to_3x1( CT,                &C0, 
00076                         /* ** */            /* ** */
00077                                               &c1t, 
00078                            CB,                &C2,        1, FLA_BOTTOM );
00079 
00080     /*------------------------------------------------------------*/
00081 
00082     /* C0 = C0 + a01 * b1t */
00083     FLA_Ger_external( alpha, a01, b1t, C0 );
00084 
00085     /* c1t  = c1t  + a01' * B0  */
00086     /* c1t' = c1t' + B0'  * a01 */
00087     FLA_Gemv_external( FLA_TRANSPOSE, alpha, B0, a01, FLA_ONE, c1t );
00088 
00089     /* c1t = c1t + alpha11 * b1t */
00090     FLA_Axpys_external( alpha, alpha11, b1t, beta, c1t );
00091 
00092     /*------------------------------------------------------------*/
00093 
00094     FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR,       A00,  a01,     /**/ A02,
00095                                                      a10t, alpha11, /**/ a12t,
00096                             /* ************** */  /* ************************ */
00097                               &ABL, /**/ &ABR,       A20,  a21,     /**/ A22,
00098                               FLA_TL );
00099 
00100     FLA_Cont_with_3x1_to_2x1( &BT,                B0, 
00101                                                   b1t, 
00102                             /* ** */           /* ** */
00103                               &BB,                B2,     FLA_TOP );
00104 
00105     FLA_Cont_with_3x1_to_2x1( &CT,                C0, 
00106                                                   c1t, 
00107                             /* ** */           /* ** */
00108                               &CB,                C2,     FLA_TOP );
00109 
00110   }
00111 
00112   return FLA_SUCCESS;
00113 }


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