Copyright | (c) Alexander Ignatyev 2017 |
---|---|
License | BSD-3 |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
- columnPredicate :: (R -> R -> R) -> Matrix R -> Vector R
- rowPredicate :: (R -> R -> R) -> Matrix R -> Vector R
- columnSum :: Matrix Double -> Vector Double
- rowSum :: Matrix Double -> Vector Double
- columnMaxIndex :: Matrix Double -> (Vector R, Vector I)
- columnMinIndex :: Matrix Double -> (Vector R, Vector I)
- rowMaxIndex :: Matrix Double -> (Vector R, Vector I)
- rowMinIndex :: Matrix Double -> (Vector R, Vector I)
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