HNumeric-0.4.1.0: Haskell Numeric Library with pure functionality, R & MATLAB Syntax.

Safe HaskellSafe
LanguageHaskell2010

HNum.F

Synopsis

Documentation

class Functor f => FuncTools f where Source #

Functional Programming Tools for HNum Object

Minimal complete definition

hflat, hlift, hmap, hfilter, htake, htakeWhile, hdrop, hdropWhile

Methods

hflat :: ([a] -> a) -> f a -> a Source #

Absolute Abstraction with Scalar Function

hlift :: ([a] -> [b]) -> f a -> f b Source #

Absolute Abstraction with Vector Function

hmap :: (a -> b) -> f a -> f b Source #

Like map

hfilter :: (a -> Bool) -> f a -> f a Source #

Like filter

htake :: Int -> f a -> f a Source #

Like take

htakeWhile :: (a -> Bool) -> f a -> f a Source #

Like takeWhile

hdrop :: Int -> f a -> f a Source #

Like drop

hdropWhile :: (a -> Bool) -> f a -> f a Source #

Like dropWhile

Instances

FuncTools Matrix Source # 

Methods

hflat :: ([a] -> a) -> Matrix a -> a Source #

hlift :: ([a] -> [b]) -> Matrix a -> Matrix b Source #

hmap :: (a -> b) -> Matrix a -> Matrix b Source #

hfilter :: (a -> Bool) -> Matrix a -> Matrix a Source #

htake :: Int -> Matrix a -> Matrix a Source #

htakeWhile :: (a -> Bool) -> Matrix a -> Matrix a Source #

hdrop :: Int -> Matrix a -> Matrix a Source #

hdropWhile :: (a -> Bool) -> Matrix a -> Matrix a Source #

FuncTools Vector Source # 

Methods

hflat :: ([a] -> a) -> Vector a -> a Source #

hlift :: ([a] -> [b]) -> Vector a -> Vector b Source #

hmap :: (a -> b) -> Vector a -> Vector b Source #

hfilter :: (a -> Bool) -> Vector a -> Vector a Source #

htake :: Int -> Vector a -> Vector a Source #

htakeWhile :: (a -> Bool) -> Vector a -> Vector a Source #

hdrop :: Int -> Vector a -> Vector a Source #

hdropWhile :: (a -> Bool) -> Vector a -> Vector a Source #