SyTen

◆ prod() [6/6]

template<Rank rank>
SDef syten::prod ( Tensor< rank > const &  a,
Tensor< rank > const &  b,
Conj const  conj = Conj::y(),
SourceLocation  location = SourceLocation::current() 
)
inline

Scalar product of two tensors.

By default, the elements of the second tensor are complex-conjugated. Legs of the tensors have to be in the same order. Equivalent to reshaping both tensors into vectors and taking the Euclidean scalar product of those.

Parameters
afirst tensor
bsecond tensor
conjif Yes (default), complex-conjugate the second tensor
locationCallsite identifier.

References syten::CudaDenseTensorImpl::conj(), and std::iota().

+ Here is the call graph for this function: