qlat.SelectedPointsRealD¶
- class qlat.SelectedPointsRealD(*args)¶
self.cdata self.psel
- __init__()¶
SelectedPoints() SelectedPoints(n_points, multiplicity, points_dist_type) SelectedPoints(psel) SelectedPoints(psel, multiplicity) SelectedPoints(sp, ssp) # via shuffle_selected_points where ssp = SelectedShufflePlan(“r_from_l”, psel, rs) SelectedPoints(sp, ssp, is_reverse) # via shuffle_selected_points where ssp = SelectedShufflePlan(“r_from_l”, psel, rs) SelectedPoints(sf, ssp) # via shuffle_selected_field where ssp = SelectedShufflePlan(“r_from_l”, psel, rs) # points_dist_type in [ “g”, “f”, “l”, “r”, “o”, ]
Methods
SelectedPoints() SelectedPoints(n_points, multiplicity, points_dist_type) SelectedPoints(psel) SelectedPoints(psel, multiplicity) SelectedPoints(sp, ssp) # via shuffle_selected_points where ssp = SelectedShufflePlan("r_from_l", psel, rs) SelectedPoints(sp, ssp, is_reverse) # via shuffle_selected_points where ssp = SelectedShufflePlan("r_from_l", psel, rs) SelectedPoints(sf, ssp) # via shuffle_selected_field where ssp = SelectedShufflePlan("r_from_l", psel, rs) # points_dist_type in [ "g", "f", "l", "r", "o", ]
cast_from(self, SelectedPointsBase other)other can be SelectedPointsBase but of different type
copy(self, Bool is_copying_data=True)from_lat_data(self, LatData ld)from_numpy(self, arr)need to be already initialized with ctype and psel arr.shape[0] == n_points
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)init_from_n_points(self, Long n_points, ...)init_from_psel(self, PointsSelection psel, ...)init_from_sf_ssp(self, ...)init_from_sp_ssp(self, ...)load(self, string path)load_str(self, bytes content)only need str at node 0
qnorm(self)qnorm_field(self)release_buffer(self, Buffer buf)save(self, string path)save_str(self)only return str at node 0
set_elem(self, idx, m, val)val should be np.ndarray.
set_elems(self, idx, val)val should be np.ndarray.
set_rand(self, RngState rng, ...)set_rand_g(self, RngState rng, ...)set_zero(self)swap(self, SelectedPointsRealD f1)swap_cast(self, SelectedPointsChar f1)to_lat_data(self)to_numpy(self)Attributes
cdatageomultiplicityn_pointspoints_dist_typepoints_dist_type in [ "g", "l", "r", ]
pselpsel: qlat.field_selection.PointsSelection
sizeof_mview_count