symforce.ops.impl.nonetype_lie_group_ops module

class NoneTypeLieGroupOps(*args, **kwds)[source]

Bases: AbstractVectorLieGroupOps[None]

Class for implementing ops on None object. This is primarily used when performing ops on dataclasses with optional fields which could be None.

abstract_vector_lie_group_ops lets us only implement the StorageOps functions, and use those functions to perform Group and LieGroup ops.

static storage_dim(a)[source]
Parameters:

a (None | Type[None]) –

Return type:

int

static to_storage(a)[source]
Parameters:

a (None) –

Return type:

List[float]

static from_storage(a, elements)[source]
Parameters:
Return type:

None

static symbolic(a, name, **kwargs)[source]
Parameters:
  • a (None | Type[None]) –

  • name (str) –

  • kwargs (Dict) –

Return type:

None