# 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. `np.concatenate`(arrays[, axis]) Concatenates the input arrays along the given axis. `np.insert`(array, object, values[, axis]) Inserts values along the given axis.

## Arithmetic¶

 `np.add`(x, y) Adds two Galois field arrays element-wise. `np.subtract`(x, y) Subtracts two Galois field arrays element-wise. `np.multiply`(x, y) Multiplies two Galois field arrays element-wise. `np.divide`(x, y) 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. `np.power`(x, y) Exponentiates a Galois field array element-wise. Squares a Galois field array element-wise. Computes the logarithm (base `GF.primitive_element`) of a Galois field array element-wise. `np.matmul`(a, b) Returns the matrix multiplication of two Galois field arrays.

 `np.convolve`(a, b) Convolves the input arrays.
 `np.dot`(a, b) Returns the dot product of two Galois field arrays. `np.vdot`(a, b) Returns the dot product of two Galois field vectors. `np.inner`(a, b) Returns the inner product of two Galois field arrays. `np.outer`(a, b) Returns the outer product of two Galois field arrays. `np.matmul`(a, b) 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.