High Performance Topology Optimization/SolversTest/utils.py
def deleterowcol(A, delrow, delcol):
    """Assumes that matrix is in symmetric csc form !"""
    m = A.shape[0]
    keep = np.delete(np.arange(0, m), delrow)
    A = A[keep, :]
    keep = np.delete(np.arange(0, m), delcol)
    A = A[:, keep]
    return A
Assumes that matrix is in symmetric csc form !
Assumes that matrix is in symmetric csc form !
Assumes that matrix is in symmetric csc form !
def deleterowcol(A, delrow, delcol):
    m = A.shape[0]
    keep = np.delete(np.arange(0, m), delrow)
    A = A[keep, :]
    keep = np.delete(np.arange(0, m), delcol)
    A = A[:, keep]
    return A
def deleterowcol ( A , delrow , delcol ) : m = A . shape [ 0 ] keep = np . delete ( np . arange ( 0 , m ) , delrow ) A = A [ keep , : ] keep = np . delete ( np . arange ( 0 , m ) , delcol ) A = A [ : , keep ] return A
Assumes that matrix is in symmetric csc form !
Assumes that matrix is in symmetric csc form !
"""Assumes that matrix is in symmetric csc form !"""
A
delrow
delcol