qlat_utils.Coordinate

class qlat_utils.Coordinate(x=None)
__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

copy(self, Bool is_copying_data=True)

from_index(self, Long index, Coordinate size)

from_list(self, x)

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

r_sqr(self)

get spatial distance square as int

spatial_volume(self)

get product of all components

sqr(self)

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

to_index(self, Coordinate size)

to_list(self)

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

to_numpy(self)

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

to_tuple(self)

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

volume(self)

get product of all components