Helper functions¶
Leading coefficient¶
|
Find the lead coefficients for each polynomial. |
|
Find the lead exponents for each polynomial. |
|
Create a numerical proxy for a polynomial to allow compare. |
Polynomial specific¶
|
Evaluate polynomial by inserting new values in to the indeterminants. |
|
Decompose a polynomial to component form. |
|
Adjust the dimensions of a polynomial. |
|
Check if a polynomial is constant or not. |
Check if a polynomial is constant or not. |
|
Cast to dict where keys are exponents and values are coefficients. |
|
Cast polynomial to numpy.ndarray, if possible. |
Array creation¶
|
Extract a diagonal or construct a diagonal array. |
|
Return specified diagonals. |
|
Return a new array of given shape and type, filled with fill_value. |
|
Return a full array with the same shape and type as a given array. |
|
Return a new array of given shape and type, filled with ones. |
|
Return an array of ones with the same shape and type as a given array. |
|
Return a new array of given shape and type, filled with zeros. |
|
Return an array of zeros with the same shape and type as a given array. |
Arithmetics¶
|
Add arguments element-wise. |
|
Inner product of two arrays. |
|
Matrix product of two arrays. |
|
Multiply arguments element-wise. |
|
Numerical negative, element-wise. |
|
Compute the outer product of two vectors. |
|
Numerical positive, element-wise. |
|
First array elements raised to powers from second array, element-wise. |
|
Subtract arguments, element-wise. |
|
Return the element-wise square of the input. |
Division¶
|
Return true division of the inputs, element-wise. |
|
Return element-wise quotient and remainder simultaneously. |
|
Return the largest integer smaller or equal to the division of the inputs. |
|
Return element-wise remainder of numerical division. |
|
Return a polynomial division of the inputs, element-wise. |
|
Return element-wise quotient and remainder simultaneously. |
|
Return element-wise remainder of polynomial division. |
|
Return element-wise remainder of numerical division. |
|
Return true division of the inputs, element-wise. |
Logic¶
|
Test whether any array element along a given axis evaluates to True. |
|
Test whether all array elements along a given axis evaluate to True. |
|
Return True if two arrays are element-wise equal within a tolerance. |
|
Return (x1 == x2) element-wise. |
|
Return the truth value of (x1 > x2) element-wise. |
|
Return the truth value of (x1 >= x2) element-wise. |
|
Return true where two arrays are element-wise equal within a tolerance. |
|
Test element-wise for finiteness (not infinity or not Not a Number). |
|
Return the truth value of (x1 < x2) element-wise. |
|
Return the truth value of (x1 <= x2) element-wise. |
|
Compute the truth value of x1 AND x2 element-wise. |
|
Compute the truth value of x1 OR x2 element-wise. |
|
Return (x1 != x2) element-wise. |
Rounding¶
|
Evenly round to the given number of decimals. |
|
Return the ceiling of the input, element-wise. |
|
Return the floor of the input, element-wise. |
|
Round elements of the array to the nearest integer. |
|
Evenly round to the given number of decimals. |
|
Evenly round to the given number of decimals. |
Sums/Products¶
|
Return the cumulative sum of the elements along a given axis. |
|
Compute the arithmetic mean along the specified axis. |
|
Return the product of array elements over a given axis. |
|
Sum of array elements over a given axis. |
Differentiation¶
|
Polynomial differential operator. |
|
Calculate the n-th discrete difference along the given axis. |
|
Difference between consecutive elements of an array. |
|
Polynomial gradient operator. |
|
Construct Hessian matrix of polynomials. |
Min/Max¶
|
Return the maximum of an array or maximum along an axis. |
|
Return the minimum of an array or minimum along an axis. |
|
Return the indices of the minimum values along an axis. |
|
Return the indices of the maximum values along an axis. |
|
Return the maximum of an array or maximum along an axis. |
|
Element-wise maximum of array elements. |
|
Return the minimum of an array or minimum along an axis. |
|
Element-wise minimum of array elements. |
Conditionals¶
|
Construct array from an index array and a set of arrays to choose from. |
|
Count the number of non-zero values in the array a. |
|
Return the indices of the elements that are non-zero. |
|
Return elements chosen from x or y depending on condition. |
Save/Load¶
|
Load polynomial or pickled objects from |
|
Load data from a text file. |
|
Save polynomial array to a binary file in NumPy |
|
Save a polynomial array to a text file. |
|
Save several arrays into a single file in uncompressed |
|
Save several arrays into a single file in uncompressed |
Stacking/Splitting¶
|
Split an array into multiple sub-arrays. |
|
Join a sequence of arrays along an existing axis. |
|
Split array into multiple sub-arrays along the 3rd axis (depth). |
|
Stack arrays in sequence depth wise (along third axis). |
|
Split an array into multiple sub-arrays horizontally (column-wise). |
|
Stack arrays in sequence horizontally (column wise). |
|
Split an array into multiple sub-arrays. |
|
Join a sequence of arrays along a new axis. |
|
Split an array into multiple sub-arrays vertically (row-wise). |
|
Stack arrays in sequence vertically (row wise). |
Shape manipulation¶
|
Convert inputs to arrays with at least one dimension. |
|
View inputs as arrays with at least two dimensions. |
|
View inputs as arrays with at least three dimensions. |
|
Broadcast any number of arrays against each other. |
|
Expand the shape of an array. |
|
Move axes of an array to new positions. |
|
Repeat elements of an array. |
|
Give a new shape to an array without changing its data. |
|
Construct an array by repeating A the number of times given by reps. |
|
Permute the dimensions of an array. |
Miscellaneous¶
|
Calculate the absolute value element-wise. |
|
Calculate the absolute value element-wise. |
|
Apply a function to 1-D slices along the given axis. |
|
Apply a function repeatedly over multiple axes. |
|
Return the string representation of an array. |
|
Return a string representation of the data in an array. |
|
Return a scalar type which is common to the input arrays. |
|
Copy values from one array to another, broadcasting as necessary. |
|
Return the type that results from applying type promotion rules. |
Global options¶
|
Temporarily set global numpoly options. |
|
Get global numpoly options. |
|
Set global numpoly options. |
Utilities¶
|
Truncate of indices using L_p norm. |
Error for features in numpy not supported in Numpoly. |
|
|
Generate graded lexicographical multi-indices for the monomial exponents. |
|
Sort keys using graded lexicographical ordering. |