Hoogle Search
Within Stackage Nightly 2026-06-30 (ghc-9.12.4)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setDimension :: forall ix (n :: Natural) . IsIndexDimension ix n => ix -> Dimension n -> Int -> ixmassiv Data.Massiv.Core.Index Type safe way to set value of index at a particular dimension.
Examples
>>> setDimension (2 :> 3 :> 4 :. 5) Dim4 10 10 :> 3 :> 4 :. 5
setSzM :: (MonadThrow m, Index ix) => Sz ix -> Dim -> Sz Int -> m (Sz ix)massiv Data.Massiv.Core.Index Example
>>> import Data.Massiv.Core.Index >>> setSzM (Sz2 2 3) 2 (Sz1 1) :: IO Sz2 Sz (1 :. 3) >>> setSzM (Sz2 2 3) 3 (Sz1 1) :: IO Sz2 *** Exception: IndexDimensionException: (Dim 3) for (2 :. 3)
-
primitive-unlifted Data.Primitive.Unlifted.Array No documentation available.
setUnliftedArray :: PrimUnlifted a => MutableUnliftedArray s a -> a -> Int -> Int -> ST s ()primitive-unlifted Data.Primitive.Unlifted.Array.ST No documentation available.
-
primitive-unlifted Data.Primitive.Unlifted.SmallArray No documentation available.
-
primitive-unlifted Data.Primitive.Unlifted.SmallArray.ST No documentation available.
-
graphviz Data.GraphViz Determine if the provided Graph is directed or not and set the value of isDirected appropriately.
setEdgeIDAttribute :: (LEdge el -> Attributes) -> LEdge (EdgeID el) -> Attributesgraphviz Data.GraphViz Add a custom attribute to the list of attributes containing the value of the unique edge identifier.
setID :: DotRepr dg n => GraphID -> dg n -> dg ngraphviz Data.GraphViz.Types Set the ID of the graph.
setIsDirected :: DotRepr dg n => Bool -> dg n -> dg ngraphviz Data.GraphViz.Types Set whether a graph is directed or not.