def derivative(self, *args):
    '\n        Returns the derivative of the function with respect to the first dimension.\n        '
    if (self.i_dim == 0):
        return np.ones_like(*args[0])
    else:
        return np.zeros_like(*args[0])
Returns the derivative of the function with respect to the first dimension.
def derivative(self, *args):
    '\n        \n        '
    if (self.i_dim == 0):
        return np.ones_like(*args[0])
    else:
        return np.zeros_like(*args[0])