SyTen

◆ hermitize_by_copy()

STensor syten::STensorImpl::hermitize_by_copy ( STensor  in,
SBasisId  row_id,
SBasisId  col_id 
)

Hermitizes the input tensor by copying the elements from the upper triangular part complex-conjugated to the lower triangular part.

The matrix must be square.

Remarks
This function is not autodifferentiable.

References syten::STensorImpl::STensor::autodiff_enabled(), syten::STensorImpl::STensor::bi(), syten::conj(), conj(), if_constexpr, real(), SYTEN_ASSERT, SYTEN_ASSERT_MSG, SYTEN_TENSOR_RANK, and syten::STensorImpl::STensor::visnz().

Referenced by syten::STensorImpl::Autodiff::qr_adjoint_evaluator().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: