Hoogle Search

Within LTS Haskell 24.34 (ghc-9.10.3)

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

  1. mappedFileRef :: (HasCallStack, MonadIO m) => MappedFile -> m MappedFile

    gi-glib GI.GLib.Structs.MappedFile

    Increments the reference count of file by one. It is safe to call this function from any thread. Since: 2.22

  2. mappedFileUnref :: (HasCallStack, MonadIO m) => MappedFile -> m ()

    gi-glib GI.GLib.Structs.MappedFile

    Decrements the reference count of file by one. If the reference count drops to 0, unmaps the buffer of file and frees it. It is safe to call this function from any thread. Since 2.22

  3. 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 ]
    

  4. 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 ]
    

  5. 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
    

  6. mapVectorM :: (Storable a, Storable b, Monad m) => (a -> m b) -> Vector a -> m (Vector b)

    hmatrix Numeric.LinearAlgebra.Devel

    monadic map over Vectors the monad m must be strict

  7. mapVectorM_ :: (Storable a, Monad m) => (a -> m ()) -> Vector a -> m ()

    hmatrix Numeric.LinearAlgebra.Devel

    monadic map over Vectors

  8. mapVectorWithIndex :: (Storable a, Storable b) => (Int -> a -> b) -> Vector a -> Vector b

    hmatrix Numeric.LinearAlgebra.Devel

    No documentation available.

  9. mapVectorWithIndexM :: (Storable a, Storable b, Monad m) => (Int -> a -> m b) -> Vector a -> m (Vector b)

    hmatrix Numeric.LinearAlgebra.Devel

    monadic map over Vectors with the zero-indexed index passed to the mapping function the monad m must be strict

  10. mapVectorWithIndexM_ :: (Storable a, Monad m) => (Int -> a -> m ()) -> Vector a -> m ()

    hmatrix Numeric.LinearAlgebra.Devel

    monadic map over Vectors with the zero-indexed index passed to the mapping function

Page 160 of many | Previous | Next