def __init__(self, xshape, dtype, opt=None):
"""
Initialise an ADMMEqual object with problem size and options.
Parameters
----------
xshape : tuple of ints
Shape of working variable X (the primary variable)
dtype : data-type
Data type for working variables
opt : :class:`ADMMEqual.Options` object
Algorithm options
"""
if opt is None:
opt = ADMMEqual.Options()
Nx = np.product(xshape)
super(ADMMEqual, self).__init__(Nx, xshape, xshape, dtype, opt)
评论列表
文章目录