libflame revision_anchor
Functions
FLA_Apply_Q_UT_lnbr_blk_var2.c File Reference

(r)

Functions

FLA_Error FLA_Apply_Q_UT_lnbr_blk_var2 (FLA_Obj A, FLA_Obj T, FLA_Obj W, FLA_Obj B, fla_apqut_t *cntl)
 

Function Documentation

◆ FLA_Apply_Q_UT_lnbr_blk_var2()

FLA_Error FLA_Apply_Q_UT_lnbr_blk_var2 ( FLA_Obj  A,
FLA_Obj  T,
FLA_Obj  W,
FLA_Obj  B,
fla_apqut_t cntl 
)
14{
15 FLA_Obj BL, BR, B0, B1, B2;
16
17 FLA_Obj WL, WR, W0, W1, W2;
18
19 dim_t b;
20
21 FLA_Part_1x2( B, &BL, &BR, 0, FLA_LEFT );
22
23 FLA_Part_1x2( W, &WL, &WR, 0, FLA_LEFT );
24
25 while ( FLA_Obj_width( BL ) < FLA_Obj_width( B ) ){
26
28
29 FLA_Repart_1x2_to_1x3( BL, /**/ BR, &B0, /**/ &B1, &B2,
30 b, FLA_RIGHT );
31
32 FLA_Repart_1x2_to_1x3( WL, /**/ WR, &W0, /**/ &W1, &W2,
33 b, FLA_RIGHT );
34
35 /*------------------------------------------------------------*/
36
37 // B1 = Q * B1;
39 A, T, W1, B1,
40 FLA_Cntl_sub_apqut( cntl ) );
41
42 /*------------------------------------------------------------*/
43
44 FLA_Cont_with_1x3_to_1x2( &BL, /**/ &BR, B0, B1, /**/ B2,
45 FLA_LEFT );
46
47 FLA_Cont_with_1x3_to_1x2( &WL, /**/ &WR, W0, W1, /**/ W2,
48 FLA_LEFT );
49 }
50
51 return FLA_SUCCESS;
52}
FLA_Error FLA_Apply_Q_UT_internal(FLA_Side side, FLA_Trans trans, FLA_Direct direct, FLA_Store storev, FLA_Obj A, FLA_Obj T, FLA_Obj W, FLA_Obj B, fla_apqut_t *cntl)
Definition FLA_Apply_Q_UT_internal.c:17
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_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
int i
Definition bl1_axmyv2.c:145
Definition FLA_type_defs.h:159

References FLA_Apply_Q_UT_internal(), FLA_Cont_with_1x3_to_1x2(), FLA_Determine_blocksize(), FLA_Obj_width(), FLA_Part_1x2(), FLA_Repart_1x2_to_1x3(), and i.

Referenced by FLA_Apply_Q_UT_lnbr().