text: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  #
  # michael a.g. aïvázis
  # orthologue
  # (c) 1998-2021 all rights reserved
  #
  
  
  """
  Exercise adding a constant to every vector element
  """
  
  
  def test():
      # package access
      import gsl
      # make a vector and initialize it
      v = gsl.vector(shape=100).fill(value=1)
      # check
      for e in v: assert e == 1
      # shift it
      v += 1
      # check
      for e in v: assert e == 2
      # all done
      return v
  
  
  # main
  if __name__ == "__main__":
      test()
  
  
  # end of file
  