Cytnx-dev / Cytnx

Project Cytnx, A Cross-section of Python & C++,Tensor network library
Apache License 2.0
35 stars 13 forks source link

get_block(idx) and put_block(idx) for idx!=0 for DenseUniTensor #298

Open hunghaoti opened 1 year ago

hunghaoti commented 1 year ago

as mention in #176 get_block(idx) and put_block(idx) should throw errors if idx!=0 for DenseUniTensor (currently ignore).

The related unit test are: https://github.com/Cytnx-dev/Cytnx/blob/f62f0cedd6197f7c68999dd2f814783c4b40cc8e/tests/DenseUniTensor_test.cpp#L1241 https://github.com/Cytnx-dev/Cytnx/blob/f62f0cedd6197f7c68999dd2f814783c4b40cc8e/tests/DenseUniTensor_test.cpp#L1361 https://github.com/Cytnx-dev/Cytnx/blob/f62f0cedd6197f7c68999dd2f814783c4b40cc8e/tests/DenseUniTensor_test.cpp#L1471 https://github.com/Cytnx-dev/Cytnx/blob/f62f0cedd6197f7c68999dd2f814783c4b40cc8e/tests/DenseUniTensor_test.cpp#L1567

kaihsin commented 1 year ago

related to #176