Source code for np.functions

def copy(a):
    """
    Returns a copy of a given Galois field array.

    See: https://numpy.org/doc/stable/reference/generated/numpy.copy.html

    Examples
    --------
    .. ipython:: python

        GF = galois.GF(2**3)
        a = GF.Random(5, low=1); a
        b = np.copy(a); b
        a[0] = 0; a
        # b is unmodified
        b
    """
    return


[docs]def concatenate(arrays, axis=0): """ Concatenates the input arrays along the given axis. See: https://numpy.org/doc/stable/reference/generated/numpy.concatenate.html Examples -------- .. ipython:: python GF = galois.GF(2**3) A = GF.Random((2,2)); A B = GF.Random((2,2)); B np.concatenate((A,B), axis=0) np.concatenate((A,B), axis=1) """ return
[docs]def insert(array, object, values, axis=None): """ Inserts values along the given axis. See: https://numpy.org/doc/stable/reference/generated/numpy.insert.html Examples -------- .. ipython:: python GF = galois.GF(2**3) x = GF.Random(5); x np.insert(x, 1, [0,1,2,3]) """ return