parameters: (basis)
docstring: Orthogoalise set of PETSc vectors in-place
docstring_summary: Orthogoalise set of PETSc vectors in-place
docstring_tokens: Orthogoalise set of PETSc vectors in - place
function: def orthonormalize(basis):
      """Orthogoalise set of PETSc vectors in-place"""
      for i, x in enumerate(basis):
          for y in basis[:i]:
              alpha = x.dot(y)
              x.axpy(-alpha, y)
          x.normalize()
function_tokens: def orthonormalize ( basis ) : for i , x in enumerate ( basis ) : for y in basis [ : i ] : alpha = x . dot ( y ) x . axpy ( - alpha , y ) x . normalize ( )