def METHOD_NAME(self):
    x = X(2)
    f = lambda x: 2 * x
    self.assertEqual(x.unop(f), [4])
    self.assertEqual(x.unop(f, matrix=True), np.r_[4])
    x = X.Alloc(5)
    for i in range(0, 5):
        x[i] = X(i + 1)
    self.assertEqual(x.unop(f), [2, 4, 6, 8, 10])
    y = x.unop(f, matrix=True)
    self.assertEqual(y.shape, (5,1))
    self.assertTrue(np.all(y - np.c_[2, 4, 6, 8, 10].T == 0))