qlat.FieldBase¶
- class qlat.FieldBase¶
- __init__()¶
Methods
__init__()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
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_elems(self, idx)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)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_elems(self, idx, val)val should be np.ndarray.
set_m(self, FieldBase f1, Int m, Int m1)Set components m from f1's components m1.
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"Attributes
cdataview_count