symforce.ops.impl.abstract_storage_ops module#

class AbstractStorageOps(*args, **kwds)[source]#

Bases: ABC, Generic[ElementT]

An abstract base class for StorageOps implementations.

Useful for when multiple classes can implement their GroupOps and LieGroupOps implementations in terms of their storage ops in the same manner, despite having different StorageOps impelmentations.

For example, classes whose storage spaces are abstract vector spaces and whose group operations are their vector operations. See abstract_vector_group_ops.

abstract classmethod storage_dim(a)[source]#
Parameters:

a (ElementT | Type[ElementT]) –

Return type:

int

abstract classmethod to_storage(a)[source]#
Parameters:

a (ElementT) –

Return type:

List[float]

abstract classmethod from_storage(a, elements)[source]#
Parameters:
Return type:

ElementT

abstract classmethod symbolic(a, name, **kwargs)[source]#
Parameters:
  • a (ElementT | Type[ElementT]) –

  • name (str) –

  • kwargs (Dict) –

Return type:

ElementT