def METHOD_NAME(self, dim, irn, icn):
    irn = irn.astype(np.intc, casting='safe', copy=True)
    icn = icn.astype(np.intc, casting='safe', copy=True)
    ne = irn.size
    self._dim_cached = dim
    assert ne == icn.size, 'Dimension mismatch in row and column arrays'
    if self.iw_factor is not None:
        min_size = 2 * ne + 3 * dim + 1
        self.lib.alloc_iw_a(self._ma27, int(self.iw_factor * min_size))
    self.lib.METHOD_NAME(self._ma27, dim, ne, irn, icn)
    return self.get_info(1)