Pochung Chen
Pochung Chen
書寫系統可參考http://zh.wikipedia.org/zh-tw/%E5%8E%9F%E4%BD%8F%E6%B0%91%E6%97%8F%E8%AA%9E%E8%A8%80%E6%9B%B8%E5%AF%AB%E7%B3%BB%E7%B5%B1_(%E4%B8%AD%E8%8F%AF%E6%B0%91%E5%9C%8B)
This is to confirm that following codes work properly. Please merge this into master. ```` A = cytnx.UniTensor.ones([2,2]).relabel(["a","b"]).set_name("A") A = cytnx.UniTensor.ones([2]).relabel(["a"]).set_name("A") uT.relabel_(["b","c"], ["j","k"]) uT.relabel_(["d"], ["l"]) uT.relabel_("d", "l") uT.relabel_(old_label="a", new_label="i")
Do we want to change "labels" in keyword argument and method to "label"? For example ```` A = cytnx.UniTensor.ones([8,2,8], labels=["v1","phy","v2"]) or A = cytnx.UniTensor.ones([8,2,8], label=["v1","phy","v2"]) ````
I just notice that we also have `UniTensor.set_label()` and `UniTensor.set_labels()`. * We should also merge these two. * When should one use this instead of relabel?
For example, we have `UniTensor.labels()`. Do we want to change this to `UniTensor.labels()`?
It seems that `relabel/relabels` and `Contract/Contracts` have been merged into single API. We should merge `combineBond/combineBonds` asap.
This is to confirm that all following codes work properly. Please merge it into the master branch. ```` cytnx.Contract(A, B) cytnx.Contract([A, B]) cytnx.Contract([A, B, C]) ```` Question: Do we want...
Also, I think Lanczos will return higher-rank UniTensor. And when you define the LinOp, I think you basically need to match the in and out vector space.
I think the in-place version returns `None` is proper?
I cannot reproduce. Maybe I did something stupid. If I see real example, I will show the example here.