hunghaoti
hunghaoti
I note that since we have remove the folder 'example' in main repo. That cause some of the example code (for instance:the constructor of the UniTensor) in the api doc...
I recommend to add the function 'resize' for Tensor or UniTensor so that the bond dimension can be enlarge or truncate.
Function 'permute_' and 'reshape_' return None. For example: ```python A = cytnx.ones([2,3]) B = A.permute_(1,0) print(B) #None ``` ```python A = cytnx.UniTensor.ones([2,3]) B = A.permute_([1,0]) print(B) #None ```
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
As title, it will throw the error says that the rank not match The related unit tests are: https://github.com/Cytnx-dev/Cytnx/blob/f62f0cedd6197f7c68999dd2f814783c4b40cc8e/tests/DenseUniTensor_test.cpp#L2010 https://github.com/Cytnx-dev/Cytnx/blob/f62f0cedd6197f7c68999dd2f814783c4b40cc8e/tests/DenseUniTensor_test.cpp#L2206 https://github.com/Cytnx-dev/Cytnx/blob/f62f0cedd6197f7c68999dd2f814783c4b40cc8e/tests/DenseUniTensor_test.cpp#L2470 https://github.com/Cytnx-dev/Cytnx/blob/f62f0cedd6197f7c68999dd2f814783c4b40cc8e/tests/DenseUniTensor_test.cpp#L2670 https://github.com/Cytnx-dev/Cytnx/blob/f62f0cedd6197f7c68999dd2f814783c4b40cc8e/tests/DenseUniTensor_test.cpp#L2933 https://github.com/Cytnx-dev/Cytnx/blob/f62f0cedd6197f7c68999dd2f814783c4b40cc8e/tests/DenseUniTensor_test.cpp#L3132 https://github.com/Cytnx-dev/Cytnx/blob/f62f0cedd6197f7c68999dd2f814783c4b40cc8e/tests/DenseUniTensor_test.cpp#L3397 https://github.com/Cytnx-dev/Cytnx/blob/f62f0cedd6197f7c68999dd2f814783c4b40cc8e/tests/DenseUniTensor_test.cpp#L3594
Add the function for randomized SVD based on the paper: https://arxiv.org/pdf/2403.00562
If I read the `example.net` and then save, the `TOUT` in the output file 'savefile.net' has a semicolon ';' ```python net = cytnx.Network("example.net") net.Savefile("savefile") ``` example.net: ``` M1: i, j...
I have seen the version have been bumped up to v1.0.1. However, we may need to consider modified the following files before bumping up the version. ## Edits the following...
Currently, we only test cpu version for every commit. We may need to add for gpu version (maybe running test on local machine.)
Since the current structure of the unitest code seperate CPU and GPU part. So we may not need `device_list` anymore in test_tools.h.