Skip to content

Ring

Ring<T> = object

Defined in: evidence.ts:11

Ring evidence for T — the additive and multiplicative structure of a ring passed explicitly to a generic algorithm, rather than required structurally of T itself.

T

The carrier set of the ring.

readonly one: T

Defined in: evidence.ts:13


readonly zero: T

Defined in: evidence.ts:12

add(a, b): T

Defined in: evidence.ts:14

T

T

T


eq(a, b): boolean

Defined in: evidence.ts:18

T

T

boolean


mul(a, b): T

Defined in: evidence.ts:17

T

T

T


neg(a): T

Defined in: evidence.ts:16

T

T


sub(a, b): T

Defined in: evidence.ts:15

T

T

T