linear-tests-0.1.1.0: Linear Algebra

Safe HaskellSafe
LanguageHaskell2010

Linear.V4.Arbitrary

Contents

Synopsis

Documentation

newtype UnitV4 a Source #

`Arbitrary UnitV4` always has norm 1

Constructors

UnitV4 

Fields

Instances
Show a => Show (UnitV4 a) Source # 
Instance details

Defined in Linear.V4.Arbitrary

Methods

showsPrec :: Int -> UnitV4 a -> ShowS #

show :: UnitV4 a -> String #

showList :: [UnitV4 a] -> ShowS #

(Arbitrary a, Epsilon a, Floating a) => Arbitrary (UnitV4 a) Source # 
Instance details

Defined in Linear.V4.Arbitrary

Methods

arbitrary :: Gen (UnitV4 a) #

shrink :: UnitV4 a -> [UnitV4 a] #

Orphan instances

Arbitrary a => Arbitrary (V4 a) Source #

`Arbitrary V4` has no restrictions on components

Instance details

Methods

arbitrary :: Gen (V4 a) #

shrink :: V4 a -> [V4 a] #