thx!
std::tuple<ITensor,ITensor,ITensor>
svd(ITensor const& AA, IndexSet const& Uis,
Args args)
{
ITensor U(Uis),S,V;
svd(AA,U,S,V,args);
auto u = commonIndex(U,S);
auto v = commonIndex(S,V);
return std::tuple<ITensor,ITensor,ITensor>(U,S,V);
}
【 在 wushunchao 的大作中提到: 】
: 弄个struct呗, a.U, a.S, a.?(这个隔个点也是关键词,哈哈,真是无语)
:
--
FROM 219.246.54.*