Numpy Examples¶
This section contains examples of some numpy functions when called on Galois field arrays. Many more functions are supported, just not explicitly documented here.
General¶
|
Returns a copy of a given Galois field array. |
|
Concatenates the input arrays along the given axis. |
|
Inserts values along the given axis. |
Arithmetic¶
|
Adds two Galois field arrays element-wise. |
|
Subtracts two Galois field arrays element-wise. |
|
Multiplies two Galois field arrays element-wise. |
|
Divides two Galois field arrays element-wise. |
|
Returns the element-wise additive inverse of a Galois field array. |
Returns the element-wise multiplicative inverse of a Galois field array. |
|
|
Exponentiates a Galois field array element-wise. |
|
Squares a Galois field array element-wise. |
|
Computes the logarithm (base |
|
Returns the matrix multiplication of two Galois field arrays. |
Advanced Arithmetic¶
|
Convolves the input arrays. |
Linear Algebra¶
|
Returns the dot product of two Galois field arrays. |
|
Returns the dot product of two Galois field vectors. |
|
Returns the inner product of two Galois field arrays. |
|
Returns the outer product of two Galois field arrays. |
|
Returns the matrix multiplication of two Galois field arrays. |
Raises a square Galois field matrix to an integer power. |
|
Computes the determinant of the matrix. |
|
Returns the rank of a Galois field matrix. |
|
|
Returns the sum along the diagonal of a Galois field array. |
Solves the system of linear equations. |
|
Computes the inverse of the matrix. |