pqca.vector module

Simple, n-dimensional, extendable vector of ints.

class pqca.vector.Vector(entries: Optional[List[int]] = None)

Bases: object

Wrap a list of int entries with helper functions.

For internal use only.

action(other: pqca.vector.Vector, action: Callable[[int, int], int])pqca.vector.Vector

Apply the action each successive pair of elements in the two vectors.

entries: List[int]
extend(next_entry: int)pqca.vector.Vector

Append the given entry to the end of the list of entries.