libflame revision_anchor
Functions
FLA_Apply_Q2_UT_lnfc_blk_var2.c File Reference

(r)

Functions

FLA_Error FLA_Apply_Q2_UT_lnfc_blk_var2 (FLA_Obj D, FLA_Obj T, FLA_Obj W1, FLA_Obj C, FLA_Obj E, fla_apq2ut_t *cntl)
 

Function Documentation

◆ FLA_Apply_Q2_UT_lnfc_blk_var2()

FLA_Error FLA_Apply_Q2_UT_lnfc_blk_var2 ( FLA_Obj  D,
FLA_Obj  T,
FLA_Obj  W1,
FLA_Obj  C,
FLA_Obj  E,
fla_apq2ut_t cntl 
)
15{
16 FLA_Obj DT, D0,
17 DB, D1,
18 D2;
19
20 FLA_Obj TT, T0,
21 TB, T1,
22 T2;
23
24 FLA_Obj ET, E0,
25 EB, E1,
26 E2;
27
28 dim_t b;
29
30 FLA_Part_2x1( D, &DT,
31 &DB, 0, FLA_BOTTOM );
32
33 FLA_Part_2x1( T, &TT,
34 &TB, 0, FLA_BOTTOM );
35
36 FLA_Part_2x1( E, &ET,
37 &EB, 0, FLA_BOTTOM );
38
39 while ( FLA_Obj_length( DB ) < FLA_Obj_length( D ) ){
40
42
44 &D1,
45 /* ** */ /* ** */
46 DB, &D2, b, FLA_TOP );
47
49 &T1,
50 /* ** */ /* ** */
51 TB, &T2, b, FLA_TOP );
52
54 &E1,
55 /* ** */ /* ** */
56 EB, &E2, b, FLA_TOP );
57
58 /*------------------------------------------------------------*/
59
60 // / C \ = Q / C \
61 // \ E1 / \ E1 /
62 //
63 // where Q is formed from D1 and T1.
64
66 D1, T1, W1, C,
67 E1, FLA_Cntl_sub_apq2ut( cntl ) );
68
69 /*------------------------------------------------------------*/
70
72 /* ** */ /* ** */
73 D1,
74 &DB, D2, FLA_BOTTOM );
75
77 /* ** */ /* ** */
78 T1,
79 &TB, T2, FLA_BOTTOM );
80
82 /* ** */ /* ** */
83 E1,
84 &EB, E2, FLA_BOTTOM );
85 }
86
87 return FLA_SUCCESS;
88}
FLA_Error FLA_Apply_Q2_UT_internal(FLA_Side side, FLA_Trans trans, FLA_Direct direct, FLA_Store storev, FLA_Obj D, FLA_Obj T, FLA_Obj W, FLA_Obj C, FLA_Obj E, fla_apq2ut_t *cntl)
Definition FLA_Apply_Q2_UT_internal.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_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
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
int i
Definition bl1_axmyv2.c:145
Definition FLA_type_defs.h:159

References FLA_Apply_Q2_UT_internal(), FLA_Cont_with_3x1_to_2x1(), FLA_Determine_blocksize(), FLA_Obj_length(), FLA_Part_2x1(), FLA_Repart_2x1_to_3x1(), and i.

Referenced by FLA_Apply_Q2_UT_lnfc().