plutus-tx-1.0.0.0: Libraries for Plutus Tx and its prelude
Safe Haskell None
Language Haskell2010

PlutusTx.Numeric

Synopsis

Type classes

class AdditiveMonoid a => AdditiveGroup a where Source #

A Group that it is sensible to describe using addition, zero, and subtraction.

Methods

(-) :: a -> a -> a infixl 6 Source #

class ( Ring s, AdditiveGroup v) => Module s v | v -> s where Source #

A module, with a type of scalars which can be used to scale the values.

Methods

scale :: s -> v -> v Source #

Helper newtypes

Helper functions

abs :: ( Ord n, AdditiveGroup n) => n -> n Source #

Absolute value for any AdditiveGroup .

Orphan instances