torch
dim是0的时候,按照2也就是行扩展
dim是1的时候,按照3也就是列扩展
t = torch.ones((2, 3))
t0 = torch.cat([t, t], dim=0)
t1 = torch.cat([t, t], dim=1)
print(t)
print("t0:{}\nt0 shape:{}\n\nt1:{}\nt1 shape:{}".format(t0, t0.shape, t1, t1.shape))
一些性质:
埃尔法和贝特首先是线性无关的向量组,并且来自于不同的特征向量
那么可以推导出线性无关: