SyTen

◆ left_evectors

template<typename Type >
DenseTensor<2, Scalar> syten::DenseEigensolver::DenseEigensolverBase< Type >::left_evectors

Matrix of left eigenvectors, each row contains one complex-conjugated vector.

Specifically, conj(left_evectors)·M is the same as D·conj(left_evectors) or in code:

DenseTensor<2> mat({10,10}); makeRandom(mat);
DenseTensor<2> dia({10, 10});
for(Index i(0); i != 10; ++i) { dia[{i,i}] = solver.evalues[i]; }
auto lvecs = conj(solver.left_evectors);
auto lm = prodD<1>(lvecs, mat, {-1, 1}, {1, -2});
auto dl = prodD<1>(dia, lvecs, {-1, 1}, {1, -2}); // dl == lm
void makeRandom(DenseTensor< rank, Scalar > &a, double b=-2., double e=2.)
Fills the tensor with random values between b and e.
Definition: dense_make.h:12
DenseTensor< rank, Scalar > conj(DenseTensor< rank, Scalar > const &a)
Returns the element-wise complex-conjugate of a
Definition: dense_conj.h:21
void transpose(ConstSpan< Scalar > const inp, MutSpan< Scalar > out, ConstSpan< Index > in_perm, ConstSpan< Index > in_dim, Conj do_conj=Conj::n(), bool do_checks=true)
Entry point for transposition of a continuous array into another array.
Definition: dense_transpose.h:373
Dense nonsymmetric eigensolver, nonfunctional template base.
Definition: dense_eigensolver.h:130