bregman package

Subpackages

Submodules

bregman.base module

class bregman.base.BregmanObject

Bases: object

Abstract object used to identify pyBregMan objects. Utilized in identifying objects which can be potentially visualized.

class bregman.base.CoordObject(coords: Coords)

Bases: BregmanObject

Object in pyBregMan which have coordinate type attached to the object. Typically associated with something geometrically defined in a specific coordinate system.

Parameters:

coords – Coordinate type that the object is defined in.

coords: Coords
class bregman.base.Coords(coords_name: str)

Bases: object

Coordinate class. Used to define different types of coordinates utilized by BregmanManifolds.

Parameters:

coords_name – Name of the defined coordinate type.

coords_name: str
class bregman.base.Curve

Bases: BregmanObject, ABC

Abstract curve object.

Parameterization is assumed to be defined for t in [0, 1].

abstract path(t: float) Point

Curve evaluated at t.

Parameters:

t – Value in [0, 1] corresponding to the parameterization of the curve.

Returns:

Curve evaluated at t.

class bregman.base.DisplayPoint(point: Point)

Bases: ABC, Point

Specialized point class which has additional pretty printing options.

abstract display() str

Generated pretty printed string on display.

Returns:

String representing point.

class bregman.base.DualCoords(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

Coordinate type specific for the dually flat coordinates of Bregman manifolds. Mainly used to restrict coordinate type specification for geometric object definitions when they are only defined for the \(\theta\)- / \(\eta\)-coordinates.

Parameters:
  • THETA\(\theta\)-coordinates.

  • ETA\(\eta\)-coordinates.

ETA = Coords(coords_name='eta')
THETA = Coords(coords_name='theta')
dual()

Calculate dual / opposite type for current dual type.

Returns:

Return the dual of the current coordinate.

class bregman.base.Point(coords: Coords, data: ndarray)

Bases: CoordObject

Basic class corresponding to points on a manifold. A point has data defined in a specific coordinate type / system.

Parameters:

data – Data of point in the specified coordinate type.

data: ndarray

bregman.constants module

Module contents