12#ifndef TLAPACK_LAED2_HH
13#define TLAPACK_LAED2_HH
60 std::cout << std::setprecision(15);
70 else if (
ldq < max(idx_t(1), n)) {
73 else if (min(idx_t(1), (n / 2)) >
n1 || (n / 2) <
n1) {
103 for (idx_t i =
n1p1 - 1; i < n; i++) {
105 std::cout <<
"INDXQ[I] =" <<
indxq[i] << std::endl;
109 for (idx_t i = 0; i < n; i++) {
111 std::cout <<
"DLAMBDA[I] = " <<
dlambda[i] << std::endl;
114 for (idx_t i = 0; i < n; i++) {
116 std::cout <<
"INDXQ[INDXC[I]] = " <<
indxq[
indxc[i]] << std::endl;
134 for (idx_t j = 0; j < n; j++) {
157 for (idx_t i = 0; i <
n1; i++) {
161 for (idx_t i =
n1p1 - 1; i < n; i++) {
170 for (idx_t j = 0; j < n; j++) {
186 std::cout <<
"NJ = " <<
nj << std::endl;
187 std::cout <<
"J = " << j << std::endl;
188 std::cout <<
"K = " <<
k << std::endl;
189 std::cout <<
"K2 = " <<
k2 << std::endl;
190 std::cout <<
"PJ = " <<
pj << std::endl;
287 std::vector<real_t>
ctot(4);
289 for (idx_t j = 0; j < 4; j++) {
293 for (idx_t j = 0; j < n; j++) {
298 std::vector<real_t>
psm(4);
311 for (idx_t j = 0; j < n; j++) {
328 for (idx_t j = 0; j <
ctot[0]; j++) {
340 for (idx_t j = 0; j <
ctot[1]; j++) {
356 for (idx_t j = 0; j <
ctot[2]; j++) {
370 for (idx_t j = 0; j <
ctot[3]; j++) {
392 for (idx_t j = 0; j < 4; j++) {
void lacpy(uplo_t uplo, const matrixA_t &A, matrixB_t &B)
Copies a matrix from A to B.
Definition lacpy.hpp:38
void copy(const vectorX_t &x, vectorY_t &y)
Copy vector, .
Definition copy.hpp:31
size_type< vector_t > iamax(const vector_t &x, const IamaxOpts< abs_f > &opts)
Return .
Definition iamax.hpp:234
void scal(const alpha_t &alpha, vector_t &x)
Scale vector by constant, .
Definition scal.hpp:30
Sort the numbers in D in increasing order (if ID = 'I') or in decreasing order (if ID = 'D' ).
Definition arrayTraits.hpp:15
typename traits::real_type_traits< Types..., int >::type real_type
The common real type of the list of types.
Definition scalar_type_traits.hpp:113
constexpr internal::GeneralAccess GENERAL
General access.
Definition types.hpp:180
void lamrg(idx_t n1, idx_t n2, a_t &a, int dtrd1, int dtrd2, idx1_t &index)
DLAMRG creates a permutation list to merge the entries of two independently sorted sets into a single...
Definition lamrg.hpp:64