Table of contents


Dense (class)

Signature

export class Dense<D> {
  constructor(readonly dimension: D, readonly value: Rational) { ... }
  ...
}

isZero (method)

Signature

isZero(): boolean { ... }

add (method)

Signature

add(y: Dense<D>): Dense<D> { ... }

mul (method)

Signature

mul(y: Rational): Dense<D> { ... }

negate (method)

Signature

negate(): Dense<D> { ... }

sub (method)

Signature

sub(y: Dense<D>): Dense<D> { ... }

div (method)

Signature

div(y: NonZeroRational): Dense<D> { ... }

inspect (method)

Signature

inspect(): string { ... }

toString (method)

Signature

toString(): string { ... }

ceil (function)

Signature

export function ceil<D extends Dimensions, U extends Units<D>>(unit: U, d: Dense<D>): [Discrete<D, U>, Dense<D>] { ... }

floor (function)

Signature

export function floor<D extends Dimensions, U extends Units<D>>(unit: U, d: Dense<D>): [Discrete<D, U>, Dense<D>] { ... }

fromDiscrete (function)

Signature

export function fromDiscrete<D extends Dimensions, U extends Units<D>>(d: Discrete<D, U>): Dense<D> { ... }

fromInteger (function)

Signature

export function fromInteger<D extends string>(d: D, i: Integer): Dense<D> { ... }

getOne (function)

Signature

export function getOne<D extends string>(d: D): Dense<D> { ... }

getOrd (function)

Signature

export function getOrd<D extends string>(): Ord<Dense<D>> { ... }

getScale (function)

Signature

export function getScale<D extends Dimensions, U extends Units<D>>(format: Format<D, U>): PositiveRational { ... }

getSetoid (function)

Signature

export function getSetoid<D extends string>(): Setoid<Dense<D>> { ... }

getZero (function)

Signature

export function getZero<D extends string>(d: D): Dense<D> { ... }

round (function)

Signature

export function round<D extends Dimensions, U extends Units<D>>(unit: U, d: Dense<D>): [Discrete<D, U>, Dense<D>] { ... }

trunc (function)

Signature

export function trunc<D extends Dimensions, U extends Units<D>>(unit: U, d: Dense<D>): [Discrete<D, U>, Dense<D>] { ... }