def __init__(self, w, d, pub):
        """ Initialize a w * d Count Sketch under a public key """

        if __debug__:
            assert isinstance(w, int) and w > 0
            assert isinstance(d, int) and d > 0

        self.pub = pub
        self.d, self.w = d, w
        self.store = [ [Ct.enc(pub, 0) for i in range(w)] for j in range(d) ]

        # zero = Ct.enc(pub, 0)
        #self.store = [ [zero for i in range(w)] for j in range(d) ]
dataset/ETHPy150Open gdanezis/petlib/examples/tormedian.py/CountSketchCt.__init__/original