def partial_to_ehpq_subsets(self): e_subset = self.get_eh_subset()[0:3] h_subset = self.get_eh_subset()[3:6] dim_subset = [True] * self.dimensions + [False] * (3-self.dimensions) from hedge.tools import partial_to_all_subset_indices return tuple(partial_to_all_subset_indices( [e_subset, h_subset, dim_subset, dim_subset]))
def partial_to_ehpq_subsets(self): e_subset = self.get_eh_subset()[0:3] h_subset = self.get_eh_subset()[3:6] dim_subset = [True] * self.dimensions + [False] * (3 - self.dimensions) from hedge.tools import partial_to_all_subset_indices return tuple( partial_to_all_subset_indices( [e_subset, h_subset, dim_subset, dim_subset]))
def partial_to_eh_subsets(self): """Helps find the indices of the E and H components, which can vary depending on number of dimensions and whether we have a full/TE/TM operator. """ e_subset = self.get_eh_subset()[0:3] h_subset = self.get_eh_subset()[3:6] from hedge.tools import partial_to_all_subset_indices return tuple(partial_to_all_subset_indices([e_subset, h_subset]))
def partial_to_eh_subsets(self): """Helps find the indices of the E and H components, which can vary depending on number of dimensions and whether we have a full/TE/TM operator. """ e_subset = self.get_eh_subset()[0:3] h_subset = self.get_eh_subset()[3:6] from hedge.tools import partial_to_all_subset_indices return tuple(partial_to_all_subset_indices( [e_subset, h_subset]))