Functions | |
FLA_Error | FLA_Her2k_ln_blk_var10 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C, fla_her2k_t *cntl) |
FLA_Error FLA_Her2k_ln_blk_var10 | ( | FLA_Obj | alpha, | |
FLA_Obj | A, | |||
FLA_Obj | B, | |||
FLA_Obj | beta, | |||
FLA_Obj | C, | |||
fla_her2k_t * | cntl | |||
) |
References FLA_Cont_with_1x3_to_1x2(), FLA_Determine_blocksize(), FLA_Her2k_internal(), FLA_Obj_width(), FLA_Part_1x2(), and FLA_Repart_1x2_to_1x3().
Referenced by FLA_Her2k_ln().
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_Her2k_internal( FLA_LOWER_TRIANGULAR, FLA_NO_TRANSPOSE, 00063 alpha, A1, B1, beta, C, 00064 FLA_Cntl_sub_her2k( 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 }