def _hessian_wrapper(hess, x, z, k_params):
    x_arr = np.asarray(x)
    params = x_arr[:k_params].ravel()
    zh_x = np.asarray(z[0]) * hess(params)
    zero_mat = np.zeros(zh_x.shape)
    A = np.concatenate((zh_x, zero_mat), axis=1)
    B = np.concatenate((zero_mat, zero_mat), axis=1)
    zh_x_ext = np.concatenate((A, B), axis=0)
    return matrix(zh_x_ext, (2 * k_params, 2 * k_params))
Copies from src_url to dst_url in "daisy chain" mode.
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/base/l1_cvxopt.py/_hessian_wrapper--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/copy_helper.py/_CopyObjToObjDaisyChainMode