swap

sisl.swap(obj, *args, **kwargs)
sisl.swap(atom: Atoms, atoms1: sisl.typing.SimpleIndex, atoms2: sisl.typing.SimpleIndex) Atoms
sisl.swap(geometry: Geometry, atoms1: sisl.typing.AtomsIndex, atoms2: sisl.typing.AtomsIndex) Geometry
sisl.swap(S: _SparseGeometry, atoms_a: sisl.typing.AtomsIndex, atoms_b: sisl.typing.AtomsIndex) _SparseGeometry

Dispatcher for ‘swap’

See also

Atoms.swap

equivalent to swap(atoms, ...).

Geometry.swap

equivalent to swap(geometry, ...).

_SparseGeometry.swap

equivalent to swap(_sparsegeometry, ...).