libflame revision_anchor
Functions
FLA_CAQR_UT_inc_blk_var1.c File Reference

(r)

Functions

FLA_Error FLA_CAQR_UT_inc_blk_var1 (FLA_Obj A, FLA_Obj TW, fla_caqrutinc_t *cntl)
 

Function Documentation

◆ FLA_CAQR_UT_inc_blk_var1()

FLA_Error FLA_CAQR_UT_inc_blk_var1 ( FLA_Obj  A,
FLA_Obj  TW,
fla_caqrutinc_t cntl 
)
14{
15 FLA_Obj ATL, ATR, A00, A01, A02,
16 ABL, ABR, A10, A11, A12,
17 A20, A21, A22;
18
19 FLA_Obj TTL, WTR, T00, W01, W02,
20 TBL, TBR, T10, T11, W12,
21 T20, T21, T22;
22
23 dim_t b;
24
25 FLA_Part_2x2( A, &ATL, &ATR,
26 &ABL, &ABR, 0, 0, FLA_TL );
27
29 &TBL, &TBR, 0, 0, FLA_TL );
30
31 while ( FLA_Obj_min_dim( ABR ) > 0 ){
32
34
35 FLA_Repart_2x2_to_3x3( ATL, /**/ ATR, &A00, /**/ &A01, &A02,
36 /* ************* */ /* ******************** */
37 &A10, /**/ &A11, &A12,
38 ABL, /**/ ABR, &A20, /**/ &A21, &A22,
39 b, b, FLA_BR );
40
41 FLA_Repart_2x2_to_3x3( TTL, /**/ WTR, &T00, /**/ &W01, &W02,
42 /* ************* */ /* ******************** */
43 &T10, /**/ &T11, &W12,
44 TBL, /**/ TBR, &T20, /**/ &T21, &T22,
45 b, b, FLA_BR );
46
47 /*------------------------------------------------------------*/
48
50 A21, T21,
51 FLA_Cntl_sub_caqr2ut( cntl ) );
52
53
54 if ( FLA_Obj_width( A12 ) > 0 )
55 {
57 A21, T21, W12, A12,
58 A22,
59 FLA_Cntl_sub_apcaq2ut( cntl ) );
60 }
61
62 /*------------------------------------------------------------*/
63
64 FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, A01, /**/ A02,
65 A10, A11, /**/ A12,
66 /* ************** */ /* ****************** */
67 &ABL, /**/ &ABR, A20, A21, /**/ A22,
68 FLA_TL );
69
70 FLA_Cont_with_3x3_to_2x2( &TTL, /**/ &WTR, T00, W01, /**/ W02,
71 T10, T11, /**/ W12,
72 /* ************** */ /* ****************** */
73 &TBL, /**/ &TBR, T20, T21, /**/ T22,
74 FLA_TL );
75
76 }
77
78 return FLA_SUCCESS;
79}
FLA_Error FLA_Apply_CAQ2_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_apcaq2ut_t *cntl)
Definition FLA_Apply_CAQ2_UT_internal.c:17
FLA_Error FLA_CAQR2_UT_internal(FLA_Obj U, FLA_Obj D, FLA_Obj T, fla_caqr2ut_t *cntl)
Definition FLA_CAQR2_UT_internal.c:16
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
dim_t FLA_Obj_width(FLA_Obj obj)
Definition FLA_Query.c:123
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
dim_t FLA_Determine_blocksize(FLA_Obj A_unproc, FLA_Quadrant to_dir, fla_blocksize_t *cntl_blocksizes)
Definition FLA_Blocksize.c:234
dim_t FLA_Obj_min_dim(FLA_Obj obj)
Definition FLA_Query.c:153
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_CAQ2_UT_internal(), FLA_CAQR2_UT_internal(), FLA_Cont_with_3x3_to_2x2(), FLA_Determine_blocksize(), FLA_Obj_min_dim(), FLA_Obj_width(), FLA_Part_2x2(), FLA_Repart_2x2_to_3x3(), and i.

Referenced by FLASH_CAQR_UT_inc_noopt().