qlat.GaugeTransform

class qlat.GaugeTransform(Geometry geo=None, multiplicity=1)
__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

as_field(self[, ctype])

return new Field(ctype) with the same content

cast_from(self, FieldBase other)

other can be Field but of different type

copy(self, Bool is_copying_data=True)

crc32(self)

double_from_float(self, FieldRealF ff)

self can be any FieldBase subtype but need to be actually contains double precision numbers

float_from_double(self, FieldBase f)

self needs to be FieldRealF

from_field(self, f)

assign from f with the same content but possibly different type

get_data_sig(self, RngState rng)

get a signature of the real_d or complex_d field

get_elem(self, idx[, m])

get_elem_xg(self, xg_arr, Int m)

get_elems(self, idx)

get_elems_xg(self, xg_arr)

glb_sum(self)

return SelectedPoints with n_points=1

glb_sum_tslice(self, *, Int t_dir=3)

return SelectedPoints with n_points=total_site[t_dir]

init_from_geo(self, Geometry geo=None, ...)

inv(self)

load(self, path)

Load as double precision with the generic Field format load_double

load_64(self, path, *args, **kwargs)

Generic load for 64-bit size element Field object load 64-bit Field (do conversion of endianness)

load_cps(self, path)

Load with the format used in CPS

load_direct(self, path, *args, **kwargs)

Generic load for Field object load Field directly (without any conversion of endianness or precision) Field geo and multiplicity will be determined during loading possible way to call: f.load_direct(path) f.load_direct(sfr, fn)

load_double(self, path, *args, **kwargs)

Generic load for double Field object load double Field (do conversion of endianness)

load_double_from_float(self, path, *args, ...)

Generic load for double Field object load double Field from float(do conversion of endianness or precision)

mview(self)

qnorm(self)

qnorm_field(self)

read_direct(self, string fn, ...)

read_sfr_direct(self, ...)

release_buffer(self, Buffer buf)

save(self, path)

Save as double precision with the generic Field format save_double

save_64(self, path, *args, **kwargs)

Generic save for 64-bit size element Field object save 64-bit Field (do conversion of endianness)

save_cps(self, path)

Save with the format used in CPS

save_direct(self, path, *args, **kwargs)

Generic save for Field object save Field directly (without any conversion of endianness or precision) possible way to call: f.save_direct(path) f.save_direct(sfw, fn)

save_double(self, path, *args, **kwargs)

Generic save for double element Field object save double Field as double (do conversion of endianness)

save_float_from_double(self, path, *args, ...)

Generic save for double element Field object save double Field as float (do conversion of endianness and precision)

set_elem(self, idx, m, val)

val should be np.ndarray.

set_elem_xg(self, xg_arr, Int m, val)

set_elems(self, idx, val)

val should be np.ndarray.

set_elems_xg(self, xg_arr, val)

set_rand(self, RngState rng, ...)

set_rand_g(self, RngState rng, ...)

set_unit(self, double complex coef=1.0)

set_zero(self)

shift(self, Coordinate shift=None, ...)

return new shifted Field self is not changed.

swap(self, FieldColorMatrix f1)

to_from_endianness(self, tag)

Convert between the native endianness and the endianness specified by tag tag can be "big_32", "big_64", "little_32", "little_64"

unitarize(self)

write_direct(self, string fn, ...)

write_sfw_direct(self, ...)

Attributes

cdata

geo

multiplicity

n_sites

sizeof_m

total_site

view_count