Python/OLS/ols_example/linalg.py
def copy_matrix(M):
    """
    Output a copy of the input matrix.
    """

    rows = M.shape[0]
    cols = M.shape[1]

    MC = np.zeros((rows, cols))
    for i in range(rows):
        for j in range(cols):
            MC[i][j] = M[i][j]
    return MC

    Output a copy of the input matrix.
    
Output a copy of the input matrix.
Output a copy of the input matrix .
def copy_matrix(M):
    rows = M.shape[0]
    cols = M.shape[1]
    MC = np.zeros((rows, cols))
    for i in range(rows):
        for j in range(cols):
            MC[i][j] = M[i][j]
    return MC
def copy_matrix ( M ) : rows = M . shape [ 0 ] cols = M . shape [ 1 ] MC = np . zeros ( ( rows , cols ) ) for i in range ( rows ) : for j in range ( cols ) : MC [ i ] [ j ] = M [ i ] [ j ] return MC
Output a copy of the input matrix.
Output a copy of the input matrix .
"""
    Output a copy of the input matrix.
    """
M