Replies: 2 comments
-
I think it is expected but misleading. Maybe we should throw a warning so that the user may not misuse it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Diagonal matrices don't have to be square; there is no conceptual problem to having a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When create a diagonal UniTensor with shape [3,3] and then call truncate(idx=0, dim=2) to truncate the bond dimension for first bond. Currently, it will return a diagonal UniTensor with shape [2,2]. Is it expected or a bug ?
The related unit test is and see line #L4562
Cytnx/tests/DenseUniTensor_test.cpp
Lines 4545 to 4566 in f62f0ce
Beta Was this translation helpful? Give feedback.
All reactions