class_docstr: A continuous discretization. This discretization assumes that the field is a
  function of the parameters contained in `Continuous.params` and a point in the
  domain. The function that computes the field from the parameters and the point in
  the domain is contained in `Continuous.get_fun`. This function has the signature
  `get_fun(params, x)`, where `params` is the parameter vector and `x` is the point
  in the domain.
class_docstr_tok: ["A","continuous","discretization",".","This","discretization","assumes","that","the","field","is","a","function","of","the","parameters","contained","in","`","Continuous.params","`","and","a","point","in","the","domain",".","The","function","that","computes","the","field","from","the","parameters","and","the","point","in","the","domain","is","contained","in","`","Continuous.get_fun","`",".","This","function","has","the","signature","`","get_fun","(","params",",","x",")","`",",","where","`","params","`","is","the","parameter","vector","and","`","x","`","is","the","point","in","the","domain","."]
docstr: An object of this class can be called as a function, returning the field at a
  desired point.
  
  !!! example
      ```python
      ...
      a = Continuous.from_function(init_params, domain, get_field)
      field_at_x = a(1.0)
      ```
docstr_tok: ["An","object","of","this","class","can","be","called","as","a","function",",","returning","the","field","at","a","desired","point",".","!","!","!","example","``","`","python","...","a","=","Continuous.from_function","(","init_params",",","domain",",","get_field",")","field_at_x","=","a","(","1.0",")","``","`"]
code: def __call__(self, x):
      r"""
      An object of this class can be called as a function, returning the field at a
      desired point.
  
      !!! example
          ```python
          ...
          a = Continuous.from_function(init_params, domain, get_field)
          field_at_x = a(1.0)
          ```
      """
      return self.get_fun(self.params, x)
  
imports: import warnings
  from typing import Callable, TypeVar
  import equinox
  from equinox import tree_equal
  from jax import eval_shape
  from jax import numpy
  from jax import vmap
  from jaxtyping import PyTree
  from jaxdf.core import Field
  from jaxdf.geometry import Domain
label_desc: Use image node_id 7 for calling the Continuous obj's underlying member method code with example usage: obj.__call__(x) and returns: self