Lattices-0.0.2: A library for lattices

Safe HaskellNone
LanguageHaskell98

Math.Lattices.Internal

Description

Some internal convenience functions for use in Math.Lattices

Synopsis

Documentation

norm2 :: Num a => [a] -> a Source

Just an easy way to write $||v||^2$

rnd :: (Integral a, Integral b) => Ratio a -> b Source

Closest 'Integral to the given n, rounding up. $lfloor nrceil$