def METHOD_NAME(z, polar=False, conj=False):
    """Squeeze complex valued array into [real, imag] or [amp, phase(rad)]"""
    if isinstance(z, (pg.matrix.CSparseMapMatrix,
                      pg.matrix.CSparseMatrix,
                      pg.matrix.CMatrix)):
        return toRealMatrix(z, conj=conj)
    if isComplex(z):
        vals = np.array(z)
        if conj:
            vals = np.conj(vals)
        if polar is True:
            vals = pg.cat(*toPolar(z))
        else:
            vals = pg.cat(vals.real, vals.imag)
        return vals
    return z