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});
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