Functions | |
FLA_Error | FLA_Axpy_blk_var4 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, fla_axpy_t *cntl) |
FLA_Error FLA_Axpy_blk_var4 | ( | FLA_Obj | alpha, | |
FLA_Obj | A, | |||
FLA_Obj | B, | |||
fla_axpy_t * | cntl | |||
) |
References FLA_Axpy_internal(), FLA_Cont_with_1x3_to_1x2(), FLA_Determine_blocksize(), FLA_Obj_width(), FLA_Part_1x2(), and FLA_Repart_1x2_to_1x3().
Referenced by FLA_Axpy_internal().
00036 { 00037 FLA_Obj AL, AR, A0, A1, A2; 00038 00039 FLA_Obj BL, BR, B0, B1, B2; 00040 00041 dim_t b; 00042 00043 FLA_Part_1x2( A, &AL, &AR, 0, FLA_RIGHT ); 00044 00045 FLA_Part_1x2( B, &BL, &BR, 0, FLA_RIGHT ); 00046 00047 while ( FLA_Obj_width( AR ) < FLA_Obj_width( A ) ){ 00048 00049 b = FLA_Determine_blocksize( AL, FLA_LEFT, FLA_Cntl_blocksize( cntl ) ); 00050 00051 FLA_Repart_1x2_to_1x3( AL, /**/ AR, &A0, &A1, /**/ &A2, 00052 b, FLA_LEFT ); 00053 00054 FLA_Repart_1x2_to_1x3( BL, /**/ BR, &B0, &B1, /**/ &B2, 00055 b, FLA_LEFT ); 00056 00057 /*------------------------------------------------------------*/ 00058 00059 FLA_Axpy_internal( alpha, A1, B1, 00060 FLA_Cntl_sub_axpy( cntl ) ); 00061 00062 /*------------------------------------------------------------*/ 00063 00064 FLA_Cont_with_1x3_to_1x2( &AL, /**/ &AR, A0, /**/ A1, A2, 00065 FLA_RIGHT ); 00066 00067 FLA_Cont_with_1x3_to_1x2( &BL, /**/ &BR, B0, /**/ B1, B2, 00068 FLA_RIGHT ); 00069 } 00070 00071 return FLA_SUCCESS; 00072 }