Cytnx icon indicating copy to clipboard operation
Cytnx copied to clipboard

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

Open hunghaoti opened this issue 2 years ago • 1 comments

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

hunghaoti avatar Oct 11 '23 11:10 hunghaoti

related to #176

kaihsin avatar Oct 11 '23 13:10 kaihsin