graph2mat.Formats
- class graph2mat.Formats[source]
Bases:
object
Class 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
BasisConfiguration
class.The format for graph2mat's
BasisMatrix
.The format for graph2mat's
BasisMatrixData
classThe format for a row block dictionary.
Pseudoformat, arrays for edge and node values, without a container.
Numpy array
The format for graph2mat's
OrbitalConfiguration
class.Scipy sparse COO matrix/array
Scipy sparse CSR matrix/array
Sisl
SparseOrbital
classSisl
DensityMatrix
classSisl
EnergyDensityMatrix
classSisl
Geometry
class, doesn't contain matrix information.Sisl
Hamiltonian
classPseudoformat, path to a file from which sisl can read a matrix's data.
Torch tensor
The format for graph2mat's
TorchBasisMatrixData
class.Torch sparse COO tensor
Torch sparse CSR tensor
Pseudoformat, same as
NODESEDGES
but in torch tensors.- BASISCONFIGURATION = 'basisconfiguration'
The format for graph2mat’s
BasisConfiguration
class.
- BASISMATRIX = 'basismatrix'
The format for graph2mat’s
BasisMatrix
.
- BASISMATRIXDATA = 'basismatrixdata'
The format for graph2mat’s
BasisMatrixData
class
- 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
OrbitalConfiguration
class.
- SCIPY_COO = 'scipy_coo'
Scipy sparse COO matrix/array
- SCIPY_CSR = 'scipy_csr'
Scipy sparse CSR matrix/array
- SISL = 'sisl'
Sisl
SparseOrbital
class
- SISL_DM = 'sisl_DM'
Sisl
DensityMatrix
class
- SISL_EDM = 'sisl_EDM'
Sisl
EnergyDensityMatrix
class
- SISL_GEOMETRY = 'sisl_geometry'
Sisl
Geometry
class, doesn’t contain matrix information.
- SISL_H = 'sisl_H'
Sisl
Hamiltonian
class
- 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
TorchBasisMatrixData
class.
- TORCH_COO = 'torch_coo'
Torch sparse COO tensor
- TORCH_CSR = 'torch_csr'
Torch sparse CSR tensor
- TORCH_NODESEDGES = 'torch_nodesedges'
Pseudoformat, same as
NODESEDGES
but in torch tensors.