libflame  revision_anchor
Functions
FLA_Bidiag_UT_recover_tau.c File Reference

(r)

Functions

FLA_Error FLA_Bidiag_UT_recover_tau_panel (FLA_Obj T, FLA_Obj t)
 
FLA_Error FLA_Bidiag_UT_recover_tau_submatrix (FLA_Obj T, FLA_Obj t)
 
FLA_Error FLA_Bidiag_UT_recover_tau (FLA_Obj TU, FLA_Obj TV, FLA_Obj tu, FLA_Obj tv)
 

Function Documentation

◆ FLA_Bidiag_UT_recover_tau()

FLA_Error FLA_Bidiag_UT_recover_tau ( FLA_Obj  TU,
FLA_Obj  TV,
FLA_Obj  tu,
FLA_Obj  tv 
)

References FLA_Bidiag_UT_recover_tau_check(), FLA_Bidiag_UT_recover_tau_panel(), and FLA_Check_error_level().

17 {
18  if ( FLA_Check_error_level() >= FLA_MIN_ERROR_CHECKING )
19  FLA_Bidiag_UT_recover_tau_check( TU, TV, tu, tv );
20 
23 
24  return FLA_SUCCESS;
25 }
FLA_Error FLA_Bidiag_UT_recover_tau_check(FLA_Obj TU, FLA_Obj TV, FLA_Obj tu, FLA_Obj tv)
Definition: FLA_Bidiag_UT_recover_tau_check.c:13
FLA_Error FLA_Bidiag_UT_recover_tau_panel(FLA_Obj T, FLA_Obj t)
Definition: FLA_Bidiag_UT_recover_tau.c:27
unsigned int FLA_Check_error_level(void)
Definition: FLA_Check.c:18

◆ FLA_Bidiag_UT_recover_tau_panel()

FLA_Error FLA_Bidiag_UT_recover_tau_panel ( FLA_Obj  T,
FLA_Obj  t 
)

References FLA_Bidiag_UT_recover_tau_submatrix(), FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Obj_length(), FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), and FLA_Repart_2x1_to_3x1().

Referenced by FLA_Bidiag_UT_recover_tau().

28 {
29  FLA_Obj TL, TR, T0, T1, T2;
30 
31  FLA_Obj tT, t0,
32  tB, t1,
33  t2;
34 
35  dim_t b_alg, b;
36 
37  b_alg = FLA_Obj_length( T );
38 
39  FLA_Part_1x2( T, &TL, &TR, 0, FLA_LEFT );
40 
41  FLA_Part_2x1( t, &tT,
42  &tB, 0, FLA_TOP );
43 
44  while ( FLA_Obj_length( tT ) < FLA_Obj_length( t ) ){
45 
46  b = min( FLA_Obj_length( tB ), b_alg );
47 
48  FLA_Repart_1x2_to_1x3( TL, /**/ TR, &T0, /**/ &T1, &T2,
49  b, FLA_RIGHT );
50 
51  FLA_Repart_2x1_to_3x1( tT, &t0,
52  /* ** */ /* ** */
53  &t1,
54  tB, &t2, b, FLA_BOTTOM );
55 
56  /*------------------------------------------------------------*/
57 
59 
60  /*------------------------------------------------------------*/
61 
62  FLA_Cont_with_1x3_to_1x2( &TL, /**/ &TR, T0, T1, /**/ T2,
63  FLA_LEFT );
64 
65  FLA_Cont_with_3x1_to_2x1( &tT, t0,
66  t1,
67  /* ** */ /* ** */
68  &tB, t2, FLA_TOP );
69  }
70 
71  return FLA_SUCCESS;
72 }
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
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
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_Bidiag_UT_recover_tau_submatrix(FLA_Obj T, FLA_Obj t)
Definition: FLA_Bidiag_UT_recover_tau.c:75
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

◆ FLA_Bidiag_UT_recover_tau_submatrix()

FLA_Error FLA_Bidiag_UT_recover_tau_submatrix ( FLA_Obj  T,
FLA_Obj  t 
)

References FLA_Cont_with_3x1_to_2x1(), FLA_Cont_with_3x3_to_2x2(), FLA_Copy_external(), FLA_Obj_min_dim(), FLA_Part_2x1(), FLA_Part_2x2(), FLA_Repart_2x1_to_3x1(), and FLA_Repart_2x2_to_3x3().

Referenced by FLA_Bidiag_UT_recover_tau_panel().

76 {
77  FLA_Obj TTL, TTR, T00, t01, T02,
78  TBL, TBR, t10t, tau11, t12t,
79  T20, t21, T22;
80 
81  FLA_Obj tT, t0,
82  tB, tau1,
83  t2;
84 
85 
86  FLA_Part_2x2( T, &TTL, &TTR,
87  &TBL, &TBR, 0, 0, FLA_TL );
88 
89  FLA_Part_2x1( t, &tT,
90  &tB, 0, FLA_TOP );
91 
92  while ( FLA_Obj_min_dim( TBR ) > 0 ){
93 
94  FLA_Repart_2x2_to_3x3( TTL, /**/ TTR, &T00, /**/ &t01, &T02,
95  /* ************* */ /* ************************ */
96  &t10t, /**/ &tau11, &t12t,
97  TBL, /**/ TBR, &T20, /**/ &t21, &T22,
98  1, 1, FLA_BR );
99 
100  FLA_Repart_2x1_to_3x1( tT, &t0,
101  /* ** */ /* ** */
102  &tau1,
103  tB, &t2, 1, FLA_BOTTOM );
104 
105  /*------------------------------------------------------------*/
106 
107  // tau1 = tau11;
108  FLA_Copy_external( tau11, tau1 );
109 
110  /*------------------------------------------------------------*/
111 
112  FLA_Cont_with_3x3_to_2x2( &TTL, /**/ &TTR, T00, t01, /**/ T02,
113  t10t, tau11, /**/ t12t,
114  /* ************** */ /* ********************** */
115  &TBL, /**/ &TBR, T20, t21, /**/ T22,
116  FLA_TL );
117 
118  FLA_Cont_with_3x1_to_2x1( &tT, t0,
119  tau1,
120  /* ** */ /* ** */
121  &tB, t2, FLA_TOP );
122 
123  }
124 
125  return FLA_SUCCESS;
126 }
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_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_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_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_Copy_external(FLA_Obj A, FLA_Obj B)
Definition: FLA_Copy_external.c:13
Definition: FLA_type_defs.h:158
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_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
dim_t FLA_Obj_min_dim(FLA_Obj obj)
Definition: FLA_Query.c:153