示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 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)
示例#4
0
 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]
示例#5
0
 def clone(self) -> 'AMatrix':
     return try_wrap(libamatrix.clone_amatrix(self), AMatrix)
示例#6
0
 def __getter_next(self) -> 'PatEntry':
     return try_wrap(self.cobj().next, PatEntry)
示例#7
0
 def __getter_vt(self) -> 'pbem3d.VertList':
     return try_wrap(self.cobj().vl, pbem3d.VertList)
示例#8
0
 def __getter_gcb_green(self) -> 'pbem3d.GreenClusterBasis3d':
     return try_wrap(self.cobj().gcb_green, pbem3d.GreenClusterBasis3d)
示例#9
0
 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]
示例#10
0
 def __getter_t(self) -> 'misc.Cluster':
     return try_wrap(self.cobj().t, misc.Cluster)
示例#11
0
 def __getter_Qinv(self) -> 'mat.AMatrix':
     return try_wrap(self.cobj().Qinv, mat.AMatrix)
示例#12
0
 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)
示例#13
0
 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)
示例#14
0
 def __getter_next(self) -> 'ListNode':
     return try_wrap(self.cobj().next, ListNode)
示例#15
0
 def identify_son_clusterweight(self, t: 'misc.Cluster') \
         -> 'ClusterOperator':
     f = libclusteroperator.identify_son_clusterweight_clusteroperator
     return try_wrap(f(self, t), ClusterOperator)
示例#16
0
 def __getter_son(self) -> List['ClusterOperator']:
     lst = cptr_to_list(self.cobj().son, self.sons)
     return [try_wrap(co, ClusterOperator) for co in lst]
示例#17
0
 def __getter_f(self) -> 'misc.Uniform':
     return try_wrap(self.cobj().f, misc.Uniform)
示例#18
0
 def __getter_b(self) -> 'mat.AMatrix':
     return try_wrap(pointer(self.cobj().b), mat.AMatrix)
示例#19
0
 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)
示例#20
0
 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]
示例#21
0
 def __getter_cb(self) -> 'misc.ClusterBasis':
     return try_wrap(self.cobj().cb, misc.ClusterBasis)
示例#22
0
 def __getter_gr(self) -> 'geo.Surface3d':
     return try_wrap(self.cobj().gr, geo.Surface3d)
示例#23
0
 def clone(self) -> 'RkMatrix':
     return try_wrap(librkmatrix.clone_rkmatrix(self), RkMatrix)
示例#24
0
 def __getter_sq(self) -> 'pbem3d.SingQuad2d':
     return try_wrap(self.cobj().sq, pbem3d.SingQuad2d)
示例#25
0
 def __getter_grc_green(self) -> 'pbem3d.GreenCluster3d':
     return try_wrap(self.cobj().grc_green, pbem3d.GreenCluster3d)
示例#26
0
 def __getter_aprx(self) -> 'pbem3d.AprxBem3d':
     return try_wrap(self.cobj().aprx, pbem3d.AprxBem3d)
示例#27
0
 def __getter_tm(self) -> 'misc.TruncMode':
     return try_wrap(self.cobj().tm, misc.TruncMode)
示例#28
0
 def __getter_par(self) -> 'pbem3d.ParBem3d':
     return try_wrap(self.cobj().par, pbem3d.ParBem3d)
示例#29
0
 def __getter_next(self) -> 'TriList':
     return try_wrap(self.cobj().next, TriList)
示例#30
0
 def __getter_kernels(self) -> 'pbem3d.KernelBem3d':
     return try_wrap(self.cobj().kernels, pbem3d.KernelBem3d)