class_docstr: A simple default backend that stores the chain in memory
class_docstr_tok: ["A","simple","default","backend","that","stores","the","chain","in","memory"]
docstr: Clear the state of the chain and empty the backend
  
  Args:
      nwakers (int): The size of the ensemble
      ndim (int): The number of dimensions
docstr_tok: ["Clear","the","state","of","the","chain","and","empty","the","backend","Args",":","nwakers","(","int",")",":","The","size","of","the","ensemble","ndim","(","int",")",":","The","number","of","dimensions"]
code: def reset(self, nwalkers, ndim):
      """Clear the state of the chain and empty the backend
  
      Args:
          nwakers (int): The size of the ensemble
          ndim (int): The number of dimensions
  
      """
      self.nwalkers = int(nwalkers)
      self.ndim = int(ndim)
      self.iteration = 0
      self.accepted = np.zeros(self.nwalkers, dtype=self.dtype)
      self.chain = np.empty(
          (0, self.nwalkers, self.ndim), dtype=self.dtype
      )
      self.log_prob = np.empty((0, self.nwalkers), dtype=self.dtype)
      self.blobs = None
      self.random_state = None
      self.initialized = True
  
imports: import numpy
  from ..None import autocorr
  from ..state import State
label_desc: Use image node_id 2 for calling the Backend obj's underlying member method code with example usage: obj.reset(nwalkers, ndim) without return types