libflame  revision_anchor
Functions
FLA_Copyt_h.h File Reference

(r)

Go to the source code of this file.

Functions

FLA_Error FLA_Copyt_h_blk_var1 (FLA_Obj A, FLA_Obj B, fla_copyt_t *cntl)
 
FLA_Error FLA_Copyt_h_blk_var2 (FLA_Obj A, FLA_Obj B, fla_copyt_t *cntl)
 
FLA_Error FLA_Copyt_h_blk_var3 (FLA_Obj A, FLA_Obj B, fla_copyt_t *cntl)
 
FLA_Error FLA_Copyt_h_blk_var4 (FLA_Obj A, FLA_Obj B, fla_copyt_t *cntl)
 

Function Documentation

◆ FLA_Copyt_h_blk_var1()

FLA_Error FLA_Copyt_h_blk_var1 ( FLA_Obj  A,
FLA_Obj  B,
fla_copyt_t cntl 
)
14 {
15  FLA_Obj AL, AR, A0, A1, A2;
16 
17  FLA_Obj BT, B0,
18  BB, B1,
19  B2;
20 
21  dim_t b;
22 
23  FLA_Part_1x2( A, &AL, &AR, 0, FLA_LEFT );
24 
25  FLA_Part_2x1( B, &BT,
26  &BB, 0, FLA_TOP );
27 
28  while ( FLA_Obj_width( AL ) < FLA_Obj_width( A ) ){
29 
30  b = FLA_Determine_blocksize( AR, FLA_RIGHT, FLA_Cntl_blocksize( cntl ) );
31 
32  FLA_Repart_1x2_to_1x3( AL, /**/ AR, &A0, /**/ &A1, &A2,
33  b, FLA_RIGHT );
34 
35  FLA_Repart_2x1_to_3x1( BT, &B0,
36  /* ** */ /* ** */
37  &B1,
38  BB, &B2, b, FLA_BOTTOM );
39 
40  /*------------------------------------------------------------*/
41 
42  FLA_Copyt_internal( FLA_CONJ_TRANSPOSE, A1, B1,
43  FLA_Cntl_sub_copyt( cntl ) );
44 
45  /*------------------------------------------------------------*/
46 
47  FLA_Cont_with_1x3_to_1x2( &AL, /**/ &AR, A0, A1, /**/ A2,
48  FLA_LEFT );
49 
50  FLA_Cont_with_3x1_to_2x1( &BT, B0,
51  B1,
52  /* ** */ /* ** */
53  &BB, B2, FLA_TOP );
54  }
55 
56  return FLA_SUCCESS;
57 }
FLA_Error FLA_Copyt_internal(FLA_Trans trans, FLA_Obj A, FLA_Obj B, fla_copyt_t *cntl)
Definition: FLA_Copyt_internal.c:16
FLA_Error FLA_Cont_with_3x1_to_2x1(FLA_Obj *AT, FLA_Obj A0, FLA_Obj A1, FLA_Obj *AB, FLA_Obj A2, FLA_Side side)
Definition: FLA_View.c:428
FLA_Error FLA_Repart_2x1_to_3x1(FLA_Obj AT, FLA_Obj *A0, FLA_Obj *A1, FLA_Obj AB, FLA_Obj *A2, dim_t mb, FLA_Side side)
Definition: FLA_View.c:226
FLA_Error FLA_Cont_with_1x3_to_1x2(FLA_Obj *AL, FLA_Obj *AR, FLA_Obj A0, FLA_Obj A1, FLA_Obj A2, FLA_Side side)
Definition: FLA_View.c:475
dim_t FLA_Obj_width(FLA_Obj obj)
Definition: FLA_Query.c:123
FLA_Error FLA_Part_1x2(FLA_Obj A, FLA_Obj *A1, FLA_Obj *A2, dim_t nb, FLA_Side side)
Definition: FLA_View.c:110
FLA_Error FLA_Part_2x1(FLA_Obj A, FLA_Obj *A1, FLA_Obj *A2, dim_t mb, FLA_Side side)
Definition: FLA_View.c:76
FLA_Error FLA_Repart_1x2_to_1x3(FLA_Obj AL, FLA_Obj AR, FLA_Obj *A0, FLA_Obj *A1, FLA_Obj *A2, dim_t nb, FLA_Side side)
Definition: FLA_View.c:267
dim_t FLA_Determine_blocksize(FLA_Obj A_unproc, FLA_Quadrant to_dir, fla_blocksize_t *cntl_blocksizes)
Definition: FLA_Blocksize.c:234
unsigned long dim_t
Definition: FLA_type_defs.h:71
Definition: FLA_type_defs.h:159

References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Copyt_internal(), FLA_Determine_blocksize(), FLA_Obj_width(), FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), and FLA_Repart_2x1_to_3x1().

Referenced by FLA_Copyt_h().

◆ FLA_Copyt_h_blk_var2()

FLA_Error FLA_Copyt_h_blk_var2 ( FLA_Obj  A,
FLA_Obj  B,
fla_copyt_t cntl 
)
14 {
15  FLA_Obj AL, AR, A0, A1, A2;
16 
17  FLA_Obj BT, B0,
18  BB, B1,
19  B2;
20 
21  dim_t b;
22 
23  FLA_Part_1x2( A, &AL, &AR, 0, FLA_RIGHT );
24 
25  FLA_Part_2x1( B, &BT,
26  &BB, 0, FLA_BOTTOM );
27 
28  while ( FLA_Obj_width( AR ) < FLA_Obj_width( A ) ){
29 
30  b = FLA_Determine_blocksize( AL, FLA_LEFT, FLA_Cntl_blocksize( cntl ) );
31 
32  FLA_Repart_1x2_to_1x3( AL, /**/ AR, &A0, &A1, /**/ &A2,
33  b, FLA_LEFT );
34 
35  FLA_Repart_2x1_to_3x1( BT, &B0,
36  &B1,
37  /* ** */ /* ** */
38  BB, &B2, b, FLA_TOP );
39 
40  /*------------------------------------------------------------*/
41 
42  FLA_Copyt_internal( FLA_CONJ_TRANSPOSE, A1, B1,
43  FLA_Cntl_sub_copyt( cntl ) );
44 
45  /*------------------------------------------------------------*/
46 
47  FLA_Cont_with_1x3_to_1x2( &AL, /**/ &AR, A0, /**/ A1, A2,
48  FLA_RIGHT );
49 
50  FLA_Cont_with_3x1_to_2x1( &BT, B0,
51  /* ** */ /* ** */
52  B1,
53  &BB, B2, FLA_BOTTOM );
54  }
55 
56  return FLA_SUCCESS;
57 }

References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Copyt_internal(), FLA_Determine_blocksize(), FLA_Obj_width(), FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), and FLA_Repart_2x1_to_3x1().

Referenced by FLA_Copyt_h().

◆ FLA_Copyt_h_blk_var3()

FLA_Error FLA_Copyt_h_blk_var3 ( FLA_Obj  A,
FLA_Obj  B,
fla_copyt_t cntl 
)
14 {
15  FLA_Obj AT, A0,
16  AB, A1,
17  A2;
18 
19  FLA_Obj BL, BR, B0, B1, B2;
20 
21  dim_t b;
22 
23  FLA_Part_2x1( A, &AT,
24  &AB, 0, FLA_TOP );
25 
26  FLA_Part_1x2( B, &BL, &BR, 0, FLA_LEFT );
27 
28  while ( FLA_Obj_length( AT ) < FLA_Obj_length( A ) ){
29 
30  b = FLA_Determine_blocksize( AB, FLA_BOTTOM, FLA_Cntl_blocksize( cntl ) );
31 
32  FLA_Repart_2x1_to_3x1( AT, &A0,
33  /* ** */ /* ** */
34  &A1,
35  AB, &A2, b, FLA_BOTTOM );
36 
37  FLA_Repart_1x2_to_1x3( BL, /**/ BR, &B0, /**/ &B1, &B2,
38  b, FLA_RIGHT );
39 
40  /*------------------------------------------------------------*/
41 
42  FLA_Copyt_internal( FLA_CONJ_TRANSPOSE, A1, B1,
43  FLA_Cntl_sub_copyt( cntl ) );
44 
45  /*------------------------------------------------------------*/
46 
47  FLA_Cont_with_3x1_to_2x1( &AT, A0,
48  A1,
49  /* ** */ /* ** */
50  &AB, A2, FLA_TOP );
51 
52  FLA_Cont_with_1x3_to_1x2( &BL, /**/ &BR, B0, B1, /**/ B2,
53  FLA_LEFT );
54  }
55 
56  return FLA_SUCCESS;
57 }
dim_t FLA_Obj_length(FLA_Obj obj)
Definition: FLA_Query.c:116

References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Copyt_internal(), FLA_Determine_blocksize(), FLA_Obj_length(), FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), and FLA_Repart_2x1_to_3x1().

Referenced by FLA_Copyt_h().

◆ FLA_Copyt_h_blk_var4()

FLA_Error FLA_Copyt_h_blk_var4 ( FLA_Obj  A,
FLA_Obj  B,
fla_copyt_t cntl 
)
14 {
15  FLA_Obj AT, A0,
16  AB, A1,
17  A2;
18 
19  FLA_Obj BL, BR, B0, B1, B2;
20 
21  dim_t b;
22 
23 
24  FLA_Part_2x1( A, &AT,
25  &AB, 0, FLA_BOTTOM );
26 
27  FLA_Part_1x2( B, &BL, &BR, 0, FLA_RIGHT );
28 
29  while ( FLA_Obj_length( AB ) < FLA_Obj_length( A ) ){
30 
31  b = FLA_Determine_blocksize( AT, FLA_TOP, FLA_Cntl_blocksize( cntl ) );
32 
33  FLA_Repart_2x1_to_3x1( AT, &A0,
34  &A1,
35  /* ** */ /* ** */
36  AB, &A2, b, FLA_TOP );
37 
38  FLA_Repart_1x2_to_1x3( BL, /**/ BR, &B0, &B1, /**/ &B2,
39  b, FLA_LEFT );
40 
41  /*------------------------------------------------------------*/
42 
43  FLA_Copyt_internal( FLA_CONJ_TRANSPOSE, A1, B1,
44  FLA_Cntl_sub_copyt( cntl ) );
45 
46  /*------------------------------------------------------------*/
47 
48  FLA_Cont_with_3x1_to_2x1( &AT, A0,
49  /* ** */ /* ** */
50  A1,
51  &AB, A2, FLA_BOTTOM );
52 
53  FLA_Cont_with_1x3_to_1x2( &BL, /**/ &BR, B0, /**/ B1, B2,
54  FLA_RIGHT );
55  }
56 
57  return FLA_SUCCESS;
58 }

References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Copyt_internal(), FLA_Determine_blocksize(), FLA_Obj_length(), FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), and FLA_Repart_2x1_to_3x1().

Referenced by FLA_Copyt_h().