Hoogle Search

Within LTS Haskell 24.52 (ghc-9.10.3)

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

  1. unsafeTransformStencil :: (Sz ix' -> Sz ix) -> (ix' -> ix) -> (((ix' -> e) -> (ix' -> e) -> ix' -> a) -> (ix -> e) -> (ix -> e) -> ix -> a) -> Stencil ix' e a -> Stencil ix e a

    massiv Data.Massiv.Array.Unsafe

    Perform an arbitrary transformation of a stencil. This stencil modifier can be used for example to turn a vector stencil into a matrix stencil implement, or transpose a matrix stencil. It is really easy to get this wrong, so be extremely careful.

    Examples

    Convert a 1D stencil into a row or column 2D stencil:
    >>> import Data.Massiv.Array
    
    >>> import Data.Massiv.Array.Unsafe
    
    >>> let arr = compute $ iterateN 3 succ 0 :: Array P Ix2 Int
    
    >>> arr
    Array P Seq (Sz (3 :. 3))
    [ [ 1, 2, 3 ]
    , [ 4, 5, 6 ]
    , [ 7, 8, 9 ]
    ]
    
    >>> let rowStencil = unsafeTransformStencil (\(Sz n) -> Sz (1 :. n)) (0 :.) $ \ f uget getVal (i :. j) -> f (uget  . (i :.)) (getVal . (i :.)) j
    
    >>> applyStencil noPadding (rowStencil (sumStencil (Sz1 3))) arr
    Array DW Seq (Sz (3 :. 1))
    [ [ 6 ]
    , [ 15 ]
    , [ 24 ]
    ]
    
    >>> let columnStencil = unsafeTransformStencil (\(Sz n) -> Sz (n :. 1)) (:. 0) $ \ f uget getVal (i :. j) -> f (uget . (:. j)) (getVal . (:. j)) i
    
    >>> applyStencil noPadding (columnStencil (sumStencil (Sz1 3))) arr
    Array DW Seq (Sz (1 :. 3))
    [ [ 12, 15, 18 ]
    ]
    

  2. sforM :: forall r ix a b m . (Stream r ix a, Monad m) => Array r ix a -> (a -> m b) -> m (Vector DS b)

    massiv Data.Massiv.Vector

    Same as smapM, but with arguments flipped.

    Examples

  3. sforM_ :: (Stream r ix a, Monad m) => Array r ix a -> (a -> m b) -> m ()

    massiv Data.Massiv.Vector

    Same as smapM_, but with arguments flipped.

    Examples

  4. siforM :: forall r ix a b m . (Stream r ix a, Monad m) => Array r ix a -> (ix -> a -> m b) -> m (Vector DS b)

    massiv Data.Massiv.Vector

    Same as simapM, but with arguments flipped.

    Examples

  5. siforM_ :: forall r ix a b m . (Stream r ix a, Monad m) => Array r ix a -> (ix -> a -> m b) -> m ()

    massiv Data.Massiv.Vector

    Same as simapM_, but with arguments flipped.

    Examples

  6. StyleForm :: Style

    openapi3 Data.OpenApi

    Form style parameters defined by RFC6570. This option replaces collectionFormat with a csv (when explode is false) or multi (when explode is true) value from OpenAPI 2.0.

  7. _schemaFormat :: Schema -> Maybe Format

    openapi3 Data.OpenApi

    No documentation available.

  8. type BearerFormat = Text

    openapi3 Data.OpenApi.Internal

    No documentation available.

  9. StyleForm :: Style

    openapi3 Data.OpenApi.Internal

    Form style parameters defined by RFC6570. This option replaces collectionFormat with a csv (when explode is false) or multi (when explode is true) value from OpenAPI 2.0.

  10. _schemaFormat :: Schema -> Maybe Format

    openapi3 Data.OpenApi.Internal

    No documentation available.

Page 636 of many | Previous | Next