(m, dtype=object)
return a
Converts SymPy's matrix to a NumPy array.

    See Also
    ========

    list2numpy
Converts SymPy's matrix to a NumPy array.
Converts SymPy s matrix to a NumPy array .
def matrix2numpy(m, dtype=object):  # pragma: no cover
    """Converts SymPy's matrix to a NumPy array.

    See Also
    ========

    list2numpy
    """
    from numpy import empty
    a = empty(m.shape, dtype)
    for i in range(m.rows):
        for j in range(m.cols):
            a[i, j] = m[i, j]
    return a
def matrix2numpy ( m , dtype = object ) : # pragma: no cover from numpy import empty a = empty ( m . shape , dtype ) for i in range ( m . rows ) : for j in range ( m . cols ) : a [ i , j ] = m [ i , j ] return a