SyTen

◆ exp() [2/2]

STensor syten::STensorImpl::exp ( STensor  in,
SDef  scalar = 1. 
)

Takes the exponential of a hermitian rank-2 tensor multiplied by a scalar prefactor by direct exponentiation after mapping it to matrix form (outgoing leg first, incoming leg second in fermionic order).

Does not change the tensor legs.

References syten::STensorImpl::STensor::autodiff_enabled(), syten::STensorImpl::STensor::b(), change_fermionic_order(), syten::STensorImpl::SBasis::dir(), syten::exponentialTensorSym(), syten::STensorImpl::SBasis::gen_basis(), if_constexpr, syten::Inc, std::move(), syten::STensorImpl::STensor::rank(), SYTEN_ASSERT, SYTEN_TENSOR_RANK, and syten::STensorImpl::STensor::visit().

+ Here is the call graph for this function: