BasicTools.TensorTools.Formats module

class BasicTools.TensorTools.Formats.BaseTensor[source]

Bases: object

AddSubTensor(Gs)[source]
GetAxisNames()[source]
GetNumberOfDims()[source]
Restriction(part={})[source]

Particularisation of the canonic Tensor for some dimension , part is a dictionary with the names and the index to particularize

class BasicTools.TensorTools.Formats.CanonicTensor[source]

Bases: SparseBaseTensor

AddSubTensor(data, name=None)[source]
BasicTools.TensorTools.Formats.CheckIntegrity()[source]
class BasicTools.TensorTools.Formats.FullTensor(nRanks=2, data=None)[source]

Bases: BaseTensor

a numpy darray with names

GetAxisNames()[source]
SetRanksNames(names)[source]
class BasicTools.TensorTools.Formats.SparseBaseTensor[source]

Bases: BaseTensor

CheckIntegrity(verbose=True)[source]
Reduction(redRanks=[])[source]
class BasicTools.TensorTools.Formats.TensorSum(first, second)[source]

Bases: BaseTensor

GetAxisNames()[source]
class BasicTools.TensorTools.Formats.TensorTrain[source]

Bases: SparseBaseTensor

AddSubTensor(data, name=None)[source]