Hoogle Search

Within LTS Haskell 24.41 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. liftSTMatrix :: Element t => (Matrix t -> a) -> STMatrix s t -> ST s a

    hmatrix Numeric.LinearAlgebra.Devel

    No documentation available.

  2. mapMatrixWithIndex :: (Element a, Storable b) => ((Int, Int) -> a -> b) -> Matrix a -> Matrix b

    hmatrix Numeric.LinearAlgebra.Devel

    >>> mapMatrixWithIndex (\(i,j) v -> 100*v + 10*fromIntegral i + fromIntegral j) (ident 3:: Matrix Double)
    (3><3)
    [ 100.0,   1.0,   2.0
    ,  10.0, 111.0,  12.0
    ,  20.0,  21.0, 122.0 ]
    

  3. mapMatrixWithIndexM :: (Element a, Storable b, Monad m) => ((Int, Int) -> a -> m b) -> Matrix a -> m (Matrix b)

    hmatrix Numeric.LinearAlgebra.Devel

    >>> mapMatrixWithIndexM (\(i,j) v -> Just $ 100*v + 10*fromIntegral i + fromIntegral j) (ident 3:: Matrix Double)
    Just (3><3)
    [ 100.0,   1.0,   2.0
    ,  10.0, 111.0,  12.0
    ,  20.0,  21.0, 122.0 ]
    

  4. mapMatrixWithIndexM_ :: (Element a, Num a, Monad m) => ((Int, Int) -> a -> m ()) -> Matrix a -> m ()

    hmatrix Numeric.LinearAlgebra.Devel

    >>> mapMatrixWithIndexM_ (\(i,j) v -> printf "m[%d,%d] = %.f\n" i j v :: IO()) ((2><3)[1 :: Double ..])
    m[0,0] = 1
    m[0,1] = 2
    m[0,2] = 3
    m[1,0] = 4
    m[1,1] = 5
    m[1,2] = 6
    

  5. matrixFromVector :: Storable t => MatrixOrder -> Int -> Int -> Vector t -> Matrix t

    hmatrix Numeric.LinearAlgebra.Devel

    No documentation available.

  6. modifyMatrix :: Storable t => STMatrix s t -> Int -> Int -> (t -> t) -> ST s ()

    hmatrix Numeric.LinearAlgebra.Devel

    No documentation available.

  7. newMatrix :: Storable t => t -> Int -> Int -> ST s (STMatrix s t)

    hmatrix Numeric.LinearAlgebra.Devel

    No documentation available.

  8. newUndefinedMatrix :: Storable t => MatrixOrder -> Int -> Int -> ST s (STMatrix s t)

    hmatrix Numeric.LinearAlgebra.Devel

    No documentation available.

  9. readMatrix :: Storable t => STMatrix s t -> Int -> Int -> ST s t

    hmatrix Numeric.LinearAlgebra.Devel

    No documentation available.

  10. runSTMatrix :: Storable t => (forall s . () => ST s (STMatrix s t)) -> Matrix t

    hmatrix Numeric.LinearAlgebra.Devel

    No documentation available.

Page 126 of many | Previous | Next