hmatrix-morpheus-0.1.0.2: Low-level machine learning auxiliary functions.

Copyright(c) Alexander Ignatyev 2017
LicenseBSD-3
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Numeric.Morpheus.MatrixReduce

Description

 

Synopsis

Documentation

columnPredicate :: (R -> R -> R) -> Matrix R -> Vector R Source #

Scan every column of the given matrix. Predicate takes and accumulator and next value of the column, returns new accumulator. Returns accumulator values for every column.

rowPredicate :: (R -> R -> R) -> Matrix R -> Vector R Source #

Scan every row of the given matrix. Predicate takes and accumulator and next value of the row, returns new accumulator. Returns accumulator values for every row.

columnSum :: Matrix Double -> Vector Double Source #

Calculates sums of elements of every column of the given matrix

rowSum :: Matrix Double -> Vector Double Source #

Calculates sums of elements of every row of the given matrix

columnMaxIndex :: Matrix Double -> (Vector R, Vector I) Source #

Finds maximum values and their indices of every column of the given matrix

columnMinIndex :: Matrix Double -> (Vector R, Vector I) Source #

Finds minimum values and their indices of every column of the given matrix

rowMaxIndex :: Matrix Double -> (Vector R, Vector I) Source #

Finds maximum values and their indices of every row of the given matrix

rowMinIndex :: Matrix Double -> (Vector R, Vector I) Source #

Finds minimum values and their indices of every row of the given matrix