libflame revision_anchor
Functions
FLA_QR_UT_piv_vars.h File Reference

(r)

Go to the source code of this file.

Functions

FLA_Error FLA_QR_UT_piv_unb_var1 (FLA_Obj A, FLA_Obj T, FLA_Obj w, FLA_Obj p)
 
FLA_Error FLA_QR_UT_piv_blk_var1 (FLA_Obj A, FLA_Obj T, FLA_Obj w, FLA_Obj p, fla_qrut_t *cntl)
 
FLA_Error FLA_QR_UT_piv_unb_var2 (FLA_Obj A, FLA_Obj T, FLA_Obj w, FLA_Obj p)
 
FLA_Error FLA_QR_UT_piv_blk_var2 (FLA_Obj A, FLA_Obj T, FLA_Obj w, FLA_Obj p, fla_qrut_t *cntl)
 
FLA_Error FLA_Apply_H2_UT_piv_row (FLA_Obj tau, FLA_Obj a1t, FLA_Obj u1t, FLA_Obj W, FLA_Obj u2, FLA_Obj A2, FLA_Obj U2, FLA_Obj w1t, FLA_Obj vt)
 

Function Documentation

◆ FLA_Apply_H2_UT_piv_row()

FLA_Error FLA_Apply_H2_UT_piv_row ( FLA_Obj  tau,
FLA_Obj  a1t,
FLA_Obj  u1t,
FLA_Obj  W,
FLA_Obj  u2,
FLA_Obj  A2,
FLA_Obj  U2,
FLA_Obj  w1t,
FLA_Obj  vt 
)
50{
51 // a1t -= u1t W = 1 a1t -1 W^T u1t;
54
55 // w1t := a1t;
57
58 // w1t += u2' A2 = 1 w1t + 1 A2^T conj(u2);
60
61 if ( FLA_Obj_min_dim( U2 ) > 0 )
62 {
64
65 // Partition the workspace (a row vector matching the width of a1t)
67
68 // vt := u2'U2 = 0 vt + 1 U2^T conj(u2);
70 FLA_ONE, U2, u2, FLA_ZERO, vt );
71
72 // w1t -= - vt W = 1 w1t -1 W^T vt;
75 }
76
77 // w1t = w1t / tau;
79
80 // a1t = a1t - w1t;
82
83 return FLA_SUCCESS;
84}
FLA_Error FLA_Inv_scalc_external(FLA_Conj conjalpha, FLA_Obj alpha, FLA_Obj A)
Definition FLA_Inv_scalc_external.c:13
FLA_Error FLA_Axpy_external(FLA_Obj alpha, FLA_Obj A, FLA_Obj B)
Definition FLA_Axpy_external.c:13
FLA_Error FLA_Copy_external(FLA_Obj A, FLA_Obj B)
Definition FLA_Copy_external.c:13
FLA_Error FLA_Gemvc_external(FLA_Trans transa, FLA_Conj conjx, FLA_Obj alpha, FLA_Obj A, FLA_Obj x, FLA_Obj beta, FLA_Obj y)
Definition FLA_Gemvc_external.c:13
FLA_Obj FLA_MINUS_ONE
Definition FLA_Init.c:22
FLA_Obj FLA_ZERO
Definition FLA_Init.c:20
FLA_Obj FLA_ONE
Definition FLA_Init.c:18
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
dim_t FLA_Obj_min_dim(FLA_Obj obj)
Definition FLA_Query.c:153
int i
Definition bl1_axmyv2.c:145
Definition FLA_type_defs.h:159

References FLA_Axpy_external(), FLA_Copy_external(), FLA_Gemvc_external(), FLA_Inv_scalc_external(), FLA_MINUS_ONE, FLA_Obj_min_dim(), FLA_Obj_width(), FLA_ONE, FLA_Part_1x2(), FLA_ZERO, and i.

Referenced by FLA_QR_UT_piv_unb_var2().

◆ FLA_QR_UT_piv_blk_var1()

FLA_Error FLA_QR_UT_piv_blk_var1 ( FLA_Obj  A,
FLA_Obj  T,
FLA_Obj  w,
FLA_Obj  p,
fla_qrut_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 TL, TR, T0, T1, W12;
21
22 FLA_Obj pT, p0,
23 pB, p1,
24 p2;
25
26 FLA_Obj wT, w0,
27 wB, w1,
28 w2;
29
30 dim_t b_alg, b;
31
32 // Query the algorithmic blocksize by inspecting the length of T.
34
35 FLA_Part_2x2( A, &ATL, &ATR,
36 &ABL, &ABR, 0, 0, FLA_TL );
37
38 FLA_Part_1x2( T, &TL, &TR, 0, FLA_LEFT );
39
40 FLA_Part_2x1( p, &pT,
41 &pB, 0, FLA_TOP );
42
43 FLA_Part_2x1( w, &wT,
44 &wB, 0, FLA_TOP );
45
46 // Loop over A; T is properly truncated.
47 while ( FLA_Obj_min_dim( ABR ) > 0 ){
48
49 b = min( b_alg, FLA_Obj_min_dim( ABR ) );
50
51 FLA_Repart_2x2_to_3x3( ATL, /**/ ATR, &A00, /**/ &A01, &A02,
52 /* ************* */ /* ******************** */
53 &A10, /**/ &A11, &A12,
54 ABL, /**/ ABR, &A20, /**/ &A21, &A22,
55 b, b, FLA_BR );
56
57 FLA_Repart_1x2_to_1x3( TL, /**/ TR, &T0, /**/ &T1, &W12,
58 b, FLA_RIGHT );
59
61 /* ** */ /* ** */
62 &p1,
63 pB, &p2, b, FLA_BOTTOM );
64
66 /* ** */ /* ** */
67 &w1,
68 wB, &w2, b, FLA_BOTTOM );
69
70 /*------------------------------------------------------------*/
71
73 &T2B, b, FLA_TOP );
74
75 // Perform a unblocked (BLAS2-oriented) QR factorization
76 // with pivoting via the UT transform on ABR:
77 //
78 // ABR -> QB1 R11
79 //
80 // where:
81 // - QB1 is formed from UB1 (which is stored column-wise below the
82 // diagonal of ( A11 A21 )^T and T1T (which is stored to the upper triangle
83 // of T11).
84 // - R11 is stored to ( A11 A12 ).
86 FLA_Cntl_sub_qrut( cntl ) );
87
88 // Apply pivots to previous columns.
90
91 /*------------------------------------------------------------*/
92
93 FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, A01, /**/ A02,
94 A10, A11, /**/ A12,
95 /* ************** */ /* ****************** */
96 &ABL, /**/ &ABR, A20, A21, /**/ A22,
97 FLA_TL );
98
99 FLA_Cont_with_1x3_to_1x2( &TL, /**/ &TR, T0, T1, /**/ W12,
100 FLA_LEFT );
101
103 p1,
104 /* ** */ /* ** */
105 &pB, p2, FLA_TOP );
106
108 w1,
109 /* ** */ /* ** */
110 &wB, w2, FLA_TOP );
111 }
112
113 return FLA_SUCCESS;
114}
FLA_Error FLA_QR_UT_piv_internal(FLA_Obj A, FLA_Obj T, FLA_Obj w, FLA_Obj p, fla_qrut_t *cntl)
Definition FLA_QR_UT_piv_internal.c:13
FLA_Error FLA_Apply_pivots(FLA_Side side, FLA_Trans trans, FLA_Obj p, FLA_Obj A)
Definition FLA_Apply_pivots.c:15
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
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_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
dim_t FLA_Obj_length(FLA_Obj obj)
Definition FLA_Query.c:116
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_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
double *restrict w1
Definition bl1_dotsv3.c:172

References FLA_Apply_pivots(), FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Cont_with_3x3_to_2x2(), FLA_Obj_length(), FLA_Obj_min_dim(), FLA_Part_1x2(), FLA_Part_2x1(), FLA_Part_2x2(), FLA_QR_UT_piv_internal(), FLA_Repart_1x2_to_1x3(), FLA_Repart_2x1_to_3x1(), FLA_Repart_2x2_to_3x3(), i, and w1.

Referenced by FLA_QR_UT_piv_internal().

◆ FLA_QR_UT_piv_blk_var2()

FLA_Error FLA_QR_UT_piv_blk_var2 ( FLA_Obj  A,
FLA_Obj  T,
FLA_Obj  w,
FLA_Obj  p,
fla_qrut_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 TL, TR, T0, T1, W12;
20 FLA_Obj TT, TB;
21
22 FLA_Obj pT, p0,
23 pB, p1,
24 p2;
25
26 FLA_Obj wT, w0,
27 wB, w1,
28 w2;
29
30 dim_t b_alg, b;
31
32 // Query the algorithmic blocksize by inspecting the length of T.
34
35 FLA_Part_2x2( A, &ATL, &ATR,
36 &ABL, &ABR, 0, 0, FLA_TL );
37
38 FLA_Part_1x2( T, &TL, &TR, 0, FLA_LEFT );
39
40 FLA_Part_2x1( p, &pT,
41 &pB, 0, FLA_TOP );
42
43 FLA_Part_2x1( w, &wT,
44 &wB, 0, FLA_TOP );
45
46 while ( FLA_Obj_min_dim( ABR ) > 0 ){
47
48 b = min( b_alg, FLA_Obj_min_dim( ABR ) );
49
50 FLA_Repart_2x2_to_3x3( ATL, /**/ ATR, &A00, /**/ &A01, &A02,
51 /* ************* */ /* ******************** */
52 &A10, /**/ &A11, &A12,
53 ABL, /**/ ABR, &A20, /**/ &A21, &A22,
54 b, b, FLA_BR );
55
56 FLA_Repart_1x2_to_1x3( TL, /**/ TR, &T0, /**/ &T1, &W12,
57 b, FLA_RIGHT );
58
60 /* ** */ /* ** */
61 &p1,
62 pB, &p2, b, FLA_BOTTOM );
63
65 /* ** */ /* ** */
66 &w1,
67 wB, &w2, b, FLA_BOTTOM );
68
69 /*------------------------------------------------------------*/
70
71 // ** Reshape T matrices to match the blocksize b
72 FLA_Part_2x1( TR, &TT,
73 &TB, b, FLA_TOP );
74
75 // ** Perform a unblocked (BLAS2-oriented) QR factorization
76 // with pivoting via the UT transform on ABR:
77 //
78 // ABR -> QB1 R11
79 //
80 // where:
81 // - QB1 is formed from UB1 (which is stored column-wise below the
82 // diagonal of ( A11 A21 )^T and the upper-triangle of T1.
83 // - R11 is stored to ( A11 A12 ).
84 // - W12 stores T and partial updates for FLA_Apply_Q_UT_piv_var.
86 FLA_Cntl_sub_qrut( cntl ) );
87
88 if ( FLA_Obj_width( A12 ) > 0 )
89 {
90 // ** Block update
92 &TB, b, FLA_TOP );
93
96 }
97
98 // ** Apply pivots to previous columns.
100
101 /*------------------------------------------------------------*/
102
103 FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, A01, /**/ A02,
104 A10, A11, /**/ A12,
105 /* ************** */ /* ****************** */
106 &ABL, /**/ &ABR, A20, A21, /**/ A22,
107 FLA_TL );
108
109 FLA_Cont_with_1x3_to_1x2( &TL, /**/ &TR, T0, T1, /**/ W12,
110 FLA_LEFT );
111
113 p1,
114 /* ** */ /* ** */
115 &pB, p2, FLA_TOP );
116
118 w1,
119 /* ** */ /* ** */
120 &wB, w2, FLA_TOP );
121 }
122
123 return FLA_SUCCESS;
124}
FLA_Error FLA_Gemm_external(FLA_Trans transa, FLA_Trans transb, FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C)
Definition FLA_Gemm_external.c:13

References FLA_Apply_pivots(), FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Cont_with_3x3_to_2x2(), FLA_Gemm_external(), FLA_MINUS_ONE, FLA_Obj_length(), FLA_Obj_min_dim(), FLA_Obj_width(), FLA_ONE, FLA_Part_1x2(), FLA_Part_2x1(), FLA_Part_2x2(), FLA_QR_UT_piv_internal(), FLA_Repart_1x2_to_1x3(), FLA_Repart_2x1_to_3x1(), FLA_Repart_2x2_to_3x3(), i, and w1.

Referenced by FLA_QR_UT_piv_internal().

◆ FLA_QR_UT_piv_unb_var1()

FLA_Error FLA_QR_UT_piv_unb_var1 ( FLA_Obj  A,
FLA_Obj  T,
FLA_Obj  w,
FLA_Obj  p 
)
15{
16 FLA_Obj AL, AR;
17
18 FLA_Obj ATL, ATR, A00, a01, A02,
20 A20, a21, A22;
21
22 FLA_Obj AT, A0,
23 AB, a1t,
24 A2;
26
27 FLA_Obj TTL, TTR, T00, t01, T02,
28 TBL, TBR, t10t, tau11, t12t,
29 T20, t21, T22;
30
31 FLA_Obj pT, p0,
32 pB, pi1,
33 p2;
34
35 FLA_Obj wT, w0,
36 wB, omega1,
37 w2;
38
40 //dim_t mb = FLA_Obj_length( A ) - FLA_Obj_width( T );
41
42 FLA_Part_1x2( A, &AL, &AR, nb, FLA_RIGHT );
43
45 &ABL, &ABR, 0, 0, FLA_TL );
46
48 &AB, 0, FLA_TOP );
49
50 FLA_Part_2x2( T, &TTL, &TTR,
51 &TBL, &TBR, 0, 0, FLA_TL );
52
53 FLA_Part_2x1( p, &pT,
54 &pB, 0, FLA_TOP );
55
56 FLA_Part_2x1( w, &wT,
57 &wB, 0, FLA_TOP );
58
59 while ( FLA_Obj_min_dim( ABR ) > 0 ){
60
61 FLA_Repart_2x2_to_3x3( ATL, /**/ ATR, &A00, /**/ &a01, &A02,
62 /* ************* */ /* ************************** */
63 &a10t, /**/ &alpha11, &a12t,
64 ABL, /**/ ABR, &A20, /**/ &a21, &A22,
65 1, 1, FLA_BR );
66
68 /* ** */ /* *** */
69 &a1t,
70 AB, &A2, 1, FLA_BOTTOM );
71
72 FLA_Repart_2x2_to_3x3( TTL, /**/ TTR, &T00, /**/ &t01, &T02,
73 /* ************* */ /* ************************ */
74 &t10t, /**/ &tau11, &t12t,
75 TBL, /**/ TBR, &T20, /**/ &t21, &T22,
76 1, 1, FLA_BR );
77
79 /* ** */ /* *** */
80 &pi1,
81 pB, &p2, 1, FLA_BOTTOM );
82
84 /* ** */ /* *** */
85 &omega1,
86 wB, &w2, 1, FLA_BOTTOM );
87
88 /*------------------------------------------------------------*/
89
90
91 // Ignore minus inputs for LAPACK compatability.
92 if ( FLA_Obj_le( pi1, FLA_ZERO ) == FALSE )
93 {
94 // Determine pivot index
97
98 // Apply pivots
99 FLA_Merge_1x2( ABR, AB, &AB1 );
101 }
102 else
103 {
104 // Do not pivot.
105 FLA_Set( FLA_ZERO, pi1 );
106 }
107
108 // Compute tau11 and u21 from alpha11 and a21 such that tau11 and u21
109 // determine a Householder transform H such that applying H from the
110 // left to the column vector consisting of alpha11 and a21 annihilates
111 // the entries in a21 (and updates alpha11).
113 alpha11,
114 a21, tau11 );
115
116 // Apply H to (a12t A22)^T
117 // / a12t \ = H / a12t \
118 // \ A22 / \ A22 /
119 //
120 // where H is formed from tau11 and u21.
121 FLA_Merge_1x2( A22, A2, &AB1 );
123
125 AB1 );
126
127 // t01 = a10t' + A20' * u21;
130
131 // Apply pivots to previous rows
132 if ( FLA_Obj_le( pi1, FLA_ZERO ) == FALSE )
133 {
134 FLA_Merge_1x2( ATR, AT, &AT1 );
136 }
137
138 // Norm downdate w2 = alpha w2 + beta columnwisenorm2(a12t)
140
141 /*------------------------------------------------------------*/
142
143 FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, a01, /**/ A02,
144 a10t, alpha11, /**/ a12t,
145 /* ************** */ /* ************************ */
146 &ABL, /**/ &ABR, A20, a21, /**/ A22,
147 FLA_TL );
148
150 a1t,
151 /* ** */ /* *** */
152 &AB, A2, FLA_TOP );
153
154 FLA_Cont_with_3x3_to_2x2( &TTL, /**/ &TTR, T00, t01, /**/ T02,
155 t10t, tau11, /**/ t12t,
156 /* ************** */ /* ********************** */
157 &TBL, /**/ &TBR, T20, t21, /**/ T22,
158 FLA_TL );
159
161 pi1,
162 /* ** */ /* *** */
163 &pB, p2, FLA_TOP );
164
166 omega1,
167 /* ** */ /* *** */
168 &wB, w2, FLA_TOP );
169 }
170
171 return FLA_SUCCESS;
172}
FLA_Error FLA_QR_UT_piv_colnorm(FLA_Obj alpha, FLA_Obj A, FLA_Obj b)
Definition FLA_QR_UT_piv_colnorm.c:13
FLA_Error FLA_Amax_external(FLA_Obj x, FLA_Obj index)
Definition FLA_Amax_external.c:13
FLA_Error FLA_Copyt_external(FLA_Trans trans, FLA_Obj A, FLA_Obj B)
Definition FLA_Copyt_external.c:13
FLA_Error FLA_Gemv_external(FLA_Trans transa, FLA_Obj alpha, FLA_Obj A, FLA_Obj x, FLA_Obj beta, FLA_Obj y)
Definition FLA_Gemv_external.c:13
FLA_Error FLA_Apply_H2_UT(FLA_Side side, FLA_Obj tau, FLA_Obj u2, FLA_Obj a1, FLA_Obj A2)
Definition FLA_Apply_H2_UT.c:13
FLA_Error FLA_Merge_1x2(FLA_Obj AL, FLA_Obj AR, FLA_Obj *A)
Definition FLA_View.c:562
FLA_Bool FLA_Obj_le(FLA_Obj A, FLA_Obj B)
Definition FLA_Query.c:890
FLA_Error FLA_Set(FLA_Obj alpha, FLA_Obj A)
Definition FLA_Set.c:13
FLA_Error FLA_Househ2_UT(FLA_Side side, FLA_Obj chi_1, FLA_Obj x2, FLA_Obj tau)
Definition FLA_Househ2_UT.c:16
double *restrict omega1
Definition bl1_axpyv2bdotaxpy.c:200

References FLA_Amax_external(), FLA_Apply_H2_UT(), FLA_Apply_pivots(), FLA_Cont_with_3x1_to_2x1(), FLA_Cont_with_3x3_to_2x2(), FLA_Copyt_external(), FLA_Gemv_external(), FLA_Househ2_UT(), FLA_Merge_1x2(), FLA_MINUS_ONE, FLA_Obj_le(), FLA_Obj_min_dim(), FLA_Obj_width(), FLA_ONE, FLA_Part_1x2(), FLA_Part_2x1(), FLA_Part_2x2(), FLA_QR_UT_piv_colnorm(), FLA_Repart_2x1_to_3x1(), FLA_Repart_2x2_to_3x3(), FLA_Set(), FLA_ZERO, i, and omega1.

Referenced by FLA_QR_UT_piv_internal().

◆ FLA_QR_UT_piv_unb_var2()

FLA_Error FLA_QR_UT_piv_unb_var2 ( FLA_Obj  A,
FLA_Obj  T,
FLA_Obj  w,
FLA_Obj  p 
)
14{
15 FLA_Obj ATL, ATR, A00, a01, A02,
17 A20, a21, A22;
18
19 FLA_Obj TTL, TTR, T00, t01, T02,
20 TBL, TBR, t10t, tau11, t12t,
21 T20, t21, T22;
22
23 FLA_Obj pT, p0,
24 pB, pi1,
25 p2;
26
27 FLA_Obj wT, w0,
28 wB, omega1,
29 w2;
30
31 FLA_Obj ab1, v;
32
33 // Create workspace
34 FLA_Obj_create( FLA_Obj_datatype( T ), 1, FLA_Obj_width( T ), 0, 0, &v );
35
36 FLA_Part_2x2( A, &ATL, &ATR,
37 &ABL, &ABR, 0, 0, FLA_TL );
38
39 FLA_Part_2x2( T, &TTL, &TTR,
40 &TBL, &TBR, 0, 0, FLA_TL );
41
42 FLA_Part_2x1( p, &pT,
43 &pB, 0, FLA_TOP );
44
45 FLA_Part_2x1( w, &wT,
46 &wB, 0, FLA_TOP );
47
48 while ( FLA_Obj_min_dim( pB ) > 0 ) {
49
50 FLA_Repart_2x2_to_3x3( ATL, /**/ ATR, &A00, /**/ &a01, &A02,
51 /* ************* */ /* ************************** */
52 &a10t, /**/ &alpha11, &a12t,
53 ABL, /**/ ABR, &A20, /**/ &a21, &A22,
54 1, 1, FLA_BR );
55
56 FLA_Repart_2x2_to_3x3( TTL, /**/ TTR, &T00, /**/ &t01, &T02,
57 /* ************* */ /* ************************ */
58 &t10t, /**/ &tau11, &t12t,
59 TBL, /**/ TBR, &T20, /**/ &t21, &T22,
60 1, 1, FLA_BR );
61
63 /* ** */ /* *** */
64 &pi1,
65 pB, &p2, 1, FLA_BOTTOM );
66
68 /* ** */ /* *** */
69 &omega1,
70 wB, &w2, 1, FLA_BOTTOM );
71
72 /*------------------------------------------------------------*/
73
74
75 // ** Ignore minus inputs for LAPACK compatability.
76 if ( FLA_Obj_lt( pi1, FLA_ZERO ) == FALSE )
77 {
78 // ** Determine pivot index
80
81 // ** BLIS returns -1 if it fails to search the maximum value
82 if ( FLA_Obj_lt( pi1, FLA_ZERO ) == TRUE )
84
85 // ** Apply a pivot on column norms
87
88 // ** Apply a pivot on ABR
90
91 // ** Apply a pivot on TTR
93 }
94 else
95 {
96 // ** Do not pivot.
98 }
99
100 // ** Update the pivot column
102 a21, &ab1 );
103
104 // ab1 = ab1 - ABL t01
106
107 // ** Find the householder reflector on that column
109 a21, tau11 );
110
111 // ** Update the pivot row
113 a21, A22, A20, t12t,
114 v );
115
116 // ** Apply pivots on ATR
118
119 // ** Norm downdate w2 = w2 - columnwisenorm2(a12t)
121
122 // ** Update T matrix
123 // t01 = a10t' + A20' * u21;
126
127 /*------------------------------------------------------------*/
128
129 FLA_Cont_with_3x3_to_2x2( &ATL, /**/ &ATR, A00, a01, /**/ A02,
130 a10t, alpha11, /**/ a12t,
131 /* ************** */ /* ************************ */
132 &ABL, /**/ &ABR, A20, a21, /**/ A22,
133 FLA_TL );
134
135 FLA_Cont_with_3x3_to_2x2( &TTL, /**/ &TTR, T00, t01, /**/ T02,
136 t10t, tau11, /**/ t12t,
137 /* ************** */ /* ********************** */
138 &TBL, /**/ &TBR, T20, t21, /**/ T22,
139 FLA_TL );
140
142 pi1,
143 /* ** */ /* *** */
144 &pB, p2, FLA_TOP );
145
147 omega1,
148 /* ** */ /* *** */
149 &wB, w2, FLA_TOP );
150 }
151
152 // Free the workspace
153 FLA_Obj_free( &v);
154
155 return FLA_SUCCESS;
156}
FLA_Error FLA_Apply_H2_UT_piv_row(FLA_Obj tau, FLA_Obj a1t, FLA_Obj u1t, FLA_Obj W, FLA_Obj u2, FLA_Obj A2, FLA_Obj U2, FLA_Obj w1t, FLA_Obj vt)
Definition FLA_Apply_H2_UT_piv_row.c:14
FLA_Error FLA_Obj_create(FLA_Datatype datatype, dim_t m, dim_t n, dim_t rs, dim_t cs, FLA_Obj *obj)
Definition FLA_Obj.c:55
FLA_Bool FLA_Obj_lt(FLA_Obj A, FLA_Obj B)
Definition FLA_Query.c:813
FLA_Error FLA_Merge_2x1(FLA_Obj AT, FLA_Obj AB, FLA_Obj *A)
Definition FLA_View.c:541
FLA_Error FLA_Obj_free(FLA_Obj *obj)
Definition FLA_Obj.c:588
FLA_Datatype FLA_Obj_datatype(FLA_Obj obj)
Definition FLA_Query.c:13

References FLA_Amax_external(), FLA_Apply_H2_UT_piv_row(), FLA_Apply_pivots(), FLA_Cont_with_3x1_to_2x1(), FLA_Cont_with_3x3_to_2x2(), FLA_Copyt_external(), FLA_Gemv_external(), FLA_Househ2_UT(), FLA_Merge_2x1(), FLA_MINUS_ONE, FLA_Obj_create(), FLA_Obj_datatype(), FLA_Obj_free(), FLA_Obj_lt(), FLA_Obj_min_dim(), FLA_Obj_width(), FLA_ONE, FLA_Part_2x1(), FLA_Part_2x2(), FLA_QR_UT_piv_colnorm(), FLA_Repart_2x1_to_3x1(), FLA_Repart_2x2_to_3x3(), FLA_Set(), FLA_ZERO, i, and omega1.

Referenced by FLA_QR_UT_piv_internal().