def _array2kwargs(self, arr, pd_type):
    jac = self.make_sub_jacobian(arr, pd_type)
    if (pd_type == 'aij'):
        return {'val': jac[0], 'rows': jac[1], 'cols': jac[2]}
    else:
        return {'val': jac}
def _array2kwargs(self, arr, pd_type):
    jac = self.make_sub_jacobian(arr, pd_type)
    if (pd_type == 'aij'):
        return {'val': jac[0], 'rows': jac[1], 'cols': jac[2]}
    else:
        return {'val': jac}