yingjerkao / uni10

Official Repo for Uni10
28 stars 9 forks source link

Uni10 doe not accept label list when is being initialized... #14

Open rezah opened 8 years ago

rezah commented 8 years ago

The following is not allowed!!! mpo_uni10=uni10.UniTensor([bdi, bdi, bdo,bdo],[0,1,2,3], "uni10")

Please see the attached.... R2.py.tar.gz

yingjerkao commented 8 years ago

Bug reproduced.

yingjerkao commented 7 years ago

Swig should have mapped the list of integers to a std::vector<int> but somehow it didn't generate the code. One workaround is to explicitly typecast it mpo_uni10=uni10.UniTensor([bdi, bdi, bdo,bdo],uni10.int_arr([0,1,2,3]), "uni10") which solves the issue.