jacopy.research.Map

class jacopy.research.Map(fn, name)

Bases: Operator

An operator given by a Python callable, e.g. Map(N.sharp_vf, "θ♯").

Parameters:
__init__(fn, name)
Parameters:
Return type:

None

Methods

__init__(fn, name)

apply(x)

same(other)

Structural sameness good enough for cancellation: identical objects, or both identities, or both zeros.

Attributes

is_identity

is_zero

name