docstr: Update the position matrix
  
  This method updates the position matrix given the current position and
  the velocity. If bounded, it waives updating the position.
  
  Parameters
  ----------
  swarm : pyswarms.backend.swarms.Swarm
      a Swarm instance
  bounds : tuple of :code:`np.ndarray` or list (default is :code:`None`)
      a tuple of size 2 where the first entry is the minimum bound while
      the second entry is the maximum bound. Each array must be of shape
      :code:`(dimensions,)`.
  bh : a BoundaryHandler instance
  
  Returns
  -------
  numpy.ndarray
      New position-matrix
docstr_tok: ["Update","the","position","matrix","This","method","updates","the","position","matrix","given","the","current","position","and","the","velocity",".","If","bounded",",","it","waives","updating","the","position",".","Parameters","--","--","--","--","--","swarm",":","pyswarms.backend.swarms.Swarm","a","Swarm","instance","bounds",":","tuple","of",":","code",":","`","np.ndarray","`","or","list","(","default","is",":","code",":","`","None","`",")","a","tuple","of","size","2","where","the","first","entry","is","the","minimum","bound","while","the","second","entry","is","the","maximum","bound",".","Each","array","must","be","of","shape",":","code",":","`","(","dimensions",",",")","`",".","bh",":","a","BoundaryHandler","instance","Returns","--","--","--","-","numpy.ndarray","New","position-matrix"]
code: def compute_position(
      self, swarm, bounds=None, bh=BoundaryHandler(strategy="periodic")
  ):
      """Update the position matrix
  
      This method updates the position matrix given the current position and
      the velocity. If bounded, it waives updating the position.
  
      Parameters
      ----------
      swarm : pyswarms.backend.swarms.Swarm
          a Swarm instance
      bounds : tuple of :code:`np.ndarray` or list (default is :code:`None`)
          a tuple of size 2 where the first entry is the minimum bound while
          the second entry is the maximum bound. Each array must be of shape
          :code:`(dimensions,)`.
      bh : a BoundaryHandler instance
  
      Returns
      -------
      numpy.ndarray
          New position-matrix
      """
      return ops.compute_position(swarm, bounds, bh)
  
file_path: pyswarms/pyswarms/backend/topology/pyramid.py
imports: import logging
  import numpy
  from scipy.spatial import Delaunay
  from ..None import operators
  from ..handlers import BoundaryHandler, VelocityHandler
  from ...utils.reporter import Reporter
  from .base import Topology
label_desc: Use image node_id 4 for calling the Pyramid obj's underlying member method code with example usage: obj.compute_position(swarm, bounds, bh) and returns: ops