def derivativeW(self, *args):
    '\n        Returns the derivative of the function with respect to the W dimension.\n        This should only exist when n_dims >= 4.\n        '
    if (self.n_dims >= 4):
        j = 0
    else:
        assert False, "Derivative with respect to W can't be called when n_dims < 4!"
    if (self.i_dim == j):
        return np.ones_like(*args[0])
    else:
        return np.zeros_like(*args[0])
Returns the derivative of the function with respect to the W dimension.
This should only exist when n_dims >= 4.
def derivativeW(self, *args):
    '\n        Returns the derivative of the function with respect to the W dimension.\n        This should only exist when n_dims >= 4.\n        '
    if (self.n_dims >= 4):
        j = 0
    else:
        assert False, "Derivative with respect to W can't be called when n_dims < 4!"
    if (self.i_dim == j):
        return np.ones_like(*args[0])
    else:
        return np.zeros_like(*args[0])