FLA_Transpose_blk_var2.c File Reference

(r)


Functions

FLA_Error FLA_Transpose_blk_var2 (FLA_Obj A, fla_tpose_t *cntl)

Function Documentation

FLA_Error FLA_Transpose_blk_var2 ( FLA_Obj  A,
fla_tpose_t cntl 
)

References FLA_Cont_with_3x3_to_2x2(), FLA_Determine_blocksize(), FLA_Obj_length(), FLA_Part_2x2(), FLA_Repart_2x2_to_3x3(), FLA_Swap_t_blk_var2(), and FLA_Transpose_unb_var2().

Referenced by FLA_Transpose().

00036 {
00037   FLA_Obj ATL,   ATR,      A00, A01, A02, 
00038           ABL,   ABR,      A10, A11, A12,
00039                            A20, A21, A22;
00040 
00041   dim_t b;
00042 
00043   FLA_Part_2x2( A,    &ATL, &ATR,
00044                       &ABL, &ABR,     0, 0, FLA_TL );
00045 
00046   while ( FLA_Obj_length( ATL ) < FLA_Obj_length( A ) ){
00047 
00048     b = FLA_Determine_blocksize( ABR, FLA_BR, FLA_Cntl_blocksize( cntl ) );
00049 
00050     FLA_Repart_2x2_to_3x3( ATL, /**/ ATR,       &A00, /**/ &A01, &A02,
00051                         /* ************* */   /* ******************** */
00052                                                 &A10, /**/ &A11, &A12,
00053                            ABL, /**/ ABR,       &A20, /**/ &A21, &A22,
00054                            b, b, FLA_BR );
00055 
00056     /*------------------------------------------------------------*/
00057 
00058     FLA_Transpose_unb_var2( A11 );
00059 
00060     FLA_Swap_t_blk_var2( A21, A12,
00061                          FLA_Cntl_sub_swap( cntl ) );
00062 
00063     /*------------------------------------------------------------*/
00064 
00065     FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR,       A00, A01, /**/ A02,
00066                                                      A10, A11, /**/ A12,
00067                             /* ************** */  /* ****************** */
00068                               &ABL, /**/ &ABR,       A20, A21, /**/ A22,
00069                               FLA_TL );
00070 
00071   }
00072 
00073   return FLA_SUCCESS;
00074 }


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