15 static bool even =
true;
38 EssentialVectorType essential;
43 v1.applyHouseholderOnTheLeft(essential,
beta,tmp);
46 v1 = VectorType::Random(
rows);
48 v1.applyHouseholderOnTheLeft(essential,
beta,tmp);
52 SquareMatrixType
id, H1, H2;
57 H1.applyHouseholderOnTheLeft(essential,
beta, tmp);
58 H2.applyHouseholderOnTheRight(essential,
beta, tmp);
65 v1 = VectorType::Random(
rows);
66 if(even)
v1.tail(
rows-1).setZero();
70 m1.applyHouseholderOnTheLeft(essential,
beta,tmp);
76 v1 = VectorType::Random(
rows);
77 if(even)
v1.tail(
rows-1).setZero();
79 m3.rowwise() =
v1.transpose();
82 m3.applyHouseholderOnTheRight(essential.conjugate(),
beta,tmp);
90 Index shift = internal::random<Index>(0, std::max<Index>(
rows-2,0));
93 HBlockMatrixType hbm =
m1.block(shift,0,brows,
cols);
96 m2.block(shift,0,brows,
cols) =
qr.matrixQR();
97 HCoeffsVectorType
hc =
qr.hCoeffs().conjugate();
101 VERIFY(hseq.shift() == shift);
104 m5.block(shift,0,brows,
cols).template triangularView<StrictlyLower>().setZero();
109 SquareMatrixType hseq_mat = hseq;
110 SquareMatrixType hseq_mat_conj = hseq.
conjugate();
111 SquareMatrixType hseq_mat_adj = hseq.
adjoint();
112 SquareMatrixType hseq_mat_trans = hseq.
transpose();
113 SquareMatrixType m6 = SquareMatrixType::Random(
rows,
rows);
128 TMatrixType tm2 =
m2.transpose();