qlat.GaugeField¶
- class qlat.GaugeField(Geometry geo=None, multiplicity=4)¶
- __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)xg_arr can be xg_arr, xg_list, or xg
get_elems(self, idx)get_elems_xg(self, xg_arr)xg_arr can be xg_arr, xg_list, or xg
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, ...)link_trace(self)load(self, path)Load with the standard NERSC format
load_64(self, path, *args, **kwargs)Generic load for 64-bit size element Field object load 64-bit Field (do conversion of endianness)
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)plaq(self)qnorm(self)qnorm_field(self)read_direct(self, string fn, ...)read_sfr_direct(self, ...)release_buffer(self, Buffer buf)save(self, path)Save with the standard NERSC format
save_64(self, path, *args, **kwargs)Generic save for 64-bit size element Field object save 64-bit Field (do conversion of endianness)
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)xg_arr can be xg_arr, xg_list, or xg
set_elems(self, idx, val)val should be np.ndarray.
set_elems_xg(self, xg_arr, val)xg_arr can be xg_arr, xg_list, or xg
set_m(self, FieldBase f1, Int m, Int m1)Set components m from f1's components m1.
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.
show_info(self)swap(self, FieldColorMatrix f1)swap_cast(self, FieldChar f1)swap_sp_cast(self, SelectedPointsChar f1, ...)Only swap data.
to_from_endianness(self, tag)Convert between the native endianness and the endianness specified by
tagtag can be"big_32", "big_64", "little_32", "little_64"twist_boundary_at_boundary(self, ...)modify in place
unitarize(self)write_direct(self, string fn, ...)write_sfw_direct(self, ...)Attributes
cdatageomultiplicityn_sitessizeof_mtotal_siteview_count