Crate relp_num[][src]

Expand description

Number types

Different data structures and different algorithms are defined over different spaces. This module defines those spaces and provides implementations.

Macros

F

Helper macro for tests.

R8

Shorthand for creating a rational number in tests.

R16

Shorthand for creating a rational number in tests.

R32

Shorthand for creating a rational number in tests.

R64

Shorthand for creating a rational number in tests.

R128

Shorthand for creating a rational number in tests.

RB

Shorthand for creating a rational number in tests.

Structs

NonZeroFactorization

Prime factorization representation of a nonzero rational number.

One

A type representing the value 1.

Zero

Zero

Enums

Binary

Binary

NonZeroSign

Sign of a nonzero value.

Sign

Sign with a zero variant.

Traits

Abs

Absolute value of a number.

FromPrimitive

A generic trait for converting a number to a value.

NonZero

Nonzero values

NonZeroFactorizable

Creating a factorization of an integer or rational number.

NonZeroSigned

A signed number that can have a nonzero value.

Signed

Signed number

Type Definitions

Rational8
Rational16
Rational32
Rational64
Rational128
RationalBig

Trait aliases

Field

Basic field operations with Self and with references to Self.

FieldRef

A reference to a variable that is in a Field.

OrderedField

The simplex algorithm is defined over the ordered fields.

OrderedFieldRef

A reference to an ordered field.