libflame  revision_anchor
Functions
FLA_Apply_Q_UT_rnfc_blk_var2.c File Reference

(r)

Functions

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

Function Documentation

◆ FLA_Apply_Q_UT_rnfc_blk_var2()

FLA_Error FLA_Apply_Q_UT_rnfc_blk_var2 ( FLA_Obj  A,
FLA_Obj  T,
FLA_Obj  W,
FLA_Obj  B,
fla_apqut_t cntl 
)

References FLA_Apply_Q_UT_internal(), FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), 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_Apply_Q_UT_rnfc().

14 {
15  FLA_Obj BT, B0,
16  BB, B1,
17  B2;
18 
19  FLA_Obj WL, WR, W0, W1, W2;
20 
21  dim_t b;
22 
23  FLA_Part_2x1( B, &BT,
24  &BB, 0, FLA_TOP );
25 
26  FLA_Part_1x2( W, &WL, &WR, 0, FLA_LEFT );
27 
28  while ( FLA_Obj_length( BT ) < FLA_Obj_length( B ) ){
29 
30  b = FLA_Determine_blocksize( BT, FLA_TOP, FLA_Cntl_blocksize( cntl ) );
31 
32  FLA_Repart_2x1_to_3x1( BT, &B0,
33  /* ** */ /* ** */
34  &B1,
35  BB, &B2, b, FLA_BOTTOM );
36 
37  FLA_Repart_1x2_to_1x3( WL, /**/ WR, &W0, /**/ &W1, &W2,
38  b, FLA_RIGHT );
39 
40  /*------------------------------------------------------------*/
41 
42  // B1 = B1 * Q;
43  FLA_Apply_Q_UT_internal( FLA_RIGHT, FLA_NO_TRANSPOSE, FLA_FORWARD, FLA_COLUMNWISE,
44  A, T, W1, B1,
45  FLA_Cntl_sub_apqut( cntl ) );
46 
47  /*------------------------------------------------------------*/
48 
49  FLA_Cont_with_3x1_to_2x1( &BT, B0,
50  B1,
51  /* ** */ /* ** */
52  &BB, B2, FLA_TOP );
53 
54  FLA_Cont_with_1x3_to_1x2( &WL, /**/ &WR, W0, W1, /**/ W2,
55  FLA_LEFT );
56  }
57 
58  return FLA_SUCCESS;
59 }
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_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
dim_t FLA_Determine_blocksize(FLA_Obj A_unproc, FLA_Quadrant to_dir, fla_blocksize_t *cntl_blocksizes)
Definition: FLA_Blocksize.c:234
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_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
Definition: FLA_type_defs.h:158
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_2x1(FLA_Obj A, FLA_Obj *A1, FLA_Obj *A2, dim_t mb, FLA_Side side)
Definition: FLA_View.c:76
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
dim_t FLA_Obj_length(FLA_Obj obj)
Definition: FLA_Query.c:116