8 namespace ublas = boost::numeric::ublas;
16 rmat corrmat(input.size(), input.size());
17 for (
int i = 0; i < input.size(); ++i)
18 for (
int j = 0; j < input.size(); ++j)
19 corrmat(i, j) = input((i + j) % input.size());
20 cmat vl(input.size(), input.size()), vr(input.size(), input.size());
21 cvec evalues(input.size());
22 boost::numeric::bindings::lapack::geev(corrmat, evalues, &vl, &vr,
23 boost::numeric::bindings::lapack::optimal_workspace());
25 noalias(a) = prod(trans(v), input);
void KHLExpand(const rvec &input, rmat &v, rvec &a)