class_docstr: Add homology properties of a scalar field f: R^n --> R associated with
  the geometry built from the VertexBase class
class_docstr_tok: ["Add","homology","properties","of","a","scalar","field","f",":","R^n","--",">","R","associated","with","the","geometry","built","from","the","VertexBase","class"]
docstr: Parameters
  ----------
  x : tuple,
      vector of vertex coordinates
  field : callable, optional
      a scalar field f: R^n --> R associated with the geometry
  nn : list, optional
      list of nearest neighbours
  index : int, optional
      index of the vertex
  field_args : tuple, optional
      additional arguments to be passed to field
  g_cons : callable, optional
      constraints on the vertex
  g_cons_args : tuple, optional
      additional arguments to be passed to g_cons
docstr_tok: ["Parameters","--","--","--","--","--","x",":","tuple",",","vector","of","vertex","coordinates","field",":","callable",",","optional","a","scalar","field","f",":","R^n","--",">","R","associated","with","the","geometry","nn",":","list",",","optional","list","of","nearest","neighbours","index",":","int",",","optional","index","of","the","vertex","field_args",":","tuple",",","optional","additional","arguments","to","be","passed","to","field","g_cons",":","callable",",","optional","constraints","on","the","vertex","g_cons_args",":","tuple",",","optional","additional","arguments","to","be","passed","to","g_cons"]
code: def __init__(
      self,
      x,
      field=None,
      nn=None,
      index=None,
      field_args=(),
      g_cons=None,
      g_cons_args=(),
  ):
      """
      Parameters
      ----------
      x : tuple,
          vector of vertex coordinates
      field : callable, optional
          a scalar field f: R^n --> R associated with the geometry
      nn : list, optional
          list of nearest neighbours
      index : int, optional
          index of the vertex
      field_args : tuple, optional
          additional arguments to be passed to field
      g_cons : callable, optional
          constraints on the vertex
      g_cons_args : tuple, optional
          additional arguments to be passed to g_cons
  
      """
      super().__init__(x, nn=nn, index=index)
  
      # Note Vertex is only initiated once for all x so only
      # evaluated once
      # self.feasible = None
  
      # self.f is externally defined by the cache to allow parallel
      # processing
      # None type that will break arithmetic operations unless defined
      # self.f = None
  
      self.check_min = True
      self.check_max = True
  
imports: import collections
  from abc import ABC, abstractmethod
  import numpy
  from scipy._lib._util import MapWrapper
label_desc: Use image node_id 1 to create a new VertexScalarField object from inherited base classes: VertexBase with example: obj = VertexScalarField(x, field, nn, index, field_args, g_cons, g_cons_args)