differential_geometry.dependence.DenseDependenceObject.__init__#

DenseDependenceObject.__init__(coordinate_system: _CoordinateSystemBase, shape: Sequence[int], /, *, dependent_axes: str | Sequence[str] | None = None) None[source]#

Initialize a dense dependence object with shape and dependent axes.

This constructor defines the tensor shape and determines which coordinate axes the symbolic expression should depend on. If dependent_axes is not provided, it defaults to full dependence on all coordinate axes.

Parameters:
  • coordinate_system (_CoordinateSystemBase) – The coordinate system that defines the geometric context.

  • shape (Sequence[int] or Tuple[int, ]) – The tensor shape of the symbolic object (e.g., (3,) for a vector).

  • dependent_axes (str or Sequence[str], optional) – The coordinate axes on which the tensor depends. Can be a single axis name (e.g., “r”) or a list of axis names. If None, the tensor is assumed to depend on all axes in the coordinate system.