Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
productStencil :: (Num e, Index ix) => Sz ix -> Stencil ix e emassiv Data.Massiv.Array.Stencil Multiply all elements in the stencil region
Examples
>>> import Data.Massiv.Array as A >>> a = computeAs P $ iterateN (Sz2 2 2) (+1) (0 :: Int) >>> a Array P Seq (Sz (2 :. 2)) [ [ 1, 2 ] , [ 3, 4 ] ] >>> applyStencil (Padding 0 2 (Fill 0)) (productStencil 2) a Array DW Seq (Sz (3 :. 3)) [ [ 24, 0, 0 ] , [ 0, 0, 0 ] , [ 0, 0, 0 ] ] >>> applyStencil (Padding 0 2 Reflect) (productStencil 2) a Array DW Seq (Sz (3 :. 3)) [ [ 24, 64, 24 ] , [ 144, 256, 144 ] , [ 24, 64, 24 ] ]
productArray :: (FoldNumeric r e, Index ix) => Array r ix e -> emassiv Data.Massiv.Core.Operations Compute product of all elements in the array
product' :: (Foldable t, Semiring a) => t a -> asemirings Data.Semiring The product' function computes the additive sum of the elements in a structure. This function is strict. For a lazy version, see product.
-
numeric-prelude Algebra.Ring No documentation available.
-
numeric-prelude NumericPrelude No documentation available.
-
numeric-prelude NumericPrelude.Numeric No documentation available.
productAdtDec :: Name -> [Type] -> Decth-lego THLego.Helpers No documentation available.
productAccessorIsLabel :: TyLit -> Type -> Type -> Name -> Int -> Int -> Decth-lego THLego.Instances Instance of IsLabel for a member of a product type.
productHasField :: TyLit -> Type -> Type -> Name -> Int -> Int -> Decth-lego THLego.Instances Instance of HasField for a member of a product type.
productMapperIsLabel :: TyLit -> Type -> Type -> Name -> Int -> Int -> Decth-lego THLego.Instances Template of IsLabel for instances mapping to mapper functions.
instance (mapper ~ (Text -> Text)) => IsLabel "name" (mapper -> Person -> Person)