qlat_utils.Coordinate

class qlat_utils.Coordinate
__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

copy([is_copying_data])

from_index(index, size)

from_list(x)

set value based on a list composed of the 4 components of the coordinate.

r_sqr()

get spatial distance square as int

spatial_volume()

get product of all components

sqr()

Return the square sum of all the components as cc.Long.

to_index(size)

to_list()

Return a list composed of the 4 components of the coordinate.

to_numpy()

Return a np.ndarray composed of the 4 components of the coordinate.

to_tuple()

Return a tuple composed of the 4 components of the coordinate.

volume()

get product of all components