graph2mat.Formats
- class graph2mat.Formats[source]
Bases:
objectClass holding all known formats.
These are referenced by the conversion manager to understand what a function converts from and to.
Methods
add_alias(fmt, *aliases)Add an alias for a format.
string_to_attr_name(format_string)Get the attribute name that corresponds to a given format string.
Attributes
The format for graph2mat's
BasisConfigurationclass.The format for graph2mat's
BasisMatrix.The format for graph2mat's
BasisMatrixDataclassThe format for a row block dictionary.
Pseudoformat, arrays for edge and node values, without a container.
Numpy array
The format for graph2mat's
OrbitalConfigurationclass.Scipy sparse COO matrix/array
Scipy sparse CSR matrix/array
Sisl
SparseOrbitalclassSisl
DensityMatrixclassSisl
EnergyDensityMatrixclassSisl
Geometryclass, doesn't contain matrix information.Sisl
HamiltonianclassPseudoformat, path to a file from which sisl can read a matrix's data.
Torch tensor
The format for graph2mat's
TorchBasisMatrixDataclass.Torch sparse COO tensor
Torch sparse CSR tensor
Pseudoformat, same as
NODESEDGESbut in torch tensors.- BASISCONFIGURATION = 'basisconfiguration'
The format for graph2mat’s
BasisConfigurationclass.
- BASISMATRIX = 'basismatrix'
The format for graph2mat’s
BasisMatrix.
- BASISMATRIXDATA = 'basismatrixdata'
The format for graph2mat’s
BasisMatrixDataclass
- BLOCK_DICT = 'block_dict'
The format for a row block dictionary.
- NODESEDGES = 'nodesedges'
Pseudoformat, arrays for edge and node values, without a container.
- NUMPY = 'numpy'
Numpy array
- ORBITALCONFIGURATION = 'orbitalconfiguration'
The format for graph2mat’s
OrbitalConfigurationclass.
- SCIPY_COO = 'scipy_coo'
Scipy sparse COO matrix/array
- SCIPY_CSR = 'scipy_csr'
Scipy sparse CSR matrix/array
- SISL = 'sisl'
Sisl
SparseOrbitalclass
- SISL_DM = 'sisl_DM'
Sisl
DensityMatrixclass
- SISL_EDM = 'sisl_EDM'
Sisl
EnergyDensityMatrixclass
- SISL_GEOMETRY = 'sisl_geometry'
Sisl
Geometryclass, doesn’t contain matrix information.
- SISL_H = 'sisl_H'
Sisl
Hamiltonianclass
- SISL_SILE = 'sisl_sile'
Pseudoformat, path to a file from which sisl can read a matrix’s data.
- TORCH = 'torch'
Torch tensor
- TORCH_BASISMATRIXDATA = 'torch_basismatrixdata'
The format for graph2mat’s
TorchBasisMatrixDataclass.
- TORCH_COO = 'torch_coo'
Torch sparse COO tensor
- TORCH_CSR = 'torch_csr'
Torch sparse CSR tensor
- TORCH_NODESEDGES = 'torch_nodesedges'
Pseudoformat, same as
NODESEDGESbut in torch tensors.