Update aplK.py
This commit is contained in:
parent
74903afce7
commit
70f5a78d4d
4
aplK.py
4
aplK.py
@ -83,7 +83,7 @@ class AplN(DifferentialGCAlgebra_multigraded, UniqueRepresentation):
|
|||||||
#return value*factorial(self.n)*prod(self.gens()[self.n+2:])
|
#return value*factorial(self.n)*prod(self.gens()[self.n+2:])
|
||||||
|
|
||||||
gens = self.gens()
|
gens = self.gens()
|
||||||
tExp = [0*randint(0,4) for i in range(self.n+1)] # Random pol in variables t_i, 1<=i<=n
|
tExp = [0*randint(0,2) for i in range(self.n+1)] # Random pol in variables t_i, 1<=i<=n
|
||||||
yExp = [0]+[1]*self.n
|
yExp = [0]+[1]*self.n
|
||||||
exp = tuple(tExp + yExp)
|
exp = tuple(tExp + yExp)
|
||||||
#print(value, " - ", exp, flush=True)
|
#print(value, " - ", exp, flush=True)
|
||||||
@ -589,7 +589,7 @@ class SimplicialAplN(AplN, UniqueRepresentation):
|
|||||||
basis += apl.get_primitive_basis_of_a_monomial(apl,monomial)
|
basis += apl.get_primitive_basis_of_a_monomial(apl,monomial)
|
||||||
basis = list(set(basis))
|
basis = list(set(basis))
|
||||||
#basis += p._add_kernel_terms_to_primitive_basis(basis)
|
#basis += p._add_kernel_terms_to_primitive_basis(basis)
|
||||||
t_degree = 2
|
t_degree = 0
|
||||||
y_degree = self.total_degree() #self.parent().n #p.total_degree()#p.degree()[0]
|
y_degree = self.total_degree() #self.parent().n #p.total_degree()#p.degree()[0]
|
||||||
basis += apl.add_kernel_terms_to_primitive_basis(apl,t_degree, y_degree-1)
|
basis += apl.add_kernel_terms_to_primitive_basis(apl,t_degree, y_degree-1)
|
||||||
basis = list(set(basis))
|
basis = list(set(basis))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user