SparsePolynomial

A semi-symbolic representation of a polynomial of tensor coefficients

 

__init__(self, terms: dict, prefactor=1): 

 

@property
scaling(self): 

 

expand(self): 

 

monomial(idx, value=1): 

 

__repr__(self): 

 

__mul__(self, other): 

 

__add__(self, other): 

 

@property
shape(self): 

 

as_dense(self) -> McUtils.Zachary.Polynomials.DensePolynomial: 

 

shift(self, shift) -> McUtils.Zachary.Polynomials.DensePolynomial: 

Feedback

Examples

Templates

Documentation