FLA_Syr2k_un_blk_var10.c File Reference

(r)


Functions

FLA_Error FLA_Syr2k_un_blk_var10 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C, fla_syr2k_t *cntl)

Function Documentation

FLA_Error FLA_Syr2k_un_blk_var10 ( FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B,
FLA_Obj  beta,
FLA_Obj  C,
fla_syr2k_t cntl 
)

References FLA_Cont_with_1x3_to_1x2(), FLA_Determine_blocksize(), FLA_Obj_width(), FLA_Part_1x2(), FLA_Repart_1x2_to_1x3(), and FLA_Syr2k_internal().

Referenced by FLA_Syr2k_un().

00038 {
00039   FLA_Obj AL,    AR,       A0,  A1,  A2;
00040 
00041   FLA_Obj BL,    BR,       B0,  B1,  B2;
00042 
00043   dim_t b;
00044 
00045   FLA_Part_1x2( A,    &AL,  &AR,      0, FLA_RIGHT );
00046 
00047   FLA_Part_1x2( B,    &BL,  &BR,      0, FLA_RIGHT );
00048 
00049   while ( FLA_Obj_width( AR ) < FLA_Obj_width( A ) ){
00050 
00051     b = FLA_Determine_blocksize( AL, FLA_LEFT, FLA_Cntl_blocksize( cntl ) );
00052 
00053     FLA_Repart_1x2_to_1x3( AL,  /**/ AR,        &A0, &A1, /**/ &A2,
00054                            b, FLA_LEFT );
00055 
00056     FLA_Repart_1x2_to_1x3( BL,  /**/ BR,        &B0, &B1, /**/ &B2,
00057                            b, FLA_LEFT );
00058 
00059     /*------------------------------------------------------------*/
00060 
00061     /* C = C + A1 * B1' + B1 * A1' */
00062     FLA_Syr2k_internal( FLA_UPPER_TRIANGULAR, FLA_NO_TRANSPOSE, 
00063                         alpha, A1, B1, beta, C,
00064                         FLA_Cntl_sub_syr2k( cntl ) );
00065 
00066     /*------------------------------------------------------------*/
00067 
00068     FLA_Cont_with_1x3_to_1x2( &AL,  /**/ &AR,        A0, /**/ A1, A2,
00069                               FLA_RIGHT );
00070 
00071     FLA_Cont_with_1x3_to_1x2( &BL,  /**/ &BR,        B0, /**/ B1, B2,
00072                               FLA_RIGHT );
00073 
00074   }
00075 
00076   return FLA_SUCCESS;
00077 }


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