def clone(self, *, structure_only: bool = False) -> 'ClusterBasis': if structure_only: obj = libclusterbasis.clonestructure_clusterbasis(self) return try_wrap(obj, ClusterBasis) else: obj = libclusterbasis.clone_clusterbasis(self) return try_wrap(obj, ClusterBasis)
def clone(self, rb: 'misc.ClusterBasis', cb: 'misc.ClusterBasis', *, structure_only: bool = False) -> 'H2Matrix': if structure_only: clone = libh2matrix.clonestructure_h2matrix(self, rb, cb) return try_wrap(clone, H2Matrix) else: return try_wrap(libh2matrix.clone_h2matrix(self, rb, cb), H2Matrix)
def build_clustergeometry(self, idx: List[List[int]], basis: 'pbem3d.BasisFunction') \ -> 'misc.ClusterGeometry': csubs = [pylist_to_ptr(sub, c_uint) for sub in idx] cidx = pylist_to_ptr(csubs, c_uint) obj = libbem3d.build_bem3d_clustergeometry(self, cidx, basis.value) return try_wrap(obj, misc.ClusterGeometry)
def enumerate(self) -> List['H2Matrix']: ptr = libh2matrix.enumerate_h2matrix(self) lst = cptr_to_list(ptr, self.desc) return [try_wrap(cs, H2Matrix) for cs in lst]
def clone(self) -> 'AMatrix': return try_wrap(libamatrix.clone_amatrix(self), AMatrix)
def __getter_next(self) -> 'PatEntry': return try_wrap(self.cobj().next, PatEntry)
def __getter_vt(self) -> 'pbem3d.VertList': return try_wrap(self.cobj().vl, pbem3d.VertList)
def __getter_gcb_green(self) -> 'pbem3d.GreenClusterBasis3d': return try_wrap(self.cobj().gcb_green, pbem3d.GreenClusterBasis3d)
def enumerate(self) -> List['Cluster']: ptr = libcluster.enumerate_cluster(self) lst = cptr_to_list(ptr, self.desc) return [try_wrap(c, Cluster) for c in lst]
def __getter_t(self) -> 'misc.Cluster': return try_wrap(self.cobj().t, misc.Cluster)
def __getter_Qinv(self) -> 'mat.AMatrix': return try_wrap(self.cobj().Qinv, mat.AMatrix)
def build_cluster(self, clf: int, basis: 'pbem3d.BasisFunction') \ -> 'misc.Cluster': obj = libbem3d.build_bem3d_cluster(self, clf, basis.value) return try_wrap(obj, misc.Cluster)
def build_linear_clustergeometry(self, idx: List[List[int]]) \ -> 'misc.ClusterGeometry': csubs = [pylist_to_ptr(sub, c_uint) for sub in idx] cidx = pylist_to_ptr(csubs, c_uint) obj = libbem3d.build_bem3d_linear_clustergeometry(self, cidx) return try_wrap(obj, misc.ClusterGeometry)
def __getter_next(self) -> 'ListNode': return try_wrap(self.cobj().next, ListNode)
def identify_son_clusterweight(self, t: 'misc.Cluster') \ -> 'ClusterOperator': f = libclusteroperator.identify_son_clusterweight_clusteroperator return try_wrap(f(self, t), ClusterOperator)
def __getter_son(self) -> List['ClusterOperator']: lst = cptr_to_list(self.cobj().son, self.sons) return [try_wrap(co, ClusterOperator) for co in lst]
def __getter_f(self) -> 'misc.Uniform': return try_wrap(self.cobj().f, misc.Uniform)
def __getter_b(self) -> 'mat.AMatrix': return try_wrap(pointer(self.cobj().b), mat.AMatrix)
def build_amatrix(self, row: 'misc.Cluster', col: 'misc.Cluster') \ -> 'mat.AMatrix': cdata = self.as_voidp() obj = libbem3d.build_bem3d_amatrix(row, col, cdata) return try_wrap(obj, mat.AMatrix)
def enumerate(self, t: 'misc.Cluster') -> List['ClusterOperator']: ptr = libclusteroperator.enumerate_clusteroperator(self) lst = cptr_to_list(ptr, t.desc) return [try_wrap(co, ClusterOperator) for co in lst]
def __getter_cb(self) -> 'misc.ClusterBasis': return try_wrap(self.cobj().cb, misc.ClusterBasis)
def __getter_gr(self) -> 'geo.Surface3d': return try_wrap(self.cobj().gr, geo.Surface3d)
def clone(self) -> 'RkMatrix': return try_wrap(librkmatrix.clone_rkmatrix(self), RkMatrix)
def __getter_sq(self) -> 'pbem3d.SingQuad2d': return try_wrap(self.cobj().sq, pbem3d.SingQuad2d)
def __getter_grc_green(self) -> 'pbem3d.GreenCluster3d': return try_wrap(self.cobj().grc_green, pbem3d.GreenCluster3d)
def __getter_aprx(self) -> 'pbem3d.AprxBem3d': return try_wrap(self.cobj().aprx, pbem3d.AprxBem3d)
def __getter_tm(self) -> 'misc.TruncMode': return try_wrap(self.cobj().tm, misc.TruncMode)
def __getter_par(self) -> 'pbem3d.ParBem3d': return try_wrap(self.cobj().par, pbem3d.ParBem3d)
def __getter_next(self) -> 'TriList': return try_wrap(self.cobj().next, TriList)
def __getter_kernels(self) -> 'pbem3d.KernelBem3d': return try_wrap(self.cobj().kernels, pbem3d.KernelBem3d)