DensePolynomial

A straightforward dense n-dimensional polynomial data structure with multiplications and shifts

 

__init__(self, coeffs, prefactor=None, shift=None, stack_dim=0): 

 

__repr__(self): 

 

from_tensors(tensors, prefactor=None, shift=None, rescale=True): 

 

@property
shape(self): 

 

@property
scaling(self): 

 

@property
coeffs(self): 

 

@property
coordinate_dim(self): 

 

__mul__(self, other) -> 'DensePolynomial': 

 

__add__(self, other) -> 'DensePolynomial': 

 

shift(self, shift) -> 'DensePolynomial': 

 

fill_tensors(tensors, idx, value, stack_dim, pcache, permute, rescale): 

 

extract_tensors(coeffs, stack_dim=None, permute=True, rescale=True): 

 

condense_tensors(tensors, rescale=True): 

 

@property
coefficient_tensors(self): 

 

@property
unscaled_coefficient_tensors(self): 

 

transform(self, lin_transf): 

Applies (for now) a linear transformation to the polynomial

 

outer(self, other): 

 

deriv(self, coord): 

 

grad(self): 

 

clip(self, threshold=1e-15): 

 

make_sparse_backed(self, threshold=1e-15): 

Feedback

Examples

Templates

Documentation