libflame  revision_anchor
Functions
FLA_Accum_T_UT_fr_blk_var2.c File Reference

(r)

Functions

FLA_Error FLA_Accum_T_UT_fr_blk_var2 (FLA_Obj A, FLA_Obj t, FLA_Obj T)
 

Function Documentation

◆ FLA_Accum_T_UT_fr_blk_var2()

FLA_Error FLA_Accum_T_UT_fr_blk_var2 ( FLA_Obj  A,
FLA_Obj  t,
FLA_Obj  T 
)
14 {
15  FLA_Obj ATL, ATR, A00, A01, A02,
16  ABL, ABR, A10, A11, A12,
17  A20, A21, A22;
18 
19  FLA_Obj tT, t0,
20  tB, t1,
21  t2;
22 
23  FLA_Obj TL, TR, T0, T1, T2;
24 
25  FLA_Obj AR1;
26 
27  dim_t b_alg, b;
28 
29  b_alg = FLA_Obj_length( T );
30 
31  FLA_Part_2x2( A, &ATL, &ATR,
32  &ABL, &ABR, 0, 0, FLA_TL );
33 
34  FLA_Part_2x1( t, &tT,
35  &tB, 0, FLA_TOP );
36 
37  FLA_Part_1x2( T, &TL, &TR, 0, FLA_LEFT );
38 
39  while ( FLA_Obj_length( tB ) > 0 ) {
40 
41  b = min( FLA_Obj_length( tB ), b_alg );
42 
43  FLA_Repart_2x2_to_3x3( ATL, /**/ ATR, &A00, /**/ &A01, &A02,
44  /* ************* */ /* ******************** */
45  &A10, /**/ &A11, &A12,
46  ABL, /**/ ABR, &A20, /**/ &A21, &A22,
47  b, b, FLA_BR );
48 
49  FLA_Repart_2x1_to_3x1( tT, &t0,
50  /* ** */ /* ** */
51  &t1,
52  tB, &t2, b, FLA_BOTTOM );
53 
54  FLA_Repart_1x2_to_1x3( TL, /**/ TR, &T0, /**/ &T1, &T2,
55  b, FLA_RIGHT );
56 
57  /*------------------------------------------------------------*/
58 
59  FLA_Merge_1x2( A11, A12, &AR1 );
60 
61  //FLA_Accum_T_UT_fr_unb_var1( AR1, t1, T1 );
62  FLA_Accum_T_UT_fr_opt_var1( AR1, t1, T1 );
63 
64  /*------------------------------------------------------------*/
65 
66  FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, A01, /**/ A02,
67  A10, A11, /**/ A12,
68  /* ************** */ /* ****************** */
69  &ABL, /**/ &ABR, A20, A21, /**/ A22,
70  FLA_TL );
71 
72  FLA_Cont_with_3x1_to_2x1( &tT, t0,
73  t1,
74  /* ** */ /* ** */
75  &tB, t2, FLA_TOP );
76 
77  FLA_Cont_with_1x3_to_1x2( &TL, /**/ &TR, T0, T1, /**/ T2,
78  FLA_LEFT );
79 
80  }
81 
82  return FLA_SUCCESS;
83 }
FLA_Error FLA_Accum_T_UT_fr_opt_var1(FLA_Obj A, FLA_Obj t, FLA_Obj T)
Definition: FLA_Accum_T_UT_fr_opt_var1.c:13
FLA_Error FLA_Cont_with_3x3_to_2x2(FLA_Obj *ATL, FLA_Obj *ATR, FLA_Obj A00, FLA_Obj A01, FLA_Obj A02, FLA_Obj A10, FLA_Obj A11, FLA_Obj A12, FLA_Obj *ABL, FLA_Obj *ABR, FLA_Obj A20, FLA_Obj A21, FLA_Obj A22, FLA_Quadrant quadrant)
Definition: FLA_View.c:304
FLA_Error FLA_Part_2x2(FLA_Obj A, FLA_Obj *A11, FLA_Obj *A12, FLA_Obj *A21, FLA_Obj *A22, dim_t mb, dim_t nb, FLA_Quadrant quadrant)
Definition: FLA_View.c:17
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
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
dim_t FLA_Obj_length(FLA_Obj obj)
Definition: FLA_Query.c:116
FLA_Error FLA_Repart_2x2_to_3x3(FLA_Obj ATL, FLA_Obj ATR, FLA_Obj *A00, FLA_Obj *A01, FLA_Obj *A02, FLA_Obj *A10, FLA_Obj *A11, FLA_Obj *A12, FLA_Obj ABL, FLA_Obj ABR, FLA_Obj *A20, FLA_Obj *A21, FLA_Obj *A22, dim_t mb, dim_t nb, FLA_Quadrant quadrant)
Definition: FLA_View.c:142
FLA_Error FLA_Merge_1x2(FLA_Obj AL, FLA_Obj AR, FLA_Obj *A)
Definition: FLA_View.c:562
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
unsigned long dim_t
Definition: FLA_type_defs.h:71
Definition: FLA_type_defs.h:159

References FLA_Accum_T_UT_fr_opt_var1(), FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Cont_with_3x3_to_2x2(), FLA_Merge_1x2(), FLA_Obj_length(), FLA_Part_1x2(), FLA_Part_2x1(), FLA_Part_2x2(), FLA_Repart_1x2_to_1x3(), FLA_Repart_2x1_to_3x1(), and FLA_Repart_2x2_to_3x3().

Referenced by FLA_Accum_T_UT_internal().