Miscellaneous

Alignment

align_exponents(*polys)

Align polynomials such that the exponents are the same.

align_indeterminants(*polys)

Align polynomial by indeterminants.

align_polynomials(*polys)

Align polynomial such that dimensionality, shape, etc.

align_shape(*polys)

Align polynomial by shape.

clean_attributes(poly[, …])

Clean up polynomial attributes that does not affect representation.

Cleaners

decompose(poly)

Decompose a polynomial to component form.

remove_redundant_coefficients(exponents, …)

Remove coefficients if they are redundant to the polynomial representation.

remove_redundant_names(exponents, names)

Remove names if they are redundant to the polynomial representation.

set_dimensions(poly[, dimensions])

Adjust the dimensions of a polynomial.

Indexing

cross_truncate(indices, bound, norm)

Truncate of indices using L_p norm.

glexindex(start[, stop, dimensions, …])

Generate graded lexicographical multi-indices for the monomial exponents.

glexsort(keys[, graded, reverse])

Sort keys using graded lexicographical ordering.

lead_coefficient(poly[, graded, reverse])

Find the lead coefficients for each polynomial.

lead_exponent(poly[, graded, reverse])

Find the lead exponents for each polynomial.

sortable_proxy(poly[, graded, reverse])

Create a numerical proxy for a polynomial to allow compare.

Miscellaneous

apply_along_axis(func1d, axis, arr, *args, …)

Apply a function to 1-D slices along the given axis.

apply_over_axes(func, a, axes)

Apply a function repeatedly over multiple axes.

array_repr(arr[, max_line_width, precision, …])

Return the string representation of an array.

array_str(a[, max_line_width, precision, …])

Return a string representation of the data in an array.

common_type(*arrays)

Return a scalar type which is common to the input arrays.

copyto(dst, src[, casting, where])

Copy values from one array to another, broadcasting as necessary.

result_type(*arrays_and_dtypes)

Return the type that results from applying type promotion rules.