SyTen

◆ make_complex()

template<Rank rank, typename Scalar >
DenseTensor<rank, std::complex<typename ScalarBase<Scalar>::type> > syten::make_complex ( DenseTensor< rank, Scalar > const &  in)
inline

Returns a tensor of the complexified real base type of in.

If in is already of complex type, returns a copy of in.

References syten::DenseTensor< rank, Scalar >::getDims(), and syten::DenseTensor< rank, Scalar >::size().

+ Here is the call graph for this function: